Skip to content

Commit 9fd0ee6

Browse files
Updates to README.md
1 parent f33f8b2 commit 9fd0ee6

File tree

1 file changed

+22
-28
lines changed

1 file changed

+22
-28
lines changed

sycl/test-e2e/README.md

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ on testing scope.
2727
Get sources
2828

2929
```
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
3232
mkdir build
3333
cd build
3434
```
@@ -38,46 +38,40 @@ With compiler tools available in the PATH:
3838
```
3939
# Configure
4040
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" \
4443
..
4544
4645
# Build and Run
47-
make check-sycl-all
48-
46+
make check-sycl-e2e
4947
```
5048

51-
To run test with single backend:
49+
To use ninja build run as:
5250

5351
```
5452
# 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 ...
6154
6255
# Build and Run
63-
make check
56+
ninja check-sycl-e2e
6457
```
6558

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:
6763

6864
```
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"``
7468
```
7569

7670
# Cmake parameters
7771

7872
These parameters can be used to configure tests:
7973

80-
***CMAKE_CXX_COMPILER*** - path to DPCPP compiler
74+
***SYCL_CXX_COMPILER*** - path to DPCPP compiler
8175

8276
***TEST_SUITE_LLVM_SIZE*** - path to llvm-size tool, required for code size
8377
collection
@@ -88,15 +82,15 @@ time collection
8882
***TEST_SUITE_COLLECT_CODE_SIZE=OFF*** - can be used to turn off code size
8983
collection
9084

91-
***TEST_SUITE_LIT*** - path to llvm-lit tool
85+
***LLVM_LIT*** - path to llvm-lit tool
9286

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:
9791

9892
```
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"
10094
```
10195

10296
***SYCL_BE*** - SYCL backend to be used for testing. Supported values are:

0 commit comments

Comments
 (0)