diff --git a/cfg/blueberry/comp.cfg b/cfg/blueberry/comp.cfg deleted file mode 100644 index 87bcedcfccdae20b3a004ff21234cae1b9fa1592..0000000000000000000000000000000000000000 --- a/cfg/blueberry/comp.cfg +++ /dev/null @@ -1,5 +0,0 @@ -self.pars['CMAKELIST'].val='blueberry.cmake' -self.pars['NB_TASKS'].val='8' -self.pars['NB_THREADS'].val='1' -self.pars['RUNMETHOD'].vals=['interactive','at','batch',] -self.pars['RUNMETHOD'].val='batch' diff --git a/cfg/blueberry/gmsh.profile b/cfg/blueberry/gmsh.profile deleted file mode 100644 index 412f3fcb47cd01cfd224b34e5ac684e0516fecd4..0000000000000000000000000000000000000000 --- a/cfg/blueberry/gmsh.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/gmsh/bin" front -add2env LD_LIBRARY_PATH "/opt/gmsh/lib" -add2env PYTHONPATH "/opt/gmsh/lib" diff --git a/cfg/blueberry/intelCommunity.bashrc b/cfg/blueberry/intelCommunity.bashrc deleted file mode 100644 index 2d14ff92dd8decb05ab870de1b83467ec9634c83..0000000000000000000000000000000000000000 --- a/cfg/blueberry/intelCommunity.bashrc +++ /dev/null @@ -1,8 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -d /opt/intel ] ; then - . /opt/intel/mkl/bin/mklvars.sh intel64 - . /opt/intel/tbb/bin/tbbvars.sh intel64 -fi diff --git a/cfg/blueberry/intelCommunity.profile b/cfg/blueberry/intelCommunity.profile deleted file mode 100644 index b7ff6515f7b2e9fec9c46c006d25d042fdc70f4b..0000000000000000000000000000000000000000 --- a/cfg/blueberry/intelCommunity.profile +++ /dev/null @@ -1,10 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -n "$BASH_VERSION" ]; then - if [ -d /opt/intel ] ; then - . /opt/intel/mkl/bin/mklvars.sh intel64 - . /opt/intel/tbb/bin/tbbvars.sh intel64 - fi -fi \ No newline at end of file diff --git a/cfg/blueberry/lagamine.profile b/cfg/blueberry/lagamine.profile deleted file mode 100644 index f8e4775f5d0074110bc831b07f445a947b427092..0000000000000000000000000000000000000000 --- a/cfg/blueberry/lagamine.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/lagamine/lib" -add2env INCLUDE "/opt/lagamine/include" -add2env LIB "/opt/lagamine/lib" diff --git a/cfg/blueberry/launch.cfg b/cfg/blueberry/launch.cfg deleted file mode 100644 index d66afc51905cfa52f06df5c21904031fed7df37f..0000000000000000000000000000000000000000 --- a/cfg/blueberry/launch.cfg +++ /dev/null @@ -1,4 +0,0 @@ -self.pars['NB_THREADS'].val='4' -self.pars['NB_TASKS'].val='1' -self.pars['RUNMETHOD'].vals=['interactive','at','batch'] -self.pars['RUNMETHOD'].val='batch' diff --git a/cfg/blueberry/matlab.profile b/cfg/blueberry/matlab.profile deleted file mode 100644 index 0ff358894261fe6d720b2ad0368687cf5a7ce5f1..0000000000000000000000000000000000000000 --- a/cfg/blueberry/matlab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/matlab/bin" diff --git a/cfg/blueberry/mumps.profile b/cfg/blueberry/mumps.profile deleted file mode 100644 index 57e0adabd33cd60503f6133f2c8fa4acd4e77105..0000000000000000000000000000000000000000 --- a/cfg/blueberry/mumps.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/mumps/lib" -add2env LIB "/opt/mumps/lib" -add2env INCLUDE "/opt/mumps/include" diff --git a/cfg/blueberry/parasolid.profile b/cfg/blueberry/parasolid.profile deleted file mode 100644 index e24e2e80de8a8cf8b1f2a4f4ef7f632bb44dcb81..0000000000000000000000000000000000000000 --- a/cfg/blueberry/parasolid.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/parasolid/shared_object" -add2env INCLUDE "/opt/parasolid" -export P_SCHEMA=/opt/parasolid/schema diff --git a/cfg/blueberry/samcef.profile b/cfg/blueberry/samcef.profile deleted file mode 100644 index 834343ee4c4dcc979289fc859455636e016269dc..0000000000000000000000000000000000000000 --- a/cfg/blueberry/samcef.profile +++ /dev/null @@ -1,2 +0,0 @@ -export SAM_ZONE=200000000 -add2env PATH "/opt/samcef" diff --git a/cfg/blueberry/scilab.profile b/cfg/blueberry/scilab.profile deleted file mode 100644 index 72c51052e8b19230c202e95c2afe96fa167d1f32..0000000000000000000000000000000000000000 --- a/cfg/blueberry/scilab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/scilab/bin" front diff --git a/cfg/blueberry/trilinos.profile b/cfg/blueberry/trilinos.profile deleted file mode 100644 index 6cc2c8abbf5fd6168af0ab578117ed9824ee46dc..0000000000000000000000000000000000000000 --- a/cfg/blueberry/trilinos.profile +++ /dev/null @@ -1,5 +0,0 @@ -# Trilinos custom compile localement -# (permet le FIND_PACKAGE(Trilinos) dans CMake) -add2env CMAKE_PREFIX_PATH "/opt/trilinos" front -add2env PYTHONPATH "/opt/trilinos/lib/python3.7/site-packages" front - diff --git a/cfg/clifton/oneApi.bashrc b/cfg/clifton/oneApi.bashrc index a3b39398ee7ab4a2a72182bd6a379ce039b77ce6..b87d57ad00fd18bb47079ec45e0c325bcc1d73ff 100644 --- a/cfg/clifton/oneApi.bashrc +++ b/cfg/clifton/oneApi.bashrc @@ -4,8 +4,12 @@ if [ -d /opt/intel ] ; then #. /opt/intel/oneapi/setvars.sh intel64 - . /opt/intel/oneapi/tbb/latest/env/vars.sh intel64 + # since last update of one api latest -> 2022.2.0 (not complete) + . /opt/intel/oneapi/tbb/latest/env/vars.sh intel64 . /opt/intel/oneapi/mkl/latest/env/vars.sh intel64 . /opt/intel/oneapi/compiler/latest/env/vars.sh intel64 + #. /opt/intel/oneapi/tbb/2021.6.0/env/vars.sh intel64 + #. /opt/intel/oneapi/mkl/2022.1.0/env/vars.sh intel64 + #. /opt/intel/oneapi/compiler/2022.1.0/env/vars.sh intel64 fi diff --git a/cfg/spring/comp.cfg b/cfg/spring/comp.cfg deleted file mode 100644 index df67ee8efb9fe96cc55d205e06df8a682d3dcae9..0000000000000000000000000000000000000000 --- a/cfg/spring/comp.cfg +++ /dev/null @@ -1,5 +0,0 @@ -self.pars['CMAKELIST'].val='spring.cmake' -self.pars['NB_TASKS'].val='4' -self.pars['NB_THREADS'].val='1' -self.pars['RUNMETHOD'].vals=['interactive','at','batch',] -self.pars['RUNMETHOD'].val='batch' diff --git a/cfg/spring/compilers.bashrc b/cfg/spring/compilers.bashrc deleted file mode 100644 index b7f235d395bf1753248d8e741a77493e61700a98..0000000000000000000000000000000000000000 --- a/cfg/spring/compilers.bashrc +++ /dev/null @@ -1,9 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -z "$MKLROOT" ]; then - if [ -d /opt/intel ] ; then - . /opt/intel/bin/compilervars.sh intel64 - fi -fi diff --git a/cfg/spring/compilers.profile b/cfg/spring/compilers.profile deleted file mode 100644 index 04874c07b5baa14cbcd7faff8dadc34133746694..0000000000000000000000000000000000000000 --- a/cfg/spring/compilers.profile +++ /dev/null @@ -1,9 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -n "$BASH_VERSION" ]; then - if [ -d /opt/intel ] ; then - . /opt/intel/bin/compilervars.sh intel64 # mets intel mpi par defaut! - fi -fi \ No newline at end of file diff --git a/cfg/spring/gmsh.profile b/cfg/spring/gmsh.profile deleted file mode 100644 index 412f3fcb47cd01cfd224b34e5ac684e0516fecd4..0000000000000000000000000000000000000000 --- a/cfg/spring/gmsh.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/gmsh/bin" front -add2env LD_LIBRARY_PATH "/opt/gmsh/lib" -add2env PYTHONPATH "/opt/gmsh/lib" diff --git a/cfg/spring/lagamine.profile b/cfg/spring/lagamine.profile deleted file mode 100644 index f8e4775f5d0074110bc831b07f445a947b427092..0000000000000000000000000000000000000000 --- a/cfg/spring/lagamine.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/lagamine/lib" -add2env INCLUDE "/opt/lagamine/include" -add2env LIB "/opt/lagamine/lib" diff --git a/cfg/spring/launch.cfg b/cfg/spring/launch.cfg deleted file mode 100644 index d66afc51905cfa52f06df5c21904031fed7df37f..0000000000000000000000000000000000000000 --- a/cfg/spring/launch.cfg +++ /dev/null @@ -1,4 +0,0 @@ -self.pars['NB_THREADS'].val='4' -self.pars['NB_TASKS'].val='1' -self.pars['RUNMETHOD'].vals=['interactive','at','batch'] -self.pars['RUNMETHOD'].val='batch' diff --git a/cfg/spring/matlab.profile b/cfg/spring/matlab.profile deleted file mode 100644 index 0ff358894261fe6d720b2ad0368687cf5a7ce5f1..0000000000000000000000000000000000000000 --- a/cfg/spring/matlab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/matlab/bin" diff --git a/cfg/spring/mumps.profile b/cfg/spring/mumps.profile deleted file mode 100644 index 57e0adabd33cd60503f6133f2c8fa4acd4e77105..0000000000000000000000000000000000000000 --- a/cfg/spring/mumps.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/mumps/lib" -add2env LIB "/opt/mumps/lib" -add2env INCLUDE "/opt/mumps/include" diff --git a/cfg/spring/parasolid.profile b/cfg/spring/parasolid.profile deleted file mode 100644 index e24e2e80de8a8cf8b1f2a4f4ef7f632bb44dcb81..0000000000000000000000000000000000000000 --- a/cfg/spring/parasolid.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/parasolid/shared_object" -add2env INCLUDE "/opt/parasolid" -export P_SCHEMA=/opt/parasolid/schema diff --git a/cfg/spring/samcef.profile b/cfg/spring/samcef.profile deleted file mode 100644 index 834343ee4c4dcc979289fc859455636e016269dc..0000000000000000000000000000000000000000 --- a/cfg/spring/samcef.profile +++ /dev/null @@ -1,2 +0,0 @@ -export SAM_ZONE=200000000 -add2env PATH "/opt/samcef" diff --git a/cfg/spring/scilab.profile b/cfg/spring/scilab.profile deleted file mode 100644 index 72c51052e8b19230c202e95c2afe96fa167d1f32..0000000000000000000000000000000000000000 --- a/cfg/spring/scilab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/scilab/bin" front diff --git a/cfg/thorgal/comp.cfg b/cfg/thorgal/comp.cfg deleted file mode 100644 index 5d4a8199fa4479202de29572e4270e2964faaf20..0000000000000000000000000000000000000000 --- a/cfg/thorgal/comp.cfg +++ /dev/null @@ -1,5 +0,0 @@ -self.pars['CMAKELIST'].val='thorgal.cmake' -self.pars['NB_TASKS'].val='4' -self.pars['NB_THREADS'].val='1' -self.pars['RUNMETHOD'].vals=['interactive','at','batch',] -self.pars['RUNMETHOD'].val='batch' diff --git a/cfg/thorgal/gmsh.profile b/cfg/thorgal/gmsh.profile deleted file mode 100644 index 412f3fcb47cd01cfd224b34e5ac684e0516fecd4..0000000000000000000000000000000000000000 --- a/cfg/thorgal/gmsh.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/gmsh/bin" front -add2env LD_LIBRARY_PATH "/opt/gmsh/lib" -add2env PYTHONPATH "/opt/gmsh/lib" diff --git a/cfg/thorgal/intelCommunity.bashrc b/cfg/thorgal/intelCommunity.bashrc deleted file mode 100644 index a81955c06d056963a9f05d0b4e730e417edc39c3..0000000000000000000000000000000000000000 --- a/cfg/thorgal/intelCommunity.bashrc +++ /dev/null @@ -1,11 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -z "$MKLROOT" ]; then - . /opt/intel/mkl/bin/mklvars.sh intel64 -fi -if [ -z "$TBBROOT" ]; then - . /opt/intel/tbb/bin/tbbvars.sh intel64 -fi - diff --git a/cfg/thorgal/intelCommunity.profile b/cfg/thorgal/intelCommunity.profile deleted file mode 100644 index e5d1ff529ac7757508667647255d5708529c0467..0000000000000000000000000000000000000000 --- a/cfg/thorgal/intelCommunity.profile +++ /dev/null @@ -1,10 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -n "$BASH_VERSION" ]; then - if [ -d /opt/intel ] ; then - . /opt/intel/mkl/bin/mklvars.sh intel64 - . /opt/intel/tbb/bin/tbbvars.sh intel64 - fi -fi diff --git a/cfg/thorgal/lagamine.profile b/cfg/thorgal/lagamine.profile deleted file mode 100644 index f8e4775f5d0074110bc831b07f445a947b427092..0000000000000000000000000000000000000000 --- a/cfg/thorgal/lagamine.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/lagamine/lib" -add2env INCLUDE "/opt/lagamine/include" -add2env LIB "/opt/lagamine/lib" diff --git a/cfg/thorgal/launch.cfg b/cfg/thorgal/launch.cfg deleted file mode 100644 index d66afc51905cfa52f06df5c21904031fed7df37f..0000000000000000000000000000000000000000 --- a/cfg/thorgal/launch.cfg +++ /dev/null @@ -1,4 +0,0 @@ -self.pars['NB_THREADS'].val='4' -self.pars['NB_TASKS'].val='1' -self.pars['RUNMETHOD'].vals=['interactive','at','batch'] -self.pars['RUNMETHOD'].val='batch' diff --git a/cfg/thorgal/matlab.profile b/cfg/thorgal/matlab.profile deleted file mode 100644 index 0ff358894261fe6d720b2ad0368687cf5a7ce5f1..0000000000000000000000000000000000000000 --- a/cfg/thorgal/matlab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/matlab/bin" diff --git a/cfg/thorgal/mumps.profile b/cfg/thorgal/mumps.profile deleted file mode 100644 index 57e0adabd33cd60503f6133f2c8fa4acd4e77105..0000000000000000000000000000000000000000 --- a/cfg/thorgal/mumps.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/mumps/lib" -add2env LIB "/opt/mumps/lib" -add2env INCLUDE "/opt/mumps/include" diff --git a/cfg/thorgal/parasolid.profile b/cfg/thorgal/parasolid.profile deleted file mode 100644 index e24e2e80de8a8cf8b1f2a4f4ef7f632bb44dcb81..0000000000000000000000000000000000000000 --- a/cfg/thorgal/parasolid.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/parasolid/shared_object" -add2env INCLUDE "/opt/parasolid" -export P_SCHEMA=/opt/parasolid/schema diff --git a/cfg/thorgal/samcef.profile b/cfg/thorgal/samcef.profile deleted file mode 100644 index 834343ee4c4dcc979289fc859455636e016269dc..0000000000000000000000000000000000000000 --- a/cfg/thorgal/samcef.profile +++ /dev/null @@ -1,2 +0,0 @@ -export SAM_ZONE=200000000 -add2env PATH "/opt/samcef" diff --git a/cfg/thorgal/scilab.profile b/cfg/thorgal/scilab.profile deleted file mode 100644 index 72c51052e8b19230c202e95c2afe96fa167d1f32..0000000000000000000000000000000000000000 --- a/cfg/thorgal/scilab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/scilab/bin" front diff --git a/cfg/warson/cmake.profile b/cfg/warson/cmake.profile new file mode 100644 index 0000000000000000000000000000000000000000..aa827bc444b3676e163d75670b55147543fe2e90 --- /dev/null +++ b/cfg/warson/cmake.profile @@ -0,0 +1,2 @@ +# Trilinos requires cmake >= 3.10 +add2env PATH "/opt/cmake/bin" front diff --git a/cfg/william/gmsh.profile b/cfg/william/gmsh.profile deleted file mode 100644 index 412f3fcb47cd01cfd224b34e5ac684e0516fecd4..0000000000000000000000000000000000000000 --- a/cfg/william/gmsh.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/gmsh/bin" front -add2env LD_LIBRARY_PATH "/opt/gmsh/lib" -add2env PYTHONPATH "/opt/gmsh/lib" diff --git a/cfg/william/intelCommunity.bashrc b/cfg/william/intelCommunity.bashrc deleted file mode 100644 index 06b19829f74c80dfdd976ee5101827abd29d4a99..0000000000000000000000000000000000000000 --- a/cfg/william/intelCommunity.bashrc +++ /dev/null @@ -1,9 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -d /opt/intel ] ; then - . /opt/intel/mkl/bin/mklvars.sh intel64 - . /opt/intel/tbb/bin/tbbvars.sh intel64 -fi -export MKL_DEBUG_CPU_TYPE=5 diff --git a/cfg/william/intelCommunity.profile b/cfg/william/intelCommunity.profile deleted file mode 100644 index 3e1712b61b2a5ce6663f92f7e136e05e370bb2fe..0000000000000000000000000000000000000000 --- a/cfg/william/intelCommunity.profile +++ /dev/null @@ -1,11 +0,0 @@ -# Intel compiler and/or TBB/MKL -# -# EXPLANATIONS [RB]: (see "cfg/garfield/compilers.*") - -if [ -n "$BASH_VERSION" ]; then - if [ -d /opt/intel ] ; then - . /opt/intel/mkl/bin/mklvars.sh intel64 - . /opt/intel/tbb/bin/tbbvars.sh intel64 - fi -fi -export MKL_DEBUG_CPU_TYPE=5 diff --git a/cfg/william/lagamine.profile b/cfg/william/lagamine.profile deleted file mode 100644 index f8e4775f5d0074110bc831b07f445a947b427092..0000000000000000000000000000000000000000 --- a/cfg/william/lagamine.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/lagamine/lib" -add2env INCLUDE "/opt/lagamine/include" -add2env LIB "/opt/lagamine/lib" diff --git a/cfg/william/matlab.profile b/cfg/william/matlab.profile deleted file mode 100644 index 0ff358894261fe6d720b2ad0368687cf5a7ce5f1..0000000000000000000000000000000000000000 --- a/cfg/william/matlab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/matlab/bin" diff --git a/cfg/william/mumps.profile b/cfg/william/mumps.profile deleted file mode 100644 index 57e0adabd33cd60503f6133f2c8fa4acd4e77105..0000000000000000000000000000000000000000 --- a/cfg/william/mumps.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env LD_LIBRARY_PATH "/opt/mumps/lib" -add2env LIB "/opt/mumps/lib" -add2env INCLUDE "/opt/mumps/include" diff --git a/cfg/william/parasolid.profile b/cfg/william/parasolid.profile deleted file mode 100644 index e24e2e80de8a8cf8b1f2a4f4ef7f632bb44dcb81..0000000000000000000000000000000000000000 --- a/cfg/william/parasolid.profile +++ /dev/null @@ -1,3 +0,0 @@ -add2env PATH "/opt/parasolid/shared_object" -add2env INCLUDE "/opt/parasolid" -export P_SCHEMA=/opt/parasolid/schema diff --git a/cfg/william/samcef.profile b/cfg/william/samcef.profile deleted file mode 100644 index 834343ee4c4dcc979289fc859455636e016269dc..0000000000000000000000000000000000000000 --- a/cfg/william/samcef.profile +++ /dev/null @@ -1,2 +0,0 @@ -export SAM_ZONE=200000000 -add2env PATH "/opt/samcef" diff --git a/cfg/william/scilab.profile b/cfg/william/scilab.profile deleted file mode 100644 index 72c51052e8b19230c202e95c2afe96fa167d1f32..0000000000000000000000000000000000000000 --- a/cfg/william/scilab.profile +++ /dev/null @@ -1 +0,0 @@ -add2env PATH "/opt/scilab/bin" front diff --git a/comp.py b/comp.py index 4bc179a680595d30e92ee1dc8fc341a710998302..3131cff16e1d154a3fed704193f098fae56797a3 100755 --- a/comp.py +++ b/comp.py @@ -83,7 +83,7 @@ class CompJob(ParametricJob): TextPRM(self.pars, 'PYTHONEXE', 'Python executable', sys.executable) - TextPRM(self.pars, 'NICE_VALUE', 'nice value', "0") + TextPRM(self.pars, 'PRIORITY', 'priority [1-5]', "3") TextPRM(self.pars, 'NB_TASKS', 'nb of tasks launched in parallel', "1") TextPRM(self.pars, 'NB_THREADS', 'nb of threads by task', "1") @@ -91,6 +91,8 @@ class CompJob(ParametricJob): TextPRM(self.pars, 'GIT_DEPTH', 'git clone depth', '10') TextPRM(self.pars, 'GIT_BRANCH', 'git branch name', 'master') + MultiPRM(self.pars, 'BATTERY_ARG', 'battery argument', ["", "--fpe", "--withWER", "--keep"], "") + MultiPRM(self.pars, 'RUNMETHOD', 'Run Method', ["interactive", "at", "batch"], "batch") TextPRM(self.pars, 'AT_TIME' , 'Delay for at launch (no syntax check, use with care)', "now") @@ -108,10 +110,12 @@ class CompJob(ParametricJob): PRMAction(self.actions, 'g', self.pars['GIT_DEPTH']) PRMAction(self.actions, 'h', self.pars['GIT_BRANCH']) - PRMAction(self.actions, 'i', self.pars['NICE_VALUE']) + PRMAction(self.actions, 'i', self.pars['PRIORITY']) PRMAction(self.actions, 'j', self.pars['NB_TASKS']) PRMAction(self.actions, 'k', self.pars['NB_THREADS']) + PRMAction(self.actions, 'l', self.pars['BATTERY_ARG']) + PRMAction(self.actions, 'm', self.pars['RUNMETHOD']) # AT paramters PRMAction(self.actions, 'n', self.pars['AT_TIME']) @@ -132,11 +136,13 @@ class CompJob(ParametricJob): self.pars['NB_THREADS'].enable(self.pars['COMPILE'].val==True or self.pars['BATTERY'].val!=False) self.pars['CMAKELIST'].enable(self.pars['COMPILE'].val==True) self.pars['DEBUG_MODE'].enable(self.pars['COMPILE'].val==True) - self.pars['NICE_VALUE'].enable(self.pars['BATTERY'].val!=False and self.pars['RUNMETHOD'].val!='sge') + self.pars['PRIORITY'].enable(self.pars['BATTERY'].val!=False and self.pars['RUNMETHOD'].val!='sge') self.pars['GIT_DEPTH'].enable(self.pars['UNZIP'].val=="checkout" and not self.pars['GIT_FULLCLONE'].val) self.pars['GIT_BRANCH'].enable(self.pars['UNZIP'].val=="checkout") # Batch self.pars['AT_TIME'].enable(self.pars['RUNMETHOD'].val=='at') + # battery arg + self.pars['BATTERY_ARG'].enable(self.pars['BATTERY']!=False) def touchFiles(self): for repo in self.repos: @@ -256,9 +262,16 @@ class CompJob(ParametricJob): now = datetime.datetime.now() print("starting battery at %s (come back tomorrow)" % now.ctime()) os.chdir('oo_metaB/bin') - cmd="nice -%s %s battery.py -j %s -k %s >battery.log 2>&1" % \ - (self.pars['NICE_VALUE'].val, self.pars['PYTHONEXE'].val, \ - self.pars['NB_TASKS'].val, self.pars['NB_THREADS'].val) + #cmd="nice -%s %s battery.py %s -j %s -k %s >battery.log 2>&1" % \ + # (self.pars['NICE_VALUE'].val, self.pars['PYTHONEXE'].val, \ + # self.pars['BATTERY_ARG'].val,\ + # self.pars['NB_TASKS'].val, self.pars['NB_THREADS'].val) + cmd="%s battery.py %s -p %s -j %s -k %s >battery.log 2>&1" % \ + (self.pars['PYTHONEXE'].val,\ + self.pars['BATTERY_ARG'].val,\ + self.pars['PRIORITY'].val,\ + self.pars['NB_TASKS'].val,\ + self.pars['NB_THREADS'].val) p = subprocess.Popen(cmd, shell=True) p.wait() # finish script diff --git a/launch.py b/launch.py index b73e5aa02193a4289e0cfe1d9ea7835fd6ed2917..71aa7529cceade66f49951d65badaabb696e83cf 100755 --- a/launch.py +++ b/launch.py @@ -47,7 +47,7 @@ class LaunchJob(ParametricJob): TextPRM(self.pars, 'RESTART_STEP', 'restart step', "-1") - TextPRM(self.pars, 'NICE_VALUE', 'nice value', "0") + TextPRM(self.pars, 'PRIORITY', 'priority [1-5]', "3") TextPRM(self.pars, 'AFFINITY', 'affinity (cores list)', "") TextPRM(self.pars, 'NB_TASKS', 'nb of task launched in parallel', "1") TextPRM(self.pars, 'NB_THREADS', 'nb of threads by task', "1") @@ -88,7 +88,7 @@ class LaunchJob(ParametricJob): PRMAction(self.actions, 'g', self.pars['RESTART_STEP']) PRMAction(self.actions, 'h', self.pars['MULTITEST']) - PRMAction(self.actions, 'i', self.pars['NICE_VALUE']) + PRMAction(self.actions, 'i', self.pars['PRIORITY']) PRMAction(self.actions, 'j', self.pars['AFFINITY']) PRMAction(self.actions, 'k', self.pars['NB_TASKS']) PRMAction(self.actions, 'l', self.pars['NB_THREADS']) @@ -155,8 +155,8 @@ class LaunchJob(ParametricJob): self.pars['FTP_PASS'].enable(self.pars['ENABLE_FTP'].val==True) self.pars['FTP_DIR'].enable(self.pars['ENABLE_FTP'].val==True) - self.pars['NICE_VALUE'].enable(self.pars['RUNMETHOD'].val!='sge' and - self.pars['RUNMETHOD'].val!='slurm') + self.pars['PRIORITY'].enable(self.pars['RUNMETHOD'].val!='sge' and + self.pars['RUNMETHOD'].val!='slurm') self.pars['AFFINITY'].enable(self.pars['RUNMETHOD'].val!='sge' and self.pars['RUNMETHOD'].val!='slurm' and @@ -184,7 +184,6 @@ class LaunchJob(ParametricJob): self.pars['MODEL'].enable(self.pars['RUNMETHOD'].val=='pbs') # cpu model (to choose subqueue) self.pars['PROJECT'].enable(self.pars['RUNMETHOD'].val=='pbs') # project (group access & facturation) - def getJobName(self): if (self.pars['MULTITEST'].val==False): jobname=os.path.basename(os.getcwd())+"."+self.pars['TEST_NAME'].val @@ -283,14 +282,15 @@ class LaunchJob(ParametricJob): fNames = [] if self.pars['RUNMETHOD'].val == 'sge': fNames.append(self.qDelScriptName(self.jobId)) - fNames.append(self.cfgfile) + #fNames.append(self.cfgfile) elif self.pars['RUNMETHOD'].val == 'slurm': fNames.append(self.sCancelScriptName(self.jobId)) - fNames.append(self.cfgfile) + #fNames.append(self.cfgfile) elif self.pars['RUNMETHOD'].val == 'at' or self.pars['RUNMETHOD'].val == 'batch': fNames.append("kill%s.py"%self.jobId) fNames.append("atrm%s.py"%self.jobId) - fNames.append(self.cfgfile) + fNames.append("runbatch%s.sh"%self.jobId) + #fNames.append(self.cfgfile) else: fNames.append("kill%s.py"%self.jobId) for fil in fNames: @@ -381,8 +381,7 @@ class LaunchJob(ParametricJob): if self.pars['RUNMETHOD'].val != 'sge' and self.pars['RUNMETHOD'].val != 'slurm': if self.pars['AFFINITY'].val != '': pin.write(('battery.setAffinity("%s")\n'%self.pars['AFFINITY'].val).encode('utf-8')) - if self.pars['NICE_VALUE'].val != '0': - pin.write(('battery.setNice(%s)\n'%self.pars['NICE_VALUE'].val).encode('utf-8')) + pin.write(('battery.setPriority(%s)\n'%self.pars['PRIORITY'].val).encode('utf-8')) pin.write(('battery.setNumTasks(%s)\n'%self.pars['NB_TASKS'].val).encode('utf-8')) pin.write(('battery.setNumThreads(%s)\n'%self.pars['NB_THREADS'].val).encode('utf-8')) diff --git a/launchGui.pyw b/launchGui.pyw index 2af43e93caee3420fe64323adc927ec53d5c8ce0..4c57d566dae71be25d6761b7e2af3da83015c005 100755 --- a/launchGui.pyw +++ b/launchGui.pyw @@ -135,7 +135,7 @@ class LaunchGui(QWidget): nbProcs = multiprocessing.cpu_count() self.sf['NB_TASKS'] = TextLine(self, grplay2, self.launch.pars['NB_TASKS'], 0, 0, 1, QIntValidator(1,nbProcs)) self.sf['NB_THREADS'] = TextLine(self, grplay2, self.launch.pars['NB_THREADS'], 0, 3, 1, QIntValidator(1,nbProcs)) - self.sf['NICE_VALUE'] = TextLine(self, grplay2, self.launch.pars['NICE_VALUE'], 1, 0, 1, QIntValidator(1,19)) + self.sf['PRIORITY'] = TextLine(self, grplay2, self.launch.pars['PRIORITY'], 1, 0, 1) #, QIntValidator(1,5)) self.sf['AFFINITY'] = TextLine(self, grplay2, self.launch.pars['AFFINITY'], 1, 3, 1) self.sf['RUNMETHOD'] = MultiPMRLine(self, grplay2, self.launch.pars['RUNMETHOD'],2,0) @@ -260,12 +260,7 @@ class LaunchGui(QWidget): mtfdir, mtfexe = os.path.split(self.launch.pars['EXEC_NAME'].val) ldlp = mtfdir+':'+env.value('LD_LIBRARY_PATH','') env.insert('LD_LIBRARY_PATH',ldlp) - self.process.setProcessEnvironment(env) - # gestion du nice sur le QProcess : pas arrive a faire marcher !!! - #self.process.setPriority (self.launch.pars['NICE_VALUE'].val) - #pid = self.process.pid() - #print "QProcess pid : ",self.process.pid() # self.process.readyReadStandardOutput.connect(self.readStdOutput) # launch.go() ... @@ -273,7 +268,6 @@ class LaunchGui(QWidget): except Exception as e: QMessageBox.information(self, 'Error', str(e)) - # re enable the gui modifications self.guiEnable(True) diff --git a/mtfLicense/william.lic b/mtfLicense/william.lic deleted file mode 100644 index 260f86c6cd8cf934725b65f14de343cdccfec8e7..0000000000000000000000000000000000000000 --- a/mtfLicense/william.lic +++ /dev/null @@ -1 +0,0 @@ -646574612B0A060C031B13305B736D657470666F722024372D0F021B1900102D0F0C1703161163666F722D657461D66F726D137461662B726D65FE61666F166D657463666F722F6574616A6F726D1E74616648726D659F61666F34666574 diff --git a/parametricJob.py b/parametricJob.py index 3276ad0f2dacc24cb5153d2aed08e0e4f2d9c7bb..616d0badbff4a049eb1dd7186c145871912d364a 100644 --- a/parametricJob.py +++ b/parametricJob.py @@ -326,24 +326,24 @@ class ParametricJob(PRMSet): if m: #cfgFileName, cfgFileExtension = os.path.splitext(self.cfgfile) #os.system("cp %s %s%s%s"%(self.cfgfile, cfgFileName, batchId, cfgFileExtension)) - self.atrmScript(batchId) + self.atrmScript(batchId, launchId) print("\tuse 'atq' and find job number %s to check the status of your job" % batchId) print("\t\t - 'a' means waiting in the queue 'a'") print("\t\t - '=' means running") print("\tuse 'atrm %s to kill the job" % batchId) - print("\t\t or 'atrm%s.py' to kill the job" % batchId) + print("\t\t or 'atrm%s.py' to kill the job" % launchId) # to avoid closing the gui if not (re.match(r'(.+)Gui.pyw', sys.argv[0])): sys.exit() - def atrmScript(self, pid): - filename = "atrm%s.py"%pid + def atrmScript(self, batchId, launchId): + filename = "atrm%s.py"%launchId file=open(filename,"w") file.write("#!/usr/bin/env python3\n") file.write("import os\n") - file.write("os.system('atrm %s')\n" % pid) - file.write("if os.path.isfile('kill%s.py'):\n" % pid) - file.write("\texec(open('kill%s.py').read())\n" % pid) + file.write("os.system('atrm %s')\n" % batchId) + file.write("if os.path.isfile('kill%s.py'):\n" % launchId) + file.write("\texec(open('kill%s.py').read())\n" % launchId) file.close() os.chmod(filename,0o700)