Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Optix install #36

Draft
wants to merge 10 commits into
base: jfpanisset-patch-5
Choose a base branch
from
54 changes: 35 additions & 19 deletions .github/workflows/gpu_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,39 @@ on:
pull_request:
jobs:
ubuntu-gpu:
runs-on: ubuntu-20.04-gpu-6c-112g-336h-16vr
# runs-on: ubuntu-20.04-gpu-6c-112g-336h-16vr
runs-on: ubuntu-20.04-gpu-t4-4c-16g-176h
# container:
# image: aswf/ci-common:3-clang15
# env:
# DISPLAY: $DISPLAY
# QT_X11_NO_MITSHM: 1
# volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix
# options: --gpus all
steps:
- name: Update APT repo for CUDA
run: |
cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d/
echo '#### cuda.list ####'
cat /etc/apt/sources.list.d/cuda.list
echo '#### cuda.list.save ####'
cat /etc/apt/sources.list.d/cuda.list.save
echo '#### nvidia-docker.list ####'
cat /etc/apt/sources.list.d/nvidia-docker.list
echo '### Get rid of cuda.list.save ###'
rm /etc/apt/sources.list.d/cuda.list.save
#sudo apt-key del 7fa2af80
#wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
#sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
time sudo apt-get update
sudo apt -y install libnpp-11-8
- name: run glxinfo inside container
run: |
nvidia-smi
# glxinfo
# - name: Update APT repo for CUDA
# run: |
# cat /etc/apt/sources.list
# ls -l /etc/apt/sources.list.d/
# echo '#### cuda.list ####'
# cat /etc/apt/sources.list.d/cuda.list
# echo '#### cuda.list.save ####'
# cat /etc/apt/sources.list.d/cuda.list.save
# echo '#### nvidia-docker.list ####'
# cat /etc/apt/sources.list.d/nvidia-docker.list
# echo '### Get rid of cuda.list.save ###'
# #sudo rm /etc/apt/sources.list.d/cuda.list.save
# #sudo apt-key del 7fa2af80
# #wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
# #sudo dpkg -i cuda-keyring_1.0-1_all.deb
# #sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
# #sudo apt-get update
# #sudo apt -y install libnpp-11-8
# cat /proc/driver/nvidia/version
# dpkg -l | grep -i nvidia
# ls -l /usr/lib/x86_64-linux-gnu/libnvoptix.so.*