Skip to content

Commit 592b0ce

Browse files
committed
CI: Reenable an NVHPC Test
Update from CentOS to Ubuntu and to a recent version of NVHPC (former: PGI).
1 parent f3e0602 commit 592b0ce

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -401,33 +401,38 @@ jobs:
401401
# run: cmake --build build --target test_cmake_build
402402

403403

404-
# Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
405-
centos-nvhpc7:
406-
if: ${{ false }} # JOB DISABLED (NEEDS WORK): https://github.com/pybind/pybind11/issues/4690
407-
runs-on: ubuntu-latest
408-
name: "🐍 3 • CentOS7 / PGI 22.9 • x64"
409-
container: centos:7
404+
# Testing on Ubuntu + NVHPC (previous PGI) compilers, which seems to require more workarounds
405+
ubuntu-nvhpc7:
406+
runs-on: ubuntu-20.04
407+
name: "🐍 3 • NVHPC 23.5 • x64"
410408

409+
env:
410+
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
411+
DEBIAN_FRONTEND: 'noninteractive'
411412
steps:
412413
- uses: actions/checkout@v3
413414

414-
- name: Add Python 3 and a few requirements
415-
run: yum update -y && yum install -y epel-release && yum install -y git python3-devel make environment-modules cmake3 yum-utils
415+
- name: Add NVHPC Repo
416+
run: |
417+
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | \
418+
sudo tee /etc/apt/sources.list.d/nvhpc.list
416419
417-
- name: Install NVidia HPC SDK
418-
run: yum-config-manager --add-repo https://developer.download.nvidia.com/hpc-sdk/rhel/nvhpc.repo && yum -y install nvhpc-22.9
420+
- name: Install 🐍 3 & NVHPC
421+
run: |
422+
sudo apt-get update -y && \
423+
sudo apt-get install -y cmake environment-modules git python3-dev python3-pytest python3-numpy && \
424+
sudo apt-get install -y --no-install-recommends nvhpc-23-5 && \
425+
rm -rf /var/lib/apt/lists/*
419426
420-
# On CentOS 7, we have to filter a few tests (compiler internal error)
421-
# and allow deeper template recursion (not needed on CentOS 8 with a newer
422-
# standard library). On some systems, you many need further workarounds:
427+
# On some systems, you many need further workarounds:
423428
# https://github.com/pybind/pybind11/pull/2475
424429
- name: Configure
425430
shell: bash
426431
run: |
427432
source /etc/profile.d/modules.sh
428-
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/22.9
429-
cmake3 -S . -B build -DDOWNLOAD_CATCH=ON \
430-
-DCMAKE_CXX_STANDARD=11 \
433+
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/23.5
434+
cmake -S . -B build -DDOWNLOAD_CATCH=ON \
435+
-DCMAKE_CXX_STANDARD=17 \
431436
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
432437
-DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
433438
-DPYBIND11_TEST_FILTER="test_smart_ptr.cpp"

0 commit comments

Comments
 (0)