generated from AcademySoftwareFoundation/aswf-sample-wg
-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (43 loc) · 1.49 KB
/
gpu_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: GPU_TEST
on:
push:
branches:
- 'main'
pull_request:
jobs:
ubuntu-gpu:
runs-on: ubuntu-20.04-gpu-6c-112g-336h-16vr
container:
image: aswf/ci-common:3
env:
DISPLAY: $DISPLAY
QT_X11_NO_MITSHM: 1
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
options: --gpus all
steps:
- 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.*