-
Notifications
You must be signed in to change notification settings - Fork 1
113 lines (96 loc) · 3.72 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Codebase tests (GPU)
on:
pull_request:
push:
branches:
- eighty-devx-gpu-ci
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
XLA_FLAGS: --xla_gpu_enable_command_buffer=
XLA_PYTHON_CLIENT_PREALLOCATE: "false"
XLA_PYTHON_CLIENT_ALLOCATOR: "platform"
jobs:
test:
strategy:
matrix:
runner: [ParallelHoss]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Install nvdiffrast dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: mesa-utils
version: 1.0
# - name: Setup asset caching
# id: cache-assets
# uses: actions/cache@v4
# with:
# path: assets
# key: ${{ runner.os }}-${{ matrix.runner }}-assets
# restore-keys: ${{ runner.os }}-${{ matrix.runner }}-assets
# - name: Setup pixi caching
# id: cache-pixi
# uses: actions/cache@v4
# with:
# path: .pixi
# key: ${{ runner.os }}-${{ matrix.runner }}-pixi
# restore-keys: ${{ runner.os }}-${{ matrix.runner }}-pixi
- name: System debugging
run: |
nvidia-smi
ldconfig -p | grep EGL
ldconfig -p | grep GL
ls -la /usr/share/glvnd/
ls -la /usr/share/glvnd/egl_vendor.d/
cat /usr/share/glvnd/egl_vendor.d/50_mesa.json
sudo sh -c 'echo "{" >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json'
sudo sh -c 'echo " \"file_format_version\" : \"1.0.0\"," >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json'
sudo sh -c 'echo " \"ICD\" : {" >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json'
sudo sh -c 'echo " \"library_path\" : \"libEGL_nvidia.so.0\"" >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json'
sudo sh -c 'echo " }" >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json'
sudo sh -c 'echo "}" >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json'
cat /usr/share/glvnd/egl_vendor.d/10_nvidia.json
sudo find / -name "*nvidia.so*"
sudo find / -name "*nvidia*"
glxinfo -B
# - name: Authenticate gcloud
# id: auth
# uses: google-github-actions/auth@v2
# with:
# credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}"
# - name: Setup gcloud
# uses: google-github-actions/setup-gcloud@v2
# - name: Install system environment and project dependencies
# env:
# GITHUB_CI: "true"
# __EGL_VENDOR_LIBRARY_DIRS: "/usr/share/glvnd"
# #LD_LIBRARY_PATH: "/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
# run: |
# ./install.sh
# source ~/.bashrc
# export PATH="/home/runner/.pixi/bin:/home/runner/.local/bin:$PATH"
# export CPLUS_INCLUDE_PATH="$GITHUB_WORKSPACE/.pixi/envs/default/targets/x86_64-linux/include"
# pixi tree
# #export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu
# env
# pixi run -vv test
# - name: Run tests
# env:
# PATH: "/home/runner/.pixi/bin:/home/runner/.local/bin:$PATH"
# CONDA_PREFIX: "/home/runner/.pixi/envs/default"
# run: pixi run all-tests-ci
# - name: Run tests
# uses: prefix-dev/[email protected]
# env:
# PATH: "/home/runner/.pixi/bin:/home/runner/.local/bin:$PATH"
# RUNNER_DEBUG: true
# with:
# pixi-version: v0.25.0
# activate-environment: true
# cache: true
# - run: |
# ls -la .pixi/envs/default
#cp assets/system/libEGL.so .pixi/envs/default/x86_64-conda-linux-gnu/sysroot/usr/lib64/
#pixi run test