-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -72,6 +72,47 @@ jobs: | |
cmake --build build -j 2 | ||
# Build libamrex and all tests with NVHPC (recent supported) | ||
tests-nvhpc21-9-nvcc: | ||
name: [email protected] NVCC/NVC++ C++17 Release [tests] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Dependencies | ||
run: .github/workflows/dependencies/dependencies_nvhpc21-9.sh | ||
- name: Build & Install | ||
run: | | ||
source /etc/profile.d/modules.sh | ||
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.9 | ||
which nvcc || echo "nvcc not in PATH!" | ||
which nvc++ || echo "nvc++ not in PATH!" | ||
which nvc || echo "nvc not in PATH!" | ||
which nvfortran || echo "nvfortran not in PATH!" | ||
nvcc --version | ||
nvc++ --version | ||
nvc --version | ||
nvfortran --version | ||
cmake --version | ||
cmake -S . -B build \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DAMReX_ENABLE_TESTS=ON \ | ||
-DAMReX_PARTICLES=ON \ | ||
-DAMReX_FORTRAN=OFF \ | ||
-DAMReX_GPU_BACKEND=CUDA \ | ||
-DCMAKE_C_COMPILER=$(which nvc) \ | ||
-DCMAKE_CXX_COMPILER=$(which nvc++) \ | ||
-DCMAKE_CUDA_HOST_COMPILER=$(which nvc++) \ | ||
-DCMAKE_Fortran_COMPILER=$(which nvfortran) \ | ||
-DCMAKE_CUDA_STANDARD=17 \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DAMReX_CUDA_ARCH=8.0 \ | ||
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \ | ||
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON | ||
cmake --build build -j 2 | ||
# Build 3D libamrex cuda build with configure | ||
configure-3d-cuda: | ||
name: [email protected] [email protected] [configure 3D] | ||
|
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,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2021 Axel Huebl | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
|
||
set -eu -o pipefail | ||
|
||
sudo apt-get -qqq update | ||
sudo apt-get install -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
cmake \ | ||
environment-modules \ | ||
gnupg \ | ||
pkg-config \ | ||
wget | ||
|
||
wget -q https://developer.download.nvidia.com/hpc-sdk/21.9/nvhpc-21-9_21.9_amd64.deb \ | ||
https://developer.download.nvidia.com/hpc-sdk/21.9/nvhpc-2021_21.9_amd64.deb | ||
sudo apt-get update | ||
sudo apt-get install -y ./nvhpc-21-9_21.9_amd64.deb ./nvhpc-2021_21.9_amd64.deb | ||
rm -rf ./nvhpc-21-9_21.9_amd64.deb ./nvhpc-2021_21.9_amd64.deb | ||
|
||
# things should reside in /opt/nvidia/hpc_sdk now | ||
|
||
# activation via: | ||
# source /etc/profile.d/modules.sh | ||
# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.9 |
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