Changeset 678 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Feb 2, 2011 2:31:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.