-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathwindows_sycl-test.ps1
More file actions
executable file
·42 lines (26 loc) · 992 Bytes
/
windows_sycl-test.ps1
File metadata and controls
executable file
·42 lines (26 loc) · 992 Bytes
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
## Copyright 2023 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
$ROOT_DIR = pwd
#### Extract release package ####
$OPENVKL_PKG_BASE = "openvkl-$OPENVKL_RELEASE_PACKAGE_VERSION.sycl.x86_64.windows"
Expand-Archive .\$OPENVKL_PKG_BASE.zip -DestinationPath $ROOT_DIR
#### Build tutorial against release package ####
$env:openvkl_DIR = "$ROOT_DIR\$OPENVKL_PKG_BASE"
mkdir build_from_release
cd build_from_release
cmake --version
# CMAKE_SUPPRESS_REGENERATION=ON works around a Ninja issue specific to our runners.
cmake -L `
-G Ninja `
-D CMAKE_CXX_COMPILER=clang++ -D CMAKE_C_COMPILER=clang `
-D CMAKE_BUILD_TYPE=Release `
-D CMAKE_SUPPRESS_REGENERATION=ON `
../examples/from_openvkl_install
cmake --build . --config Release --verbose
ls
echo "=== build done ==="
#### Run tutorial to verify functionality ####
$env:PATH += ";$env:openvkl_DIR\bin"
./vklTutorialGPU.exe
# Note, binaries from the release package are verified in another job.
exit $LASTEXITCODE