From 6e173fae660ffb09df7a41fb8cd9d19874ec64e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Judica=C3=ABl=20Grasset?= Date: Wed, 8 Nov 2023 15:52:24 +0000 Subject: [PATCH] add mf arch config files --- arch/mf/belenos_taranis/nvhpc/23.9/env.sh | 18 ++++++++++++++++++ .../belenos_taranis/nvhpc/23.9/toolchain.cmake | 14 ++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 arch/mf/belenos_taranis/nvhpc/23.9/env.sh create mode 100644 arch/mf/belenos_taranis/nvhpc/23.9/toolchain.cmake diff --git a/arch/mf/belenos_taranis/nvhpc/23.9/env.sh b/arch/mf/belenos_taranis/nvhpc/23.9/env.sh new file mode 100644 index 0000000..05bd9dc --- /dev/null +++ b/arch/mf/belenos_taranis/nvhpc/23.9/env.sh @@ -0,0 +1,18 @@ +# (C) Copyright 2022- ECMWF. +# (C) Copyright 2022- Meteo-France. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + +# Source me to get the correct configure/build/run environment + +module purge +module load cmake/3.24.1 +module load nvhpc/23.9 +module load python/3.7.6 + +DIR_PATH=$(realpath $(dirname $BASH_SOURCE)) +export CMAKE_TOOLCHAIN_FILE=$DIR_PATH/toolchain.cmake diff --git a/arch/mf/belenos_taranis/nvhpc/23.9/toolchain.cmake b/arch/mf/belenos_taranis/nvhpc/23.9/toolchain.cmake new file mode 100644 index 0000000..50117df --- /dev/null +++ b/arch/mf/belenos_taranis/nvhpc/23.9/toolchain.cmake @@ -0,0 +1,14 @@ +# (C) Copyright 2022- ECMWF. +# (C) Copyright 2022- Meteo-France. +# +# This software is licensed under the terms of the Apache Licence Version 2.0 +# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. +# In applying this licence, ECMWF does not waive the privileges and immunities +# granted to it by virtue of its status as an intergovernmental organisation +# nor does it submit to any jurisdiction. + +#################################################################### +# OpenAcc FLAGS +#################################################################### + +set( OpenACC_Fortran_FLAGS "-acc=gpu -gpu=cc70 -Minfo=accel" CACHE STRING "" )