Skip to content

Commit

Permalink
CI: update nvhpc to 23.5 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab authored Oct 28, 2024
1 parent d9c4cae commit 5fd0624
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
name:
- linux gnu-10
- linux gnu-14
- linux nvhpc-21.9
- linux nvhpc-23.5
- linux intel-classic
- macos

Expand All @@ -59,15 +59,15 @@ jobs:
python-version: '3.11'
caching: true

- name: linux nvhpc-21.9
- name: linux nvhpc-23.5
os: ubuntu-20.04
compiler: nvhpc-21.9
compiler: nvhpc-23.5
compiler_cc: nvc
compiler_cxx: nvc++
compiler_fc: nvfortran
cmake_options: -DCMAKE_CXX_FLAGS=--diag_suppress177
python-version: '3.8'
caching: false
caching: true

- name : linux intel-classic
os: ubuntu-20.04
Expand Down Expand Up @@ -136,11 +136,30 @@ jobs:
path: ${{ env.DEPS_DIR }}
key: deps-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ env.CACHE_SUFFIX }}

# Free up disk space for nvhpc
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
if: contains( matrix.compiler, 'nvhpc' )
continue-on-error: true
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Install NVHPC compiler
if: contains( matrix.compiler, 'nvhpc' )
shell: bash -eux {0}
run: |
${ECWAM_TOOLS}/install-nvhpc.sh --prefix /opt/nvhpc
${ECWAM_TOOLS}/install-nvhpc.sh --prefix /opt/nvhpc --version 23.5
source /opt/nvhpc/env.sh
echo "${NVHPC_DIR}/compilers/bin" >> $GITHUB_PATH
[ -z ${MPI_HOME+x} ] || echo "MPI_HOME=${MPI_HOME}" >> $GITHUB_ENV
Expand Down

0 comments on commit 5fd0624

Please sign in to comment.