forked from RenderKit/ospray
-
Notifications
You must be signed in to change notification settings - Fork 0
178 lines (163 loc) · 8.09 KB
/
ci.linux.gpu.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
## Copyright 2022 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
name: CI Linux GPU Workflow
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
### BUILD JOBS ###
build-ubuntu2204:
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
force-delete: true # guarantees .gitattributes are respected in working dir
image: ubuntu:22.04
env-from-files: .github/workflows/dpcpp-sycl-nightly.env
level-zero-version: public/1.9.9
submodules: true
cmd: |
export SYCL_BUNDLE_ROOT=$DPCPP_ROOT
export CC=clang
export CXX=clang++
scripts/build/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_MODULE_MULTIDEVICE=OFF -DBUILD_GPU_SUPPORT=ON -DBUILD_OIDN=ON -DOPENVKL_URL=https://${RENDERKIT_GITHUB_TOKEN}@github.com/intel-innersource/libraries.graphics.renderkit.openvkl.git -DOPENVKL_BRANCH=gpu-devel -DRKCOMMON_VERSION=devel
artifact-out: build-ubuntu2204
artifact-path: build/install/ospray build/install/embree build/CMakeCache.txt build/*/build/CMakeCache.txt
build-ubuntu2204-devel:
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
force-delete: true # guarantees .gitattributes are respected in working dir
image: ubuntu:22.04
env-from-files: .github/workflows/dpcpp-sycl-nightly.env
level-zero-version: public/1.9.9
submodules: true
cmd: |
export SYCL_BUNDLE_ROOT=$DPCPP_ROOT
export CC=clang
export CXX=clang++
scripts/build/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_MODULE_MULTIDEVICE=OFF -DBUILD_GPU_SUPPORT=ON -DBUILD_OIDN=ON -DOPENVKL_URL=https://${RENDERKIT_GITHUB_TOKEN}@github.com/intel-innersource/libraries.graphics.renderkit.openvkl.git -DOPENVKL_BRANCH=gpu-devel -DRKCOMMON_VERSION=devel
artifact-out: build-ubuntu2204-devel
artifact-path: build/install/ospray build/install/embree build/CMakeCache.txt build/*/build/CMakeCache.txt
build-ubuntu2204-mpi:
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
force-delete: true # guarantees .gitattributes are respected in working dir
image: ubuntu:22.04
env-from-files: .github/workflows/dpcpp-sycl-public.env
level-zero-version: public/1.9.9
submodules: true
cmd: |
sudo apt remove openmpi-* libopenmpi3 -y
module load mpi
export CC=icx
export CXX=icpx
scripts/build/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_MODULE_MPI=ON -DBUILD_OSPRAY_MODULE_MULTIDEVICE=OFF -DBUILD_GPU_SUPPORT=ON -DOPENVKL_URL=https://${RENDERKIT_GITHUB_TOKEN}@github.com/intel-innersource/libraries.graphics.renderkit.openvkl.git -DOPENVKL_BRANCH=gpu-devel -DRKCOMMON_VERSION=devel
artifact-out: build-ubuntu2204-mpi
artifact-path: build/install/ospray build/install/embree build/CMakeCache.txt build/*/build/CMakeCache.txt
build-suse:
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
force-delete: true # guarantees .gitattributes are respected in working dir
image: opensuse/leap:15.3
env-from-files: .github/workflows/dpcpp-sycl-nightly.env
level-zero-version: public/1.9.9
submodules: true
cmd: |
export SYCL_BUNDLE_ROOT=$DPCPP_ROOT
export CC=clang
export CXX=clang++
scripts/build/linux.sh -DBUILD_GLFW=ON -DBUILD_OSPRAY_MODULE_MULTIDEVICE=OFF -DBUILD_GPU_SUPPORT=ON -DOPENVKL_URL=https://${RENDERKIT_GITHUB_TOKEN}@github.com/intel-innersource/libraries.graphics.renderkit.openvkl.git -DOPENVKL_BRANCH=gpu-devel -DRKCOMMON_VERSION=devel
artifact-out: build-suse
artifact-path: build/install/ospray build/install/embree build/CMakeCache.txt build/*/build/CMakeCache.txt
### TEST JOBS ###
test-ubuntu2204-dg2:
needs: [build-ubuntu2204]
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
image: ubuntu:22.04
env-from-files: .github/workflows/dpcpp-sycl-nightly.env .github/workflows/gfx-ubuntu22.env
submodules: true
options: --device=/dev/dri:/dev/dri
runs-on: '[ "Linux", "docker", "dg2" ]'
artifact-in: build-ubuntu2204
artifact-out: test-ubuntu2204-dg2
artifact-path: build_regression_tests/tests*.xml build_regression_tests/failed*
artifact-on-failure: true
cmd: |
export SYCL_BUNDLE_ROOT=$DPCPP_ROOT
export CC=clang
export CXX=clang++
export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/build/install/ospray/lib:$GITHUB_WORKSPACE/build/install/embree/lib:$LD_LIBRARY_PATH"
export PATH="$GITHUB_WORKSPACE/build/install/ospray/bin:$PATH"
scripts/tests/run_gpu_tests.sh "$GITHUB_WORKSPACE"
test-ubuntu2204-pvc:
needs: [build-ubuntu2204]
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
image: ubuntu:22.04
env-from-files: .github/workflows/dpcpp-sycl-nightly.env .github/workflows/gfx-ubuntu22.env
submodules: true
options: --device=/dev/dri:/dev/dri
runs-on: '[ "Linux", "docker", "pvc" ]'
artifact-in: build-ubuntu2204
artifact-out: test-ubuntu2204-pvc
artifact-path: build_regression_tests/tests*.xml build_regression_tests/failed*
artifact-on-failure: true
cmd: |
export SYCL_BUNDLE_ROOT=$DPCPP_ROOT
export CC=clang
export CXX=clang++
export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/build/install/ospray/lib:$GITHUB_WORKSPACE/build/install/embree/lib:$LD_LIBRARY_PATH"
export PATH="$GITHUB_WORKSPACE/build/install/ospray/bin:$PATH"
scripts/tests/run_gpu_tests.sh "$GITHUB_WORKSPACE"
test-ubuntu2204-devel-dg2:
needs: [build-ubuntu2204-devel]
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
secrets: inherit
with:
image: ubuntu:22.04
env-from-files: .github/workflows/dpcpp-sycl-nightly.env .github/workflows/gfx-ubuntu22-internal.env
submodules: true
options: --device=/dev/dri:/dev/dri
runs-on: '[ "Linux", "docker", "dg2" ]'
artifact-in: build-ubuntu2204-devel
artifact-out: test-ubuntu2204-devel-dg2
artifact-path: build_regression_tests/tests*.xml build_regression_tests/failed*
artifact-on-failure: true
cmd: |
export SYCL_BUNDLE_ROOT=$DPCPP_ROOT
export CC=clang
export CXX=clang++
export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/build/install/ospray/lib:$GITHUB_WORKSPACE/build/install/embree/lib:$LD_LIBRARY_PATH"
export PATH="$GITHUB_WORKSPACE/build/install/ospray/bin:$PATH"
scripts/tests/run_gpu_tests.sh "$GITHUB_WORKSPACE"
# test-ubuntu2204-DG2-JIT-mpi:
# needs: [build-ubuntu2204-DG2-JIT-mpi]
# uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main
# secrets: inherit
# with:
# allow-failure: true
# gfx-driver-version: gfx-driver-builds/ci/comp_igc/gfx-driver-ci-comp_igc-19476/artifacts/Linux/Ubuntu/22.04/Release
# dpcpp-version: intel/2023.0
# submodules: true
# image: ubuntu:22.04
# options: --device=/dev/dri:/dev/dri
# runs-on: '[ "Linux", "docker", "dg2" ]'
# artifact-in: build-ubuntu2204-DG2-JIT-mpi
# artifact-out: test-ubuntu2204-DG2-JIT-mpi
# artifact-path: build_regression_tests/tests*.xml build_regression_tests/failed*
# artifact-on-failure: true
# cmd: |
# sudo apt remove openmpi-* libopenmpi3 -y
# module load level-zero/1.9.9
# module load mpi
# export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/build/install/ospray/lib:$GITHUB_WORKSPACE/build/install/embree/lib:$LD_LIBRARY_PATH"
# export PATH="$GITHUB_WORKSPACE/build/install/ospray/bin:$PATH"
# scripts/tests/run_gpu_tests.sh "$GITHUB_WORKSPACE" TEST_MPI