- Timestamp:
- 10/17/14 10:07:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
r1092 r1093 2037 2037 (( mpi_count = 1 )) 2038 2038 until [ ${mpi_count} -gt ${comp_proc_mpi_loc} ] ; do 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 *) 2052 2053 2054 2055 2056 2057 2058 echo "env OMP_NUM_THREADS=$comp_proc_omp_loc ./${ExeNameOut}" >> run_file 2059 2060 2061 2062 2039 if ( ${OK_PARA_OMP} ) ; then 2040 # Check if the number of threads is correct 2041 case ${comp_proc_omp_loc} in 2042 1|2) 2043 IGCM_debug_Print 1 "You run ${ExeNameOut} on ${comp_proc_omp_loc} OMP threads" 2044 ;; 2045 4|8|16) 2046 IGCM_debug_Exit "ERROR with OMP parameters !" 2047 IGCM_debug_Print 2 "Beware : ${comp_proc_omp_loc} is too much for MPMD mode" 2048 IGCM_debug_Print 2 "You will use more CPU than needed" 2049 IGCM_debug_Verif_Exit 2050 ;; 2051 *) 2052 IGCM_debug_Exit "ERROR with OMP parameters !" 2053 IGCM_debug_Print 2 "${comp_proc_omp_loc} is not possible as number of OMP threads" 2054 IGCM_debug_Print 2 "Only 2,4,8,16 as number of OMP threads are possible " 2055 IGCM_debug_Verif_Exit 2056 ;; 2057 esac 2058 echo "env OMP_NUM_THREADS=$comp_proc_omp_loc ./${ExeNameOut}" >> run_file 2059 else 2060 echo "./${ExeNameOut}" >> run_file 2061 fi 2062 (( mpi_count = mpi_count + 1 )) 2063 2063 done 2064 2064 else 2065 2065 echo "./${ExeNameOut} " >> run_file 2066 2066 fi 2067 2068 2069 2067 if ( ${OK_PARA_OMP} ) ; then 2068 export KMP_STACKSIZE=200m 2069 fi 2070 2070 fi 2071 2071 done
Note: See TracChangeset
for help on using the changeset viewer.