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

[SYCL] Add gpu-intel-dg1 feature to LIT infra #85

Merged
merged 3 commits into from
Dec 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion SYCL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,26 @@ ninja check
host);
* **sycl_be** - SYCL backend to be used (opencl, level_zero, cuda);
* **dump_ir** - if IR dumping is supported for compiler (True, False);
* **gpu-intel-dg1** - tells LIT infra that Intel GPU DG1 is present in the
system. It is developer / CI infra responsibility to make sure that the device
is available in the system. Tests requiring DG1 to run must use proper device selector to ensure that. Use SYCL_DEVICE_ALLOWLIST or
SYCL_DEVICE_FILTER to get proper configuration (see [EnvironmentVariables.md](https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md));
* **extra_environment** - comma-separated list of variables with values to be
added to test environment. Can be also set by LIT_EXTRA_ENVIRONMENT variable
in cmake.

# LIT features which can be used to configure test execution:
* **windows**, **linux** - host OS;
* **cpu**, **gpu**, **host**, **acc** - target devices;
* **cpu**, **gpu**, **host**, **accelerator** - target devices;
* **cuda**, **opencl**, **level_zero** - target backend;
* **sycl-ls** - sycl-ls tool is available;
* **cl_options** - compiler uses CL command line options;
* **opencl_icd** - OpenCL ICD loader is availabl, the libarary is needed for
OpenCL interoperability tests;
* **aot_tool** - Ahead-of-time compilation tools are available, enables
corresponding tests;
* **level_zero_headers** - Level_Zero headers are available, the headers are
needed for Level_Zero interoperability tests;
* **gpu-intel-dg1** - Intel GPU DG1 is available for testing;
* **dump_ir**: is set to true if compiler supports dumping IR. Can be also
defined by setting DUMP_IR_SUPPORTED in cmake. Default values is false.
3 changes: 3 additions & 0 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
config.substitutions.append( ('%sycl_libs_dir', config.sycl_libs_dir ) )
config.substitutions.append( ('%sycl_include', config.sycl_include ) )

if lit_config.params.get('gpu-intel-dg1', False):
config.available_features.add('gpu-intel-dg1')

# check if compiler supports CL command line options
cl_options=False
sp = subprocess.getstatusoutput(config.dpcpp_compiler+' /help')
Expand Down