Skip to content

Commit

Permalink
try installiing directly
Browse files Browse the repository at this point in the history
  • Loading branch information
szellmann committed Oct 7, 2024
1 parent 2816b15 commit 5506fab
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/anari-visionaray-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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' }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5506fab

Please sign in to comment.