Changeset 1492
- Timestamp:
- 10/18/19 17:29:44 (5 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_job
r1490 r1492 50 50 #-Q- jeanzay #SBATCH --output=Script_Output_::Jobname::.000001 # standard output 51 51 #-Q- jeanzay #SBATCH --error=Script_Output_::Jobname::.000001 # error output 52 #-Q- jeanzay ####SBATCH -eo53 52 #-Q- jeanzay #SBATCH --ntasks=::JobNumProcTot:: # Number of MPI tasks 54 53 #-Q- jeanzay #SBATCH --cpus-per-task=::openMPthreads:: # Number of openMP threads. … … 487 486 IGCM_debug_Verif_Exit 488 487 488 #-Q- jeanzay # Workaround at Jean-Zay 489 #-Q- jeanzay source $I_MPI_ROOT/intel64/bin/mpivars.sh release_mt 490 489 491 #D- 490 492 #D---------------------------------------------------------------------== -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_jeanzay.ksh
r1490 r1492 157 157 #==================================================== 158 158 #- HOST_MPIRUN_COMMAND 159 typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time srun --mpi=pmi2"}159 typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time srun "} 160 160 161 161 #==================================================== … … 178 178 #- Number of computing cores per node 179 179 #- 180 NB_CORE_PER_NODE=4 8180 NB_CORE_PER_NODE=40 181 181 182 182 #D-#================================================== … … 1237 1237 # case 1 : Only MPI (MPMD) 1238 1238 if ( ! ${OK_PARA_OMP} ) ; then 1239 1240 1239 # Build run_file 1241 1240 current_core=0 1242 1241 # First loop on the components for the coupler ie oasis (only if oasis3) 1243 1242 # the coupler ie oasis3 must be the first one … … 1247 1246 eval ExeNameOut=\${config_Executable_${comp}[1]} 1248 1247 1249 # for CPL component only1250 if [ "X${comp}" = "XCPL" ] && [ "X${ExeNameOut}" != X\"\" ]; then1248 # Only if the component has an executable 1249 if ( [ "X${ExeNameOut}" != X\"\" ] ) ; then 1251 1250 1252 1251 eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 1253 eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 1254 echo "${comp_proc_mpi_loc} ./${ExeNameOut}" >> run_file 1252 (( end_core = ${current_core} + ${comp_proc_mpi_loc} - 1 )) 1253 echo "${current_core}-${end_core} ./${ExeNameOut}" >> run_file 1254 (( current_core = ${end_core} + 1 )) 1255 1255 fi 1256 1256 done 1257 1257 1258 # Then second loop on the components 1259 for comp in ${config_ListOfComponents[*]} ; do 1260 1261 eval ExeNameIn=\${config_Executable_${comp}[0]} 1262 eval ExeNameOut=\${config_Executable_${comp}[1]} 1263 1264 # Only if we really have an executable for the component and not the coupler ie oasis: 1265 if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${comp}" != "XCPL" ] ) ; then 1266 1267 eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 1268 eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 1269 echo "${comp_proc_mpi_loc} ./${ExeNameOut}" >> run_file 1270 fi 1271 done 1272 1273 EXECUTION="${HOST_MPIRUN_COMMAND} -f ./run_file" 1258 EXECUTION="${HOST_MPIRUN_COMMAND} --multi-prog ./run_file" 1274 1259 1275 1260 IGCM_sys_Chmod u+x run_file
Note: See TracChangeset
for help on using the changeset viewer.