From 5506fab18639bf72979c49d3bd120299e93ae079 Mon Sep 17 00:00:00 2001 From: Stefan Zellmann Date: Mon, 7 Oct 2024 22:10:46 +0200 Subject: [PATCH] try installiing directly --- .github/workflows/anari-visionaray-ci.yml | 30 +++++++++++++++++------ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/anari-visionaray-ci.yml b/.github/workflows/anari-visionaray-ci.yml index 38352837..6aa904a3 100644 --- a/.github/workflows/anari-visionaray-ci.yml +++ b/.github/workflows/anari-visionaray-ci.yml @@ -18,23 +18,37 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Add NVIDIA package repositories + if: >- + matrix.os == 'ubuntu-24.04' && + matrix.cuda == 'ON' + run: | + wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin + sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 + sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub + sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /" + sudo apt update + - name: Install CUDA if: >- matrix.os == 'ubuntu-24.04' && matrix.cuda == 'ON' - uses: Jimver/cuda-toolkit@v0.2.17 - id: cuda-toolkit - with: - cuda: '12.5.0' + run: sudo apt-get install -y cuda-toolkit-12-6 - name: Setup CUDA if: >- matrix.os == 'ubuntu-24.04' && matrix.cuda == 'ON' run: | - echo "CUDA_PATH=/usr/local/cuda-12.5" >> $GITHUB_ENV - echo "/usr/local/cuda-12.5/bin" >> $GITHUB_PATH - nvcc -V + echo "CUDA_HOME=/usr/local/cuda-12.6" >> $GITHUB_ENV + echo "$CUDA_HOME/bin" >> $GITHUB_PATH + echo "LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV + + - name: Verify CUDA installation + if: >- + matrix.os == 'ubuntu-24.04' && + matrix.cuda == 'ON' + run: /usr/local/cuda-12.6/bin/nvcc --version - name: Install Packages if: ${{ matrix.os == 'ubuntu-24.04' }} @@ -78,7 +92,7 @@ jobs: -DVSNRAY_ENABLE_VIEWER:BOOL=OFF \ -DVSNRAY_ENABLE_COMMON:BOOL=OFF \ -DVSNRAY_ENABLE_CUDA:BOOL=${{ matrix.cuda }} \ - -DVSNRAY_ENABLE_TBB:BOOL=OFF \ + -DVSNRAY_ENABLE_TBB:BOOL=OFF cmake --build visionaray/build --target install - name: Configure CMake