Skip to content

Commit

Permalink
Using latest Ubuntu runner and turning off testing of the GPU configu…
Browse files Browse the repository at this point in the history
…ration since we don't have them to test with. Updating NVIDIA HPC SDK release. Bumping Python versions
  • Loading branch information
scrasmussen committed Feb 20, 2025
1 parent 2ab4491 commit 2ffffdc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_build_scm_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: CI test to build the CCPP-SCM on ubuntu v22.04
name: build the CCPP-SCM on latest Ubuntu runner

on: [pull_request,workflow_dispatch]

jobs:
build_scm:

# The type of runner that the job will run on
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
fortran-compiler: [gfortran-10, gfortran-11, gfortran-12]
build-type: [Release, Debug]
py-version: [3.7.13, 3.9.12]
py-version: [3.9.21, 3.12.9]

# Environmental variables
env:
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/ci_build_scm_ubuntu_nvidia.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build the CCPP-SCM on ubuntu v22.04
name: build the CCPP-SCM on latest Ubuntu runner

on: [pull_request,workflow_dispatch]

Expand All @@ -11,8 +11,8 @@ jobs:
fail-fast: false
matrix:
fortran-compiler: [nvfortran]
build-type: [Release]#, Debug]
enable-gpu-acc: [False, True]
build-type: [Release] #, Debug]
enable-gpu-acc: [False] #, True] # GPUs aren't available for testing
py-version: [3.10.16]

# Environmental variables
Expand Down Expand Up @@ -90,30 +90,31 @@ jobs:
env:
NVCOMPILERS: /home/runner/hpc_sdk
NVARCH: Linux_x86_64
NVYEAR: 2025
NVVERSION: "25.1"
CUDA_VERSION: 12.6
NVVERSION_PACKED: ${{ replace(env.NVVERSION, '.', '') }}
NVHPC_SILENT: true
NVHPC_INSTALL_DIR: /home/runner/hpc_sdk
NVHPC_INSTALL_TYPE: network
NVHPC_INSTALL_LOCAL_DIR: /home/runner/hpc_sdk
run: |
mkdir /home/runner/hpc_sdk && cd /home/runner/hpc_sdk
wget -q https://developer.download.nvidia.com/hpc-sdk/24.1/nvhpc_2024_241_Linux_x86_64_cuda_12.3.tar.gz
tar xpzf nvhpc_2024_241_Linux_x86_64_cuda_12.3.tar.gz
nvhpc_2024_241_Linux_x86_64_cuda_12.3/install
export PATH=${PATH}:${NVCOMPILERS}/${NVARCH}/24.1/compilers/bin
export MANPATH=${MANPATH}:${NVCOMPILERS}/${NVARCH}/24.1/compilers/man
wget -q https://developer.download.nvidia.com/hpc-sdk/${NVVERSION}/nvhpc_${NVYEAR}_${NVVERSION_PACKED}_Linux_x86_64_cuda_${CUDA_VERSION}.tar.gz
tar xpzf nvhpc_${NVYEAR}_${NVVERSION_PACKED}_Linux_x86_64_cuda_${CUDA_VERSION}.tar.gz
nvhpc_${NVYEAR}_${NVVERSION_PACKED}_Linux_x86_64_cuda_${CUDA_VERSION}.tar.gz/install
export PATH=${PATH}:${NVCOMPILERS}/${NVARCH}/${NVVERSION}/compilers/bin
export MANPATH=${MANPATH}:${NVCOMPILERS}/${NVARCH}/${NVVERSION}/compilers/man
echo "The nvfortran installed is:"
nvfortran --version
echo "The path to nvfortran is:"
command -v nvfortran
echo "Removing tarball"
rm nvhpc_2024_241_Linux_x86_64_cuda_12.3.tar.gz
- name: Set environment for Nvidia compiler.
run: |
echo "CC=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/nvc" >> $GITHUB_ENV
echo "FC=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/nvfortran" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/nvc" >> $GITHUB_ENV
echo "CMAKE_Fortran_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/nvfortran" >> $GITHUB_ENV
rm nvhpc_${NVYEAR}_${NVVERSION_PACKED}_Linux_x86_64_cuda_${CUDA_VERSION}.tar.gz
echo "CC=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvc" >> $GITHUB_ENV
echo "FC=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvfortran" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvc" >> $GITHUB_ENV
echo "CMAKE_Fortran_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/${NVVERSION}/compilers/bin/nvfortran" >> $GITHUB_ENV
#######################################################################################
# Install FORTRAN dependencies
Expand Down

0 comments on commit 2ffffdc

Please sign in to comment.