Changeset 678 for palm/trunk/SCRIPTS
- Timestamp:
- Feb 2, 2011 2:31:56 PM (14 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r635 r678 1043 1043 if [[ "$modules" != "" ]] 1044 1044 then 1045 module_calls="module load ${modules};" 1045 if [[ $remote_host = lctit ]] 1046 then 1047 module_calls=". $modules" 1048 else 1049 module_calls="module load ${modules};" 1050 fi 1046 1051 1047 1052 # bugfix for wrong netcdf module … … 1203 1208 if [[ "$modules" != "" ]] 1204 1209 then 1205 module_calls="module load ${modules};" 1210 if [[ $remote_host = lctit ]] 1211 then 1212 module_calls=". $modules" 1213 else 1214 module_calls="module load ${modules};" 1215 fi 1206 1216 1207 1217 # bugfix for wrong netcdf module … … 1263 1273 if [[ "$modules" != "" ]] 1264 1274 then 1265 module load ${modules} 1275 if [[ $remote_host = lctit ]] 1276 then 1277 . $modules 1278 else 1279 module load ${modules} 1280 fi 1266 1281 fi 1267 1282 -
palm/trunk/SCRIPTS/mrun
r670 r678 217 217 # 23/12/10 - Micha - different number of processors in ocean and atmosphere 218 218 # is now allowed 219 # 02/02/10 - Siggi - further adjustments on Tsubame and concerning openMP 220 # usage 221 219 222 220 223 … … 2102 2105 if [[ "$modules" != "" ]] 2103 2106 then 2104 export module_calls="module load ${modules};" 2107 if [[ $host = lctit ]] 2108 then 2109 export module_calls=". $modules" 2110 else 2111 export module_calls="module load ${modules};" 2112 fi 2105 2113 fi 2106 2114 … … 3314 3322 # export MV2_CPU_MAPPING=0,1,4,5,2,3,6,7 3315 3323 # fi 3316 [[ $use_openmp = true ]] && unset MV2_CPU_MAPPING3317 echo "*** MV2_CPU_MAPPING=$MV2_CPU_MAPPING"3318 3324 if [[ $use_openmp = true ]] 3319 3325 then 3326 unset MV2_CPU_MAPPING 3327 export MV2_ENABLE_AFFINITY=0 3328 fi 3329 echo "*** MV2_CPU_MAPPING=$MV2_CPU_MAPPING" 3330 echo "*** MV2_ENABLE_AFFINITY=$MV2_ENABLE_AFFINITY" 3331 if [[ $use_openmp = true ]] 3332 then 3333 echo " mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos" 3320 3334 mpiexec -npernode $tasks_per_node ./a.out $ROPTS < runfile_atmos 3321 3335 else … … 3435 3449 elif [[ $host = lctit ]] 3436 3450 then 3437 mpirun -np $numprocs -hostfile $PBS_NODEFILE ./a.out $ROPTS 3451 export OMP_NUM_THREADS=$threads_per_task 3452 echo "OMP_NUM_THREADS=$OMP_NUM_THREADS" 3453 if [[ "$threads_per_task" != 1 ]] 3454 then 3455 export MV2_ENABLE_AFFINITY=0 3456 fi 3457 echo "----- PBS_NODEFILE content:" 3458 cat $PBS_NODEFILE 3459 echo "-----" 3460 (( ii = $numprocs / $threads_per_task )) 3461 echo "mpirun -np $ii -hostfile $PBS_NODEFILE ./a.out $ROPTS" 3462 mpirun -np $ii -hostfile $PBS_NODEFILE ./a.out $ROPTS 3438 3463 else 3439 3464 mpprun -n $numprocs a.out $ROPTS -
palm/trunk/SCRIPTS/subjob
r635 r678 126 126 # 14/12/10 - Siggi - adjustments for new Tsubame system at Tokyo 127 127 # institute of technology (lctit) 128 # 02/02/11 - Siggi - further asjustments for Tsubame concerning openMP 129 128 130 129 131 … … 1038 1040 #!/bin/ksh 1039 1041 1042 $module_calls 1043 1040 1044 %%END%% 1041 1045 1042 1046 # OPTIONEN FUER SUBMIT-KOMMANDO ZUSAMMENSTELLEN 1043 submcom="$submcom -W group_list=$group_number -N $job_name -l walltime=$timestring -l select=$nodes:ncpus=$processes_per_node:mpiprocs=$tasks_per_node:mem=${Memory}gb -l place=scatter -o $remote_dayfile -j oe -q $queue " 1047 if [[ $tasks_per_node != $processes_per_node ]] 1048 then 1049 submcom="$submcom -W group_list=$group_number -N $job_name -l walltime=$timestring -l select=$nodes:ncpus=$processes_per_node:mpiprocs=$tasks_per_node:mem=${Memory}gb -o $remote_dayfile -j oe -q $queue " 1050 else 1051 submcom="$submcom -W group_list=$group_number -N $job_name -l walltime=$timestring -l select=$nodes:ncpus=$processes_per_node:mpiprocs=$tasks_per_node:mem=${Memory}gb -l place=scatter -o $remote_dayfile -j oe -q $queue " 1052 fi 1044 1053 1045 1054 else
Note: See TracChangeset
for help on using the changeset viewer.