Changeset 223


Ignore:
Timestamp:
Jan 13, 2009 4:31:47 PM (15 years ago)
Author:
raasch
Message:

usage of totalview debugger implemented in mrun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r221 r223  
    166166     # 08/01/09 - Siggi  - mpi module on sgi machines to be used can be set
    167167     #                     with environment variable mpilib
     168     # 13/01/09 - Siggi  - totalview on hice/bice can be used in debug mode
     169     #                     using environment variable totalview
    168170
    169171
     
    28302832             locat=debug
    28312833             exit
     2834          else
     2835             echo "no_coupling"  >  runfile_atmos
    28322836          fi
    28332837          (( ii = $numprocs / $threads_per_task ))
     
    28392843          fi
    28402844          printf "\n\n"
    2841            echo "no_coupling"  >  runfile_atmos
    2842            if [[ $( echo $mpilib | cut -c1-3 ) = mpt ]]
    2843            then
    2844 #              export MPI_LAUNCH_TIMEOUT=360
    2845               mpiexec_mpt -np $ii   ./a.out  $ROPTS
    2846            elif [[ $( echo $mpilib | cut -c1-3 ) = mva ]]
    2847            then
    2848 #              ulimit -s 300000   # A too large stack size causes problems
    2849 #              export MV2_NUM_PORTS=2
    2850 #              export MV2_CPU_MAPPING=0:1:2:3
    2851               mpiexec    ./a.out  $ROPTS
    2852            fi
     2845          if [[ $( echo $mpilib | cut -c1-3 ) = mpt ]]
     2846          then
     2847#             export MPI_LAUNCH_TIMEOUT=360
     2848             if [[ "$totalview" = true ]]
     2849             then
     2850                printf "\n     running totalview debugger"
     2851                mpiexec_mpt -tv -n $ii   ./a.out  $ROPTS  < runfile_atmos
     2852             else
     2853                mpiexec_mpt -np $ii   ./a.out  $ROPTS  < runfile_atmos
     2854             fi
     2855          elif [[ $( echo $mpilib | cut -c1-3 ) = mva ]]
     2856          then
     2857#             ulimit -s 300000   # A too large stack size causes problems
     2858#             export MV2_NUM_PORTS=2
     2859#             export MV2_CPU_MAPPING=0:1:2:3
     2860             mpiexec    ./a.out  $ROPTS  < runfile_atmos
     2861          fi
    28532862       else
    28542863          printf "\n  +++ no debug available on \"$localhost\" "
     
    30093018             if [[ $run_coupled_model = false ]]
    30103019             then
     3020                echo "no_coupling"  >  runfile_atmos
    30113021                printf "\n\n"
    30123022                if [[ $host = lcsgih  ||  $host = lcsgib ]]
     
    30153025                   then
    30163026#                      export MPI_LAUNCH_TIMEOUT=360
    3017                       mpiexec_mpt -np $ii   ./a.out  $ROPTS
     3027                      mpiexec_mpt -np $ii   ./a.out  $ROPTS  < runfile_atmos
    30183028                   elif [[ $( echo $mpilib | cut -c1-3 ) = mva ]]
    30193029                   then
     
    30213031#                      export MV2_NUM_PORTS=2
    30223032#                      export MV2_CPU_MAPPING=0:1:2:3
    3023                       mpiexec    ./a.out  $ROPTS
     3033                      mpiexec    ./a.out  $ROPTS  < runfile_atmos
    30243034                   fi
    30253035                elif [[ $host = lcxt4 ]]
    30263036                then
    3027                    aprun  -n $ii  -N $tasks_per_node  a.out  $ROPTS
     3037                   aprun  -n $ii  -N $tasks_per_node  a.out  $ROPTS  < runfile_atmos
    30283038                else
    3029                    echo "no_coupling"  >  runfile_atmos
    3030                    mpiexec  -machinefile hostfile  -n $ii  a.out < runfile_atmos  $ROPTS
     3039                   mpiexec  -machinefile hostfile  -n $ii  a.out  < runfile_atmos  $ROPTS
    30313040                fi
    30323041             else
Note: See TracChangeset for help on using the changeset viewer.