Skip to content

Commit

Permalink
{debug} Install CUDA driver as well
Browse files Browse the repository at this point in the history
  • Loading branch information
luhenry committed Apr 18, 2024
1 parent ca5665c commit 6c1e734
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
# docker container before. It simplifies testing new/different versions
if ! yum list installed cuda-nvcc-$(echo ${CUDA_VERSION} | tr '.' '-') 1>/dev/null; then
source scripts/setup-centos8.sh
install_cuda ${CUDA_VERSION}
install_cuda_runtime ${CUDA_VERSION}
fi
- uses: assignUser/stash/restore@v1
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/linux-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ jobs:
if: ${{ github.repository == 'facebookincubator/velox' }}
runs-on: 4-core-ubuntu-gpu-t4
steps:
- name: Print CUDA version
run: |
nvidia-smi
adapters:
name: Linux release with adapters
# prevent errors when forks ff their main branch
Expand All @@ -66,12 +62,13 @@ jobs:

- name: Install Dependencies
run: |
# Allows to install arbitrary cuda-version whithout needing to update
# docker container before. It simplifies testing new/different versions
if ! yum list installed cuda-nvcc-$(echo ${CUDA_VERSION} | tr '.' '-') 1>/dev/null; then
source scripts/setup-centos8.sh
install_cuda_toolkit ${CUDA_VERSION}
fi
source scripts/setup-centos8.sh
install_cuda_runtime ${CUDA_VERSION}
install_cuda_driver
- name: Print CUDA version
run: |
nvidia-smi
- uses: assignUser/stash/restore@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions scripts/setup-centos8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,16 @@ function install_duckdb {
fi
}

function install_cuda {
function install_cuda_runtime {
# See https://developer.nvidia.com/cuda-downloads
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
yum install -y cuda-nvcc-$(echo $1 | tr '.' '-') cuda-cudart-devel-$(echo $1 | tr '.' '-')
}

function install_cuda_toolkit {
function install_cuda_driver {
# See https://developer.nvidia.com/cuda-downloads
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
yum install -y cuda-toolkit-$(echo $1 | tr '.' '-')
yum install -y nvidia-driver-cuda
}

function install_velox_deps {
Expand Down

0 comments on commit 6c1e734

Please sign in to comment.