Install latest CUDA toolkit on the test runner to pass the OpenCV compilation test

This commit is contained in:
Cosmin Ștefan Ciocan
2024-01-27 13:26:33 +00:00
parent 9663c74598
commit aaaa2605e1
+6 -6
View File
@@ -27,14 +27,14 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
# the mkdir command bypasses a profiler error, which allows us to run it - name: Install CUDA toolkit
# with host code only to at least check that the profiler parameters are
# correctly provided
- name: Install CUDA tools
run: | run: |
sudo apt update sudo apt update
sudo apt install nvidia-cuda-toolkit sudo apt install -y wget
sudo mkdir -p /usr/lib/x86_64-linux-gnu/nsight-compute/sections wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |