Changeset 1173 for trunk


Ignore:
Timestamp:
02/24/15 14:41:27 (9 years ago)
Author:
aclsce
Message:

MPMD + MPI-OpenMP mode

  • Modified to fit with new mpirun assignment method (method changed beacuse of activation of hyperthreading on Curie nodes).
  • Use of classic method in case of 1 OMP thread.
Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1150 r1173  
    850850              # Read OMP parameter for composante 
    851851              eval ${comp}_PROC_OMP=$( echo ${tempvar} | tr '[a-z]' '[A-Z]' | sed -e "s/OMP//" ) 
    852               OK_PARA_OMP=true;; 
     852              ;; 
    853853            *[nN][oO][dD]*) 
    854854              # Read NOD (NumBer of Nodes) parameter for composante 
     
    863863        eval tempvarNOD=\${${comp}_PROC_NOD} 
    864864        eval tempvarOMP=\${${comp}_PROC_OMP} 
     865 
     866        # set OMP mode if more than 1 OMP thread. 
     867        [ ${tempvarOMP} -ge 2 ] && OK_PARA_OMP=true 
    865868 
    866869        (( PROCESSUS_NUMBER = PROCESSUS_NUMBER + tempvarMPI * tempvarNOD * tempvarOMP )) 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r1166 r1173  
    22972297# Build rankfile : method used to assign cores and nodes for the MPI process 
    22982298# Ex : 
    2299 #rank 0=curie5296 slot=0,1,2,3 
    2300 #rank 1=curie5296 slot=4,5,6,7 
     2299#rank 0=curie5296 slot=0,2,4,6 
     2300#rank 1=curie5296 slot=8,10,12,14 
    23012301# Example of final command : 
    23022302# mpirun -hostfile hosts -rankfile rankfile -np 27 ./script_lmdz.x.ksh : -np 5 ./script_opa.xx.ksh 
     
    23172317            string_final="" 
    23182318            for index in `seq $slot $(($slot+$comp_proc_omp_loc-1))`; do 
    2319               string=$index$virg 
     2319              (( index_slot = index * 2 ))       
     2320              string=$index_slot$virg 
    23202321              string_final=$string_final$string 
    23212322            done 
Note: See TracChangeset for help on using the changeset viewer.