Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 2ddaf7b

Browse files
[SYCL] Add gpu-intel-dg1 feature to LIT infra (#85)
That allows to write and run DG1 specific tests. Also documentation is updated to cover gaps. Co-authored-by: kbobrovs <[email protected]>
1 parent 1d1174e commit 2ddaf7b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

SYCL/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,26 @@ ninja check
140140
host);
141141
* **sycl_be** - SYCL backend to be used (opencl, level_zero, cuda);
142142
* **dump_ir** - if IR dumping is supported for compiler (True, False);
143+
* **gpu-intel-dg1** - tells LIT infra that Intel GPU DG1 is present in the
144+
system. It is developer / CI infra responsibility to make sure that the device
145+
is available in the system. Tests requiring DG1 to run must use proper device selector to ensure that. Use SYCL_DEVICE_ALLOWLIST or
146+
SYCL_DEVICE_FILTER to get proper configuration (see [EnvironmentVariables.md](https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md));
143147
* **extra_environment** - comma-separated list of variables with values to be
144148
added to test environment. Can be also set by LIT_EXTRA_ENVIRONMENT variable
145149
in cmake.
146150

147151
# LIT features which can be used to configure test execution:
148152
* **windows**, **linux** - host OS;
149-
* **cpu**, **gpu**, **host**, **acc** - target devices;
153+
* **cpu**, **gpu**, **host**, **accelerator** - target devices;
150154
* **cuda**, **opencl**, **level_zero** - target backend;
151155
* **sycl-ls** - sycl-ls tool is available;
156+
* **cl_options** - compiler uses CL command line options;
157+
* **opencl_icd** - OpenCL ICD loader is availabl, the libarary is needed for
158+
OpenCL interoperability tests;
159+
* **aot_tool** - Ahead-of-time compilation tools are available, enables
160+
corresponding tests;
161+
* **level_zero_headers** - Level_Zero headers are available, the headers are
162+
needed for Level_Zero interoperability tests;
163+
* **gpu-intel-dg1** - Intel GPU DG1 is available for testing;
152164
* **dump_ir**: is set to true if compiler supports dumping IR. Can be also
153165
defined by setting DUMP_IR_SUPPORTED in cmake. Default values is false.

SYCL/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
config.substitutions.append( ('%sycl_libs_dir', config.sycl_libs_dir ) )
9595
config.substitutions.append( ('%sycl_include', config.sycl_include ) )
9696

97+
if lit_config.params.get('gpu-intel-dg1', False):
98+
config.available_features.add('gpu-intel-dg1')
99+
97100
# check if compiler supports CL command line options
98101
cl_options=False
99102
sp = subprocess.getstatusoutput(config.dpcpp_compiler+' /help')

0 commit comments

Comments
 (0)