-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ecmwf-ifs/naml-phys-gpu-loki-conf-update
Loki: Update loki config files to new format
- Loading branch information
Showing
7 changed files
with
132 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
|
||
KEY=GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB | ||
version=2023.2.0 | ||
KEY=GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
wget https://apt.repos.intel.com/intel-gpg-keys/$KEY | ||
sudo apt-key add $KEY | ||
rm $KEY | ||
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | ||
sudo apt-get update | ||
sudo apt-get install \ | ||
intel-oneapi-compiler-fortran \ | ||
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic \ | ||
intel-oneapi-mpi \ | ||
intel-oneapi-mpi-devel \ | ||
intel-oneapi-mkl | ||
intel-oneapi-compiler-fortran-$version \ | ||
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-$version \ | ||
intel-oneapi-mpi-devel-2021.10.0 \ | ||
intel-oneapi-mkl-$version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
! (C) Copyright 1989- ECMWF. | ||
! | ||
! 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. | ||
! | ||
|
||
MODULE WAM_INIT_GPU_MOD | ||
CONTAINS | ||
SUBROUTINE WAM_INIT_GPU(IRANK) | ||
#ifdef _OPENACC | ||
USE OPENACC | ||
#endif | ||
USE PARKIND_WAVE, ONLY : JWIM | ||
IMPLICIT NONE | ||
|
||
INTEGER(KIND=JWIM), INTENT(IN) :: IRANK | ||
INTEGER :: DEVTYPE, DEVNUM, DEV | ||
|
||
|
||
#ifdef _OPENACC | ||
DEVTYPE = ACC_GET_DEVICE_TYPE() | ||
DEVNUM = ACC_GET_NUM_DEVICES(DEVTYPE) | ||
DEV = MOD(IRANK-1, DEVNUM) | ||
CALL ACC_SET_DEVICE_NUM(DEV, DEVTYPE) | ||
#endif | ||
END SUBROUTINE WAM_INIT_GPU | ||
END MODULE WAM_INIT_GPU_MOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters