- Timestamp:
- 06/18/12 09:11:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
r684 r686 1702 1702 fi 1703 1703 1704 typeset max_omp1705 1706 1704 ulimit -s unlimited 1707 1705 1708 (( max_omp = 0 )) 1709 for comp in ${config_ListOfComponents[*]} ; do 1710 1711 eval ExeNameIn=\${config_Executable_${comp}[0]} 1712 eval ExeNameOut=\${config_Executable_${comp}[1]} 1713 1714 # Only if we really have an executable for the component : 1715 if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${comp}" != "XCPL" ] ) ; then 1716 eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 1717 if [ ${comp_proc_omp_loc} -gt ${max_omp} ] ; then 1718 (( max_omp = comp_proc_omp_loc )) 1719 fi 1720 fi 1721 done 1722 if [ ${max_omp} -gt 1 ] ; then 1723 module load openmp/${max_omp}thds 1724 fi 1706 export KMP_STACKSIZE=3g 1707 export KMP_LIBRARY=turnaround 1708 export MKL_SERIAL=YES 1709 unset MPI_PLACING_MODE 1725 1710 1726 1711 IGCM_debug_PopStack "IGCM_sys_activ_variables" … … 1849 1834 echo "export KMP_LIBRARY=turnaround" >> script_${ExeNameOut}.ksh 1850 1835 echo "export MKL_SERIAL=YES" >> script_${ExeNameOut}.ksh 1851 echo " OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh1836 echo "export OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 1852 1837 echo "(( MYMPIRANK = OMPI_COMM_WORLD_RANK - ${start_num})) " >> script_${ExeNameOut}.ksh 1853 1838 echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${MYMPIRANK} 2>out_${ExeNameOut}.err.\${MYMPIRANK}" >> script_${ExeNameOut}.ksh … … 1976 1961 if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${ExeNameOut}" != "Xinca.dat" ] ) ; then 1977 1962 1978 echo "#!/bin/ksh" > script_${ExeNameOut}.ksh1979 echo "" >> script_${ExeNameOut}.ksh1980 1963 if ( ${OK_PARA_OMP} ) ; then 1981 1964 eval comp_proc_omp_loc=\${${comp}_PROC_OMP} 1982 echo "export KMP_STACKSIZE=3g" >> script_${ExeNameOut}.ksh 1983 echo "export KMP_LIBRARY=turnaround" >> script_${ExeNameOut}.ksh 1984 echo "export MKL_SERIAL=YES" >> script_${ExeNameOut}.ksh 1985 echo "OMP_NUM_THREADS=${comp_proc_omp_loc}" >> script_${ExeNameOut}.ksh 1965 export OMP_NUM_THREADS=${comp_proc_omp_loc} 1986 1966 fi 1987 1967 if ( ${OK_PARA_MPI} ) ; then 1968 eval comp_proc_mpi_loc=\${${comp}_PROC_MPI} 1988 1969 # Default : mpirun used if nb_proc gt 1 1989 # pour sortie out/err par process 1970 # pour sortie out/err par process ? more test required 1990 1971 # echo "./${ExeNameOut} > out_${ExeNameOut}.out.\${OMPI_COMM_WORLD_RANK} 2>out_${ExeNameOut}.err.\${OMPI_COMM_WORLD_RANK}" >> script_${ExeNameOut}.ksh 1991 echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 1992 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 1993 EXECUTION="${HOST_MPIRUN_COMMAND} ./script_${ExeNameOut}.ksh" 1972 EXECUTION="${HOST_MPIRUN_COMMAND} -np ${comp_proc_mpi_loc} ./${ExeNameOut}" 1994 1973 else 1995 1974 # Default : mpirun is NOT used if nb_proc eq 1 1996 # pour sortie out/err par process 1975 # pour sortie out/err par process ? more test required 1997 1976 # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 1998 echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 1999 IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 2000 EXECUTION="time ./script_${ExeNameOut}.ksh" 1977 EXECUTION="time ./${ExeNameOut}" 2001 1978 fi 2002 1979 fi … … 2006 1983 2007 1984 IGCM_debug_Print 1 "sys Titane : La commande d execution est " 2008 IGCM_debug_Print 1 $EXECUTION1985 IGCM_debug_Print 1 "$EXECUTION" 2009 1986 2010 1987 IGCM_debug_PopStack "IGCM_sys_build_execution_scripts"
Note: See TracChangeset
for help on using the changeset viewer.