Changeset 1530 for trunk


Ignore:
Timestamp:
05/20/20 16:47:49 (4 years ago)
Author:
rpennel
Message:

resolve commit [1515] / use of new ksh init module file for jean-zay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_jeanzay.ksh

    r1523 r1530  
    9393#==================================================== 
    9494# See ticket #348 
    95 # Following path should be used according to assist IDRIS but it makes errors furter below 
    96 #. /gpfslocalsup/spack_soft/environment-modules/current/init/ksh 
     95# Following path should be used according to assist IDRIS 
     96. /gpfslocalsup/spack_soft/environment-modules/current/init/ksh 
    9797# Following old path gives error messages while loading modules but it still works 
    98 . /usr/share/Modules/init/ksh 
     98#. /usr/share/Modules/init/ksh 
    9999 
    100100#==================================================== 
     
    13071307 
    13081308    #  Hosts treatment 
     1309    _bkIFS=$IFS; 
    13091310        IFS=$'\n'; set -f 
    13101311        listnodes=($(< <( scontrol show hostnames $SLURM_JOB_NODELIST ))) 
    1311         unset IFS; set +f 
     1312        IFS=$_bkIFS; set +f 
    13121313        rm -f hostlist 
    13131314 
     
    13831384          # Build configuration file 
    13841385  
    1385           echo "#!/bin/sh" > prog_${ExeNameOut}.sh 
     1386              echo "#!/bin/sh" > prog_${ExeNameOut}.sh 
    13861387          echo "(( init = $current_core + \$1 ))" >> prog_${ExeNameOut}.sh 
    13871388          echo "(( index = init * $comp_proc_omp_loc ))" >> prog_${ExeNameOut}.sh 
    13881389          echo "(( slot = index % 40 ))" >> prog_${ExeNameOut}.sh 
    1389           echo "echo ${ExeNameOut} taskset -c \$slot"-"\$((slot + $comp_proc_omp_loc - 1))" >> prog_${ExeNameOut}.sh 
     1390              echo "echo ${ExeNameOut} taskset -c \$slot"-"\$((slot + $comp_proc_omp_loc - 1))" >> prog_${ExeNameOut}.sh 
    13901391          echo "taskset -c \$slot"-"\$((slot + $comp_proc_omp_loc - 1)) ./script_${ExeNameOut}.ksh" >> prog_${ExeNameOut}.sh 
    13911392 
Note: See TracChangeset for help on using the changeset viewer.