Changeset 3682 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Jan 18, 2019 5:01:54 PM (6 years ago)
Author:
knoop
Message:

Extended palmtest to use custom MPI execution commands

Location:
palm/trunk/SCRIPTS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/.palm.config.default.in

    r3455 r3682  
    3737%compiler_options    @PALM_COMPILER_OPTIONS@
    3838%linker_options      @PALM_LINKER_OPTIONS@
    39 %execute_command     mpirun -n {{mpi_tasks}} ./palm
     39%execute_command     @PALM_EXECUTE_COMMAND@ ./palm
    4040#%memory              2300
    4141#%module_commands     module switch craype-ivybridge craype-haswell; module load fftw cray-hdf5-parallel cray-netcdf-hdf5parallel
  • palm/trunk/SCRIPTS/palmrun

    r3665 r3682  
    631631    locat=config_file; exit
    632632 fi
    633  if [[ "$linker_options" = "" ]]
    634  then
    635     printf "\n  +++ no linker options found in $config_file"
    636     printf "\n      Please add line \"linker_options ...\" to that file."
    637     locat=config_file; exit
    638  fi
    639633 if [[ "$execute_command" = "" ]]
    640634 then
  • palm/trunk/SCRIPTS/palmtest

    r3561 r3682  
    788788
    789789            environment = available_environments[c_id]
     790
     791            if 'mpi_execution_command' in environment:
     792                template = template.replace('@PALM_EXECUTE_COMMAND@', environment['mpi_execution_command'])
     793            else:
     794                template = template.replace('@PALM_EXECUTE_COMMAND@', 'mpirun -n {{mpi_tasks}}')
     795
    790796            if 'executable' not in environment:
    791797                return True, colored('[palmtest.yml environment \"' + c_id + '\" has no \"executable\"]', 'red')
Note: See TracChangeset for help on using the changeset viewer.