Skip to content

Commit

Permalink
Merge pull request #5 from dareg/mf_toolchain
Browse files Browse the repository at this point in the history
Add mf arch config files
  • Loading branch information
awnawab authored Nov 8, 2023
2 parents ced2a08 + 6e173fa commit ee9d273
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/mf/belenos_taranis/nvhpc/23.9/env.sh
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions arch/mf/belenos_taranis/nvhpc/23.9/toolchain.cmake
Original file line number Diff line number Diff line change
@@ -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 "" )

0 comments on commit ee9d273

Please sign in to comment.