Changeset 1171 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
May 30, 2013 11:27:45 AM (11 years ago)
Author:
raasch
Message:

New:
---

use_reference-case activated in accelerator version. (buoyancy, diffusion_e)
new option -e which defines the execution command to be used to run PALM,
compiler options for pgi/openacc added (palm_simple_run)
parameter sets for openACC benchmarks added (trunk/EXAMPLES/benchmark_acc)

Changed:


split of prognostic_equations deactivated (time_integration)

Errors:


bugfix: diss array is allocated with full size if accelerator boards are used (init_3d_model)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_simple_run

    r1047 r1171  
    1919# Current revisions:
    2020# -----------------
     21# new option -e which defines the execution command to be used to run PALM
    2122#
    2223# Former revisions:
     
    2627# 1046 2012-11-09 14:38:45Z maronga
    2728# code put under GPL (PALM 3.9)
     29#
     30# 29/08/11 - BjornW - Adapted for lcflow (ForWind cluster in Oldenburg)
     31# 18/03/10 - Siggi  - Some comments changed
     32# 25/01/10 - Siggi  - Generating the first version
    2833
     34
     35#--------------------------------------------------------------------------------#
    2936# palm_simple_run - a simple method for running the palm code without
    3037#                   using the mrun script
    31      # This script runs the palm code in a unique subdirectory (OUTPUT...,
    32      # current time/date and number of processors are part of the subdirectory
    33      # name).
    34      # It requires that palm has been installed with command
    35      # palm_simple_install and that the executable palm has been created
    36      # with make in directory  ...../MAKE_DEPOSITORY_simple
    37 
    38      # Last changes:
    39      # 25/01/10 - Siggi  - Generating the first version
    40      # 18/03/10 - Siggi  - Some comments changed
    41      # 29/08/11 - BjornW - Adapted for lcflow (ForWind cluster in Oldenburg)
     38#
     39# This script runs the palm code in a unique subdirectory (OUTPUT...,
     40# current time/date and number of processors are part of the subdirectory
     41# name).
     42# It requires that palm has been installed with command
     43# palm_simple_install and that the executable palm has been created
     44# with make in directory  ...../MAKE_DEPOSITORY_simple
     45#--------------------------------------------------------------------------------#
    4246
    4347
     
    4549 case=example_cbl
    4650 cpumax=999999
     51 execute_for=unknown
    4752 localhost=unknown
    4853 localhost_realname=$(hostname)
     
    5560
    5661    # Read shellscript options
    57  while  getopts  :c:l:n:p:t:  option
     62 while  getopts  :c:e:l:n:p:t:  option
    5863 do
    5964   case  $option  in
    6065       (c)   case=$OPTARG;;
     66       (e)   execute_for=$OPTARG;;
    6167       (l)   localhost=$OPTARG;;
    6268       (n)   mpi_procs_per_node=$OPTARG;;
     
    6470       (t)   openmp_threads=$OPTARG;;
    6571       (\?)  printf "\n  +++ unknown option $OPTARG \n"
    66              printf "\n      allowed option are -d, -f, -l, -s \n"
     72             printf "\n      allowed option are -c, -e, -l, -n, -p, -t \n"
    6773             exit;;
    6874   esac
     
    122128 cat  >  ENVPAR  <<  %%END%%
    123129 &envpar  run_identifier = '$case', host = '$localhost',
    124           write_binary = false, tasks_per_node = $mpi_procs_per_node,
     130          write_binary = 'false', tasks_per_node = $mpi_procs_per_node,
    125131          maximum_cpu_time_allowed = ${cpumax}.,
    126132          revision = '$global_revision',
     
    151157 echo "*** palm will be run:  MPI tasks: $mpi_procs   OpenMP thread: $OMP_NUM_THREADS"
    152158
    153 # IMUK:
    154  mpiexec  -machinefile hostfile  -n $mpi_procs  ./palm  < runfile_atmos
     159 case $execute_for in
    155160
    156 # SGI-MPT HLRN:
    157 # mpiexec_mpt  -np $mpi_procs  ./palm  < runfile_atmos
     161    (imuk)         mpiexec  -machinefile hostfile  -n $mpi_procs  ./palm  < runfile_atmos;;
     162    (sgi-mpt)      mpiexec_mpt  -np $mpi_procs  ./palm  < runfile_atmos;;
     163    (hpc-flow)     mpiexec  -machinefile $TMPDIR/machines -n $mpi_procs  -env I_MPI_FABRICS shm:ofa ./palm  < runfile_atmos;;
     164    (pgi-openacc)  ./palm;;
     165    (*)      echo "+++ -e option to define execution command is missing";;
    158166
    159 # HPC-FLOW (ForWind):
    160 # mpiexec  -machinefile $TMPDIR/machines -n $mpi_procs  -env I_MPI_FABRICS shm:ofa ./palm  < runfile_atmos
    161 
     167 esac
    162168
    163169 echo "*** palm finished"
Note: See TracChangeset for help on using the changeset viewer.