- Timestamp:
- 03/26/19 12:01:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh
r1469 r1480 1039 1039 echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 1040 1040 fi 1041 if ( ${OK_PARA_MPI} ) ; then 1041 1042 if [ ${mpiTasks} -eq 1 ] && [ ${openMPthreads} -eq 1 ] ; then 1043 # Case with only one proc 1044 # mpirun should not be used at obelix for only one proc 1045 # Output text per process 1046 echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 1047 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1048 EXECUTION="time ./script_${ExeNameOut}.ksh" 1049 elif ( ${OK_PARA_MPI} ) ; then 1042 1050 # Default : mpirun used if nb_proc gt 1 1043 # pour sortie out/err par process1051 # Output text per process 1044 1052 echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}" >> script_${ExeNameOut}.ksh 1045 #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh1046 1053 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1047 1054 EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 1048 1055 else 1049 # Default : mpirun is NOT used if nb_proc eq 1 1050 # pour sortie out/err par process 1051 echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 1052 #echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 1053 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1054 EXECUTION="time ./script_${ExeNameOut}.ksh" 1056 # Strange case. 1057 IGCM_debug_Exit "ERROR with OK_PARA_MPI" 1058 IGCM_debug_Print 2 "sys Obelix : OK_PARA_MPI=False and mpiTask/openMPthreds different from 1" 1059 IGCM_debug_Verif_Exit 1055 1060 fi 1056 1061
Note: See TracChangeset
for help on using the changeset viewer.