-
Notifications
You must be signed in to change notification settings - Fork 27
75 lines (64 loc) · 2.93 KB
/
internal.ci.windows.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
## Copyright 2023 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
name: (Internal) GPU Windows
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
build-windows-gpu:
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
force-delete: true # guarantees .gitattributes are respected in working dir
submodules: true
runs-on: '[ "Windows", "build" ]'
env-from-files: ./.github/deps/dpcpp-sycl-nightly.env
artifact-out: build-windows-gpu
artifact-path: ./build
artifact-on-failure: true
cmd: |
# disable warnings which lead to excessively large log files
$env:CXXFLAGS = '-w'
$env:CFLAGS = '-w'
mkdir build
cd build
cmake -L -G Ninja -D CMAKE_INSTALL_LIBDIR=lib -D BUILD_OPENVKL_BENCHMARKS=OFF -D BUILD_OPENVKL_TESTING=ON -D BUILD_OPENVDB=OFF -D CMAKE_CXX_COMPILER=clang-cl -D CMAKE_C_COMPILER=clang-cl -D OPENVKL_EXTRA_OPTIONS="-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DOPENVKL_ENABLE_DEVICE_GPU=ON -DOPENVKL_DEVICE_CPU_STRUCTURED_REGULAR=OFF -DOPENVKL_DEVICE_CPU_STRUCTURED_REGULAR_LEGACY=ON" ../superbuild
cmake --build . --config Release -j1 --verbose
test-windows-dg2:
secrets: inherit
needs: [ build-windows-gpu ]
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
force-delete: true # guarantees .gitattributes are respected in working dir
submodules: true
runs-on: '[ "Windows", "dg2" ]'
env-from-files: ./.github/deps/dpcpp-sycl-nightly.env ./.github/deps/gfx-windows-public.env
artifact-in: build-windows-gpu
cmd: |
cd ./build/install/bin
./vklTutorialGPU
./vklTestsGPU --durations yes exclude:'Multiple devices'
test-examples-windows-dg2:
secrets: inherit
needs: [ build-windows-gpu ]
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
force-delete: true # guarantees .gitattributes are respected in working dir
submodules: true
runs-on: '[ "Windows", "dg2" ]'
env-from-files: ./.github/deps/dpcpp-sycl-nightly.env ./.github/deps/gfx-windows-public.env
artifact-in: build-windows-gpu
artifact-out: test-examples-dg2
artifact-path: ./build/install/bin/*.pfm
artifact-on-failure: true
cmd: |
# Prepare img_diff tool to be ready for CI usage (copy it on local runner)
$img_diff_dir = $env:STORAGE_PATH + '\tools\img-diff\dist_windows'
Copy-Item -Path "$img_diff_dir" -Destination $pwd\img-diff -Recurse
$img_diff_path = "$pwd\img-diff\img_diff.exe"
cd $env:GITHUB_WORKSPACE/build/install/bin
python $env:GITHUB_WORKSPACE/.github/scripts/run-examples-tests.py "$img_diff_path"