Changeset 179 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Jul 16, 2008 11:47:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r172 r179 147 147 # adjustments for lcxt4 (Bergen Center for Computational 148 148 # Science) 149 # 14/07/08 - Siggi - adjustments for lcsgih 149 150 150 151 # VARIABLENVEREINBARUNGEN + DEFAULTWERTE … … 1825 1826 lopts="$lopts $netcdf_lib $dvrp_lib" 1826 1827 ROPTS="$ropts" 1827 if [[ ( $(echo $host | cut -c1-3) = nec || $(echo $host | cut -c1-3) = ibm || $host = lc tit || $host = lcfimm || $host = lcxt4 ) && -n $numprocs ]]1828 if [[ ( $(echo $host | cut -c1-3) = nec || $(echo $host | cut -c1-3) = ibm || $host = lcsgih || $host = lcsgib || $host = lctit || $host = lcfimm || $host = lcxt4 ) && -n $numprocs ]] 1828 1829 then 1829 1830 XOPT="-X $numprocs" … … 2754 2755 # COPY HOSTFILE FROM SOURCE DIRECTORY OR CREATE IT, IF IT 2755 2756 # DOES NOT EXIST 2756 if [[ -f $hostfile ]] 2757 then 2758 cp $hostfile hostfile 2759 else 2760 (( ii = 1 )) 2761 while (( ii <= $numprocs / $threads_per_task )) 2762 do 2763 echo $localhost_realname >> hostfile 2764 (( ii = ii + 1 )) 2765 done 2766 fi 2757 if [[ $host != lcsgih && $host != lcsgib ]] 2758 then 2759 if [[ -f $hostfile ]] 2760 then 2761 cp $hostfile hostfile 2762 else 2763 (( ii = 1 )) 2764 while (( ii <= $numprocs / $threads_per_task )) 2765 do 2766 echo $localhost_realname >> hostfile 2767 (( ii = ii + 1 )) 2768 done 2769 fi 2770 eval zeile=\"`head -n $ii hostfile`\" 2771 printf "\n *** running on: $zeile" 2772 fi 2773 2767 2774 (( ii = $numprocs / $threads_per_task )) 2768 eval zeile=\"`head -n $ii hostfile`\"2769 printf "\n *** running on: $zeile"2770 2775 export OMP_NUM_THREADS=$threads_per_task 2776 echo "OMP_NUM_THREADS=$OMP_NUM_THREADS" 2771 2777 if [[ $threads_per_task != 1 ]] 2772 2778 then … … 2776 2782 then 2777 2783 printf "\n\n" 2778 if [[ $host = lcxt4 ]] 2784 if [[ $host = lcsgih || $host = lcsgib ]] 2785 then 2786 echo " --- Content of \$PBS_NODEFILE:" 2787 cat $PBS_NODEFILE 2788 echo " --- end content" 2789 mpirun -machinefile $PBS_NODEFILE -np $ii a.out $ROPTS 2790 elif [[ $host = lcxt4 ]] 2779 2791 then 2780 2792 aprun -n $ii -N $tasks_per_node a.out $ROPTS
Note: See TracChangeset
for help on using the changeset viewer.