Skip to content

modified the code to pass tests with ifx and nvfortran. Strangely, co… #8

modified the code to pass tests with ifx and nvfortran. Strangely, co…

modified the code to pass tests with ifx and nvfortran. Strangely, co… #8

Workflow file for this run

name: Run nvfortran tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Download and install NVIDIA HPC SDK
run: |
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y
sudo apt-get install -y nvhpc-24-11
- name: Verify installation
run: |
cmake --version
export PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.11/compilers/bin/:$PATH
nvfortran --version
mkdir build
cd build
FC=nvfortran cmake ..
make
ctest