Changeset 4809 for palm


Ignore:
Timestamp:
Dec 3, 2020 4:37:20 PM (4 years ago)
Author:
gronemeier
Message:

Abort palmbuild if the execution of the module commands raise an error; update module command for HLRN Lise setup

Location:
palm/trunk/SCRIPTS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/.palm.config.atosb

    r4570 r4809  
    2626%compiler_options    -fpe0 -O3 -fp-model source -ftz -xCORE-AVX512 -no-prec-div -no-prec-sqrt -ip -convert little_endian -I /sw/dataformats/netcdf/intel.18/4.7.3/skl/include/ -I /sw/numerics/fftw3/impi/intel/3.3.8/skl/include/
    2727%linker_options      -Wl,-rpath=\\$LD_RUN_PATH \\`nf-config --flibs\\` -L /sw/numerics/fftw3/impi/intel/3.3.8/skl/lib -lfftw3
    28 %module_commands     module use /sw/modules/HLRN; module purge; module load HLRNenv sw.skl slurm intel/18.0.6 impi/2018.5 netcdf-parallel/impi/intel fftw3/impi/intel
     28%module_commands     module load intel/18.0.6 impi/2018.5 netcdf-parallel/impi/intel fftw3/impi/intel
    2929%execute_command     srun --propagate=STACK --kill-on-bad-exit -n {{mpi_tasks}} -N {{nodes}} --ntasks-per-node={{tasks_per_node}}  palm
    3030%execute_command_for_combine   srun --propagate=STACK -n 1 --ntasks-per-node=1  combine_plot_fields.x
  • palm/trunk/SCRIPTS/.palm.config.atosb_debug

    r4570 r4809  
    2626%compiler_options    -fpe0 -check -check nooutput_conversion -check noarg_temp_created -traceback -g -O0 -align all -ftz -xCORE-AVX512 -no-prec-div -no-prec-sqrt -ip -convert little_endian -I /sw/dataformats/netcdf/intel.18/4.7.3/skl/include/ -I /sw/numerics/fftw3/impi/intel/3.3.8/skl/include/
    2727%linker_options      -Wl,-rpath=\\$LD_RUN_PATH \\`nf-config --flibs\\` -L /sw/numerics/fftw3/impi/intel/3.3.8/skl/lib -lfftw3
    28 %module_commands     module use /sw/modules/HLRN; module purge; module load HLRNenv sw.skl slurm intel/18.0.6 impi/2018.5 netcdf-parallel/impi/intel fftw3/impi/intel
     28%module_commands     module load intel/18.0.6 impi/2018.5 netcdf-parallel/impi/intel fftw3/impi/intel
    2929%execute_command     srun --propagate=STACK --kill-on-bad-exit -n {{mpi_tasks}} -N {{nodes}} --ntasks-per-node={{tasks_per_node}}  palm
    3030%execute_command_for_combine   srun --propagate=STACK -n 1 --ntasks-per-node=1  combine_plot_fields.x
  • palm/trunk/SCRIPTS/palmbuild

    r4556 r4809  
    2222# Current revisions:
    2323# ------------------
    24 # 
    25 # 
     24#
     25#
    2626# Former revisions:
    2727# -----------------
    2828# $Id$
     29# Abort if the execution of the module commands raise an error
     30#
     31# 4556 2020-06-08 06:29:28Z raasch
    2932# bugfix for determining the ssh-key givn in the configuration file
    30 # 
     33#
    3134# 4481 2020-03-31 18:55:54Z maronga
    3235# Abort if SOURCES_FOR_RUN catalog cannot be created
    33 # 
     36#
    3437# 4082 2019-07-10 14:42:00Z raasch
    3538# bugfix for executing module commands and for interpreting linker options
    3639# on local machines
    37 # 
     40#
    3841# 3756 2019-02-20 11:24:32Z suehring
    39 # Disable compilation of postprocessing tool for surface output, until 
    40 # crashes with unexpected segmentation faults with intel compiler are solved. 
    41 # 
     42# Disable compilation of postprocessing tool for surface output, until
     43# crashes with unexpected segmentation faults with intel compiler are solved.
     44#
    4245# 3725 2019-02-07 10:11:02Z raasch
    4346# ssh-calls for compilations on remote systems modified to avoid output
    4447# of login messages on specific systems changed again (reverted as before r3549)
    45 # 
     48#
    4649# 3549 2018-11-21 15:44:44Z raasch
    4750# ssh-calls for compilations on remote systems modified to avoid output
    4851# of login messages on specific systems
    49 # 
     52#
    5053# 3534 2018-11-19 15:35:16Z raasch
    5154# build of inifor added,
    5255# ssh-calls rearranged to avoid output of system/user-profile messages
    53 # 
     56#
    5457# 3523 2018-11-13 16:09:31Z suehring
    5558# Enable compilation of post-processing tool for surface output - interface
    5659# for posix conform sytemcalls is implemented.
    57 # 
     60#
    5861# 3499 2018-11-07 10:55:15Z suehring
    59 # Temporarily avoid compilation of post-processing tool for surface output 
     62# Temporarily avoid compilation of post-processing tool for surface output
    6063# until a workaround for compiler-specific intrinsic functions is found.
    61 # 
     64#
    6265# 3494 2018-11-06 14:51:27Z suehring
    6366# Add tool for surface-output post-processing
    64 # 
     67#
    6568# 3455 2018-10-30 14:12:31Z raasch
    6669# options -h and -d renamed -c and -r, respectively
    67 # 
     70#
    6871# 3312 2018-10-06 14:15:46Z knoop
    6972# "host identifier" in header output renamed "config. identifier",
     
    7275# header output of PALM code revision,
    7376# options -m, -s, and -S removed
    74 # 
     77#
    7578# 3210 2018-08-28 07:31:13Z sward
    7679# Bugfix: agent_preprocessing stays in MAKE_DEPOSITORY after compilation
    77 # 
     80#
    7881# 3208 2018-08-27 13:10:50Z sward
    7982# Added building of agent_preprocessing
    80 # 
     83#
    8184# 3033 2018-05-23 15:26:19Z raasch
    8285# "fname" renamed to "jobname"
    83 # 
     86#
    8487# 2718 2018-01-02 08:49:38Z maronga
    8588# Corrected "Former revisions" section
    86 # 
     89#
    8790# 2696 2017-12-14 17:12:51Z kanani
    8891# Change in file header (GPL part)
     
    9194# informative messages switched of almost completely in silent mode
    9295# two header blocks merged into one
    93 # 
     96#
    9497# 2506 2017-09-29 08:30:37Z raasch
    9598# option -V added to check for an existing SOURCES_FOR_RUN_... folder
     
    97100# SOURCES_FOR_RUN_... folder is deleted in case of compilation errors
    98101# host_identifier renamed host_configuration
    99 # 
     102#
    100103# 2500 2017-09-25 11:10:03Z raasch
    101104# bugfix for r2492
    102 # 
     105#
    103106# 2492 2017-09-21 14:18:48Z raasch
    104107# ask for compilation, if SOURCES_FOR_RUN_... exists
    105 # 
     108#
    106109# 2487 2017-09-21 11:30:10Z raasch
    107110# bugfix: abort in case of compiling/linking errors in silent mode
    108 # 
     111#
    109112# 2422 2017-09-08 08:25:41Z raasch
    110113# initial revision
    111 # 
     114#
    112115#------------------------------------------------------------------------------#
    113116# palmbuild - script for compiling the PALM code and its utility programs
     
    191194    printf "\n           $config_file"
    192195    printf "\n      does not exist"
    193     locat=configuration; exit 
     196    locat=configuration; exit
    194197 fi
    195198
     
    258261 done < $config_file
    259262
    260  
     263
    261264    # CHECK, IF THE BASE DIRECTORY PATH HAS BEEN GIVEN
    262265 if [[ "$base_directory" = "" ]]
     
    296299    printf "\n           $makefile"
    297300    printf "\n      does not exist"
    298     locat=makefile; exit 
     301    locat=makefile; exit
    299302 fi
    300303
     
    334337 if [[ "$remote_ip" != "" ]]
    335338 then
    336  
     339
    337340    if [[ "$remote_username" = "" ]]
    338341    then
     
    409412    done
    410413    printf "|                                                                        | \n"
    411    
     414
    412415    if [[ "$remote_ip" != "" ]]
    413416    then
     
    430433       line=$(echo "$line" | cut -c51-)
    431434    done
    432    
     435
    433436    if [[ "$remote_ip" != "" ]]
    434437    then
     
    439442       printf "| %-20s%-50s | \n" "address:" "$local_ip"
    440443    fi
    441    
     444
    442445    printf "| %-20s%-50s | \n" "compiler:" "$compiler_name"
    443446    printf "| %-20s%-50s | \n" "serial compiler:" "$compiler_name_ser"
    444    
     447
    445448    if [[ "$make_options" != "" ]]
    446449    then
     
    777780       if [[ "$module_commands" != "" ]]
    778781       then
    779           eval $module_commands
     782          eval $module_commands || {
     783            printf "\n  +++ Module command(s) failed."
     784            printf "\n      Check the above output of the command(s)."
     785            locat=module_command_error; exit
     786          }
    780787       fi
    781788
     
    961968          fi
    962969          [[ "$login_init_cmd" != "" ]]   &&  eval $login_init_cmd
    963           [[ "$module_commands" != "" ]]  &&  eval $module_commands
     970          [[ "$module_commands" != "" ]]  &&  eval $module_commands || {
     971            printf "\n  +++ Module command(s) failed."
     972            printf "\n      Check the above output of the command(s)."
     973            locat=module_command_error; exit
     974          }
    964975
    965976             # next is required to evaluate environment variables or commands used in the linker option
Note: See TracChangeset for help on using the changeset viewer.