Changeset 696 for palm/trunk/SCRIPTS
- Timestamp:
- Mar 18, 2011 7:03:49 AM (14 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r693 r696 219 219 # 02/02/10 - Siggi - further adjustments on Tsubame and concerning openMP 220 220 # usage 221 # 09/0 2/10 - Siggi - adjustments for ibmkisti, mpt bugfix for netCDF4221 # 09/03/10 - Siggi - adjustments for ibmkisti, mpt bugfix for netCDF4 222 222 # usage, totalview usage extended 223 # 17/03/11 - Siggi - adjustments for openmp usage on ibmkisti 223 224 224 225 … … 3131 3132 export LANG=en_US 3132 3133 export MP_SHARED_MEMORY=yes 3133 export MP_SINGLE_THREAD=yes 3134 export MEMORY_AFFINITY=MCM 3134 if [[ $threads_per_task = 1 ]] 3135 then 3136 export MP_SINGLE_THREAD=yes 3137 export MEMORY_AFFINITY=MCM 3138 else 3139 export OMP_NUM_THREADS=$threads_per_task 3140 fi 3135 3141 fi 3136 3142 … … 3291 3297 (( ii = $numprocs / $threads_per_task )) 3292 3298 export OMP_NUM_THREADS=$threads_per_task 3293 # echo "OMP_NUM_THREADS=$OMP_NUM_THREADS"3299 # echo "*** OMP_NUM_THREADS=$OMP_NUM_THREADS" 3294 3300 if [[ $threads_per_task != 1 ]] 3295 3301 then -
palm/trunk/SCRIPTS/subjob
r693 r696 128 128 # 02/02/11 - Siggi - further asjustments for Tsubame concerning openMP 129 129 # 06/03/11 - Siggi - adjustments for ibmkisti 130 # 17/03/11 - Siggi - adjustments for openmp usage on ibmkisti 130 131 131 132 … … 152 153 153 154 typeset -i cputime=0 memory=0 Memory=0 minuten resttime sekunden stunden 154 typeset -i inumprocs nodes=0 processes_per_node=0 tasks_per_node=0 threads_per_task=1155 typeset -i inumprocs mpi_tasks=0 nodes=0 processes_per_node=0 tasks_per_node=0 threads_per_task=1 155 156 typeset -L20 spalte1 156 157 typeset -R40 spalte2 … … 548 549 (( processes_per_node = tasks_per_node * threads_per_task )) 549 550 551 # Calculate number of MPI tasks 552 (( mpi_tasks = numprocs / threads_per_task )) 553 550 554 551 555 # HEADER-AUSGABE … … 638 642 network_to_use="# @ network.MPI = sn_all,shared,US" 639 643 wall_clock_limit="# @ wall_clock_limit = $timestring" 640 rset="# @ rset = RSET_MCM_AFFINITY" 641 mcm_affinity_options="# @ mcm_affinity_options = mcm_mem_pref mcm_sni_none mcm_distribute" 644 if [[ $threads_per_task = 1 ]] 645 then 646 rset="# @ rset = RSET_MCM_AFFINITY" 647 mcm_affinity_options="# @ mcm_affinity_options = mcm_mem_pref mcm_sni_none mcm_distribute" 648 fi 642 649 environment="" 643 650 use_shell="" … … 701 708 702 709 cat >> $job_to_send << %%END%% 703 # @ total_tasks = $ numprocs710 # @ total_tasks = $mpi_tasks 704 711 # @ blocking = unlimited 705 712 # @ queue … … 733 740 fi 734 741 742 fi 743 744 # workaround because of silly job filter on ibmkisti 745 if [[ $remote_host = ibmkisti && $threads_per_task != 1 ]] 746 then 747 echo "export OMP_NUM_THREADS=$threads_per_task" >> $job_to_send 735 748 fi 736 749
Note: See TracChangeset
for help on using the changeset viewer.