- Timestamp:
- 05/20/20 16:47:49 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_jeanzay.ksh
r1523 r1530 93 93 #==================================================== 94 94 # See ticket #348 95 # Following path should be used according to assist IDRIS but it makes errors furter below96 #. /gpfslocalsup/spack_soft/environment-modules/current/init/ksh95 # Following path should be used according to assist IDRIS 96 . /gpfslocalsup/spack_soft/environment-modules/current/init/ksh 97 97 # Following old path gives error messages while loading modules but it still works 98 . /usr/share/Modules/init/ksh98 #. /usr/share/Modules/init/ksh 99 99 100 100 #==================================================== … … 1307 1307 1308 1308 # Hosts treatment 1309 _bkIFS=$IFS; 1309 1310 IFS=$'\n'; set -f 1310 1311 listnodes=($(< <( scontrol show hostnames $SLURM_JOB_NODELIST ))) 1311 unsetIFS; set +f1312 IFS=$_bkIFS; set +f 1312 1313 rm -f hostlist 1313 1314 … … 1383 1384 # Build configuration file 1384 1385 1385 echo "#!/bin/sh" > prog_${ExeNameOut}.sh1386 echo "#!/bin/sh" > prog_${ExeNameOut}.sh 1386 1387 echo "(( init = $current_core + \$1 ))" >> prog_${ExeNameOut}.sh 1387 1388 echo "(( index = init * $comp_proc_omp_loc ))" >> prog_${ExeNameOut}.sh 1388 1389 echo "(( slot = index % 40 ))" >> prog_${ExeNameOut}.sh 1389 echo "echo ${ExeNameOut} taskset -c \$slot"-"\$((slot + $comp_proc_omp_loc - 1))" >> prog_${ExeNameOut}.sh1390 echo "echo ${ExeNameOut} taskset -c \$slot"-"\$((slot + $comp_proc_omp_loc - 1))" >> prog_${ExeNameOut}.sh 1390 1391 echo "taskset -c \$slot"-"\$((slot + $comp_proc_omp_loc - 1)) ./script_${ExeNameOut}.ksh" >> prog_${ExeNameOut}.sh 1391 1392
Note: See TracChangeset
for help on using the changeset viewer.