@@ -27,8 +27,8 @@ on testing scope.
27
27
Get sources
28
28
29
29
```
30
- git clone https://github.com/intel/llvm-test-suite
31
- cd llvm- test-suite
30
+ git clone https://github.com/intel/llvm
31
+ cd llvm/sycl/ test-e2e
32
32
mkdir build
33
33
cd build
34
34
```
@@ -38,46 +38,40 @@ With compiler tools available in the PATH:
38
38
```
39
39
# Configure
40
40
cmake \
41
- -DCMAKE_CXX_COMPILER=clang++ \
42
- -DTEST_SUITE_SUBDIRS=SYCL \
43
- -DCHECK_SYCL_ALL="opencl:cpu" \
41
+ -DSYCL_CXX_COMPILER=clang++ \
42
+ -DSYCL_TEST_E2E_TARGETS="opencl:cpu" \
44
43
..
45
44
46
45
# Build and Run
47
- make check-sycl-all
48
-
46
+ make check-sycl-e2e
49
47
```
50
48
51
- To run test with single backend :
49
+ To use ninja build run as :
52
50
53
51
```
54
52
# Configure
55
- cmake \
56
- -DCMAKE_CXX_COMPILER=clang++ \
57
- -DTEST_SUITE_SUBDIRS=SYCL \
58
- -DSYCL_BE="opencl" \
59
- -DSYCL_TARGET_DEVICES="cpu" \
60
- ..
53
+ cmake -G Ninja ...
61
54
62
55
# Build and Run
63
- make check
56
+ ninja check-sycl-e2e
64
57
```
65
58
66
- To use ninja build run as:
59
+ In addition to this standalone configuration one can enable ` check-sycl-e2e `
60
+ target for the sycl-toolchain workspace/build by specifying
61
+ ` SYCL_TEST_E2E_TARGETS ` as part of its cmake configuration. For example, like
62
+ this:
67
63
68
64
```
69
- # Configure
70
- cmake -G Ninja ...
71
-
72
- # Build and Run
73
- ninja check-sycl-all
65
+ CC=<> CXX=<> python llvm/buildbot/configure.py -o build ... \
66
+ --cmake-opt=-DSYCL_TEST_E2E_TARGETS="level_zero:gpu;opencl:gpu"
67
+ --cmake-opt=-DSYCL_E2E_TESTS_LIT_FLAGS="--param;dump_ir=True"``
74
68
```
75
69
76
70
# Cmake parameters
77
71
78
72
These parameters can be used to configure tests:
79
73
80
- *** CMAKE_CXX_COMPILER *** - path to DPCPP compiler
74
+ *** SYCL_CXX_COMPILER *** - path to DPCPP compiler
81
75
82
76
*** TEST_SUITE_LLVM_SIZE*** - path to llvm-size tool, required for code size
83
77
collection
@@ -88,15 +82,15 @@ time collection
88
82
*** TEST_SUITE_COLLECT_CODE_SIZE=OFF*** - can be used to turn off code size
89
83
collection
90
84
91
- *** TEST_SUITE_LIT *** - path to llvm-lit tool
85
+ *** LLVM_LIT *** - path to llvm-lit tool
92
86
93
- *** CHECK_SYCL_ALL *** - defines selection of multiple SYCL backends with set of
94
- target devices per each to be tested iteratively. Value is semicolon-separated
95
- list of configurations. Each configuration includes backend separated
96
- from comma-separated list of target devices with colon. Example:
87
+ *** SYCL_TEST_E2E_TARGETS *** - defines selection of multiple SYCL backends with
88
+ set of target devices per each to be tested iteratively. Value is
89
+ semicolon-separated list of configurations. Each configuration includes backend
90
+ separated from comma-separated list of target devices with colon. Example:
97
91
98
92
```
99
- -DCHECK_SYCL_ALL ="opencl:cpu;ext_oneapi_level_zero:gpu;ext_oneapi_cuda:gpu;ext_oneapi_hip:gpu;ext_intel_esimd_emulator:gpu"
93
+ -DSYCL_TEST_E2E_TARGETS ="opencl:cpu;ext_oneapi_level_zero:gpu;ext_oneapi_cuda:gpu;ext_oneapi_hip:gpu;ext_intel_esimd_emulator:gpu"
100
94
```
101
95
102
96
*** SYCL_BE*** - SYCL backend to be used for testing. Supported values are:
0 commit comments