Skip to content

Commit 5299885

Browse files
committed
github: attempt to fix CI GPU builds
1 parent 64ba33e commit 5299885

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/ci-gpu.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,20 @@ jobs:
2424
matrix:
2525
optix: [ optix-7.7.0, optix-8.1.0, optix-9.0.0 ]
2626
cuda: [ '12.6.3', '12.8.0', '12.9.1', '13.0.1', '13.1.1', '13.2.0' ]
27-
os: [ ubuntu-24.04, windows-latest ]
27+
os: [ ubuntu-22.04, ubuntu-24.04, windows-latest ]
28+
exclude:
29+
- os: ubuntu-24.04
30+
cuda: '12.6.3'
31+
- os: ubuntu-24.04
32+
cuda: '12.8.0'
33+
- os: ubuntu-22.04
34+
cuda: '12.9.1'
35+
- os: ubuntu-22.04
36+
cuda: '13.0.1'
37+
- os: ubuntu-22.04
38+
cuda: '13.1.1'
39+
- os: ubuntu-22.04
40+
cuda: '13.2.0'
2841
include:
2942
- os: windows-latest
3043
cuda: '13.2.0'
@@ -74,7 +87,7 @@ jobs:
7487
choco install pkgconfiglite
7588
7689
- name: Install OpenGL
77-
if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-24.04' }}
90+
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
7891
run: |
7992
sudo apt-get update
8093
sudo apt-get install -y --no-install-recommends libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev libgl1-mesa-dev libwayland-bin libwayland-dev wayland-protocols libxkbcommon-dev libxkbcommon-x11-0
@@ -83,10 +96,11 @@ jobs:
8396
if: ${{ matrix.os == 'windows-latest' }}
8497
run: |
8598
cd build
86-
cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT"/scripts/buildsystems/vcpkg.cmake -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True -DPBRT_OPTIX_PATH=../optix/${{ matrix.optix }} -DPBRT_GPU_SHADER_MODEL=sm_80
99+
$env:CUDACXX = "$env:CUDA_PATH\bin\nvcc.exe"
100+
cmake .. -T "cuda=$env:CUDA_PATH" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT"/scripts/buildsystems/vcpkg.cmake -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True -DPBRT_OPTIX_PATH=../optix/${{ matrix.optix }} -DPBRT_GPU_SHADER_MODEL=sm_80
87101
88102
- name: Configure (Linux)
89-
if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-24.04' }}
103+
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
90104
run: |
91105
cd build
92106
cmake .. -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True -DPBRT_OPTIX_PATH=../optix/${{ matrix.optix }} -DPBRT_GPU_SHADER_MODEL=sm_80
@@ -102,4 +116,3 @@ jobs:
102116
name: pbrt.exe
103117
path: build/Release/pbrt.exe
104118

105-

0 commit comments

Comments
 (0)