You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Specialize SYCLConfig template class for SYCL_BE and SYCL_PI_TRACE.
* Reuse SYCLConfig instead of introducing new Config class in PI.
* Use recently introduced backend enum instead of pi::Backend enum.
* Print label instead of number during PI_TRACE.
* Introduce helper that returns label depending on level of tracing
* Force SYCL RT to use specified backend when SYCL_BE is set.
If SYCL_BE is not specified then SYCL RT is not forced to use specific
backend. But make opencl backend preferred.
* Update docs with info about SYCL_BE and SYCL_PI_TRACE
Signed-off-by: Artur Gainullin <artur.gainullin@intel.com>
Copy file name to clipboardExpand all lines: sycl/doc/EnvironmentVariables.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ subject to change. Do not rely on these variables in production code.
11
11
12
12
| Environment variable | Values | Description |
13
13
| -------------------- | ------ | ----------- |
14
-
| SYCL_PI_TRACE |Any(\*) | Force tracing of PI calls to stderr. |
15
-
| SYCL_BE | PI_OPENCL, PI_CUDA, PI_OTHER | When SYCL RT is built with PI, this controls which plugin is used by the default device selector. Default value is PI_OPENCL. |
14
+
| SYCL_PI_TRACE |Described [below](#sycl_pi_trace-options)| Enable specified level of tracing for PI. |
15
+
| SYCL_BE | PI_OPENCL, PI_CUDA| When SYCL RT is built with PI, force SYCL to consider only devices of the specified backend during the device selection. |
16
16
| SYCL_DEVICE_TYPE | One of: CPU, GPU, ACC, HOST | Force SYCL to use the specified device type. If unset, default selection rules are applied. If set to any unlisted value, this control has no effect. If the requested device type is not found, a `cl::sycl::runtime_error` exception is thrown. If a non-default device selector is used, a device must satisfy both the selector and this control to be chosen. This control only has effect on devices created with a selector. |
17
17
| SYCL_PROGRAM_COMPILE_OPTIONS | String of valid OpenCL compile options | Override compile options for all programs. |
18
18
| SYCL_PROGRAM_LINK_OPTIONS | String of valid OpenCL link options | Override link options for all programs. |
@@ -39,3 +39,12 @@ SYCL_PRINT_EXECUTION_GRAPH can accept one or more comma separated values from th
39
39
| after_addHostAcc | print graph after addHostAccessor method |
40
40
| always | print graph before and after each of the above methods |
41
41
42
+
### SYCL_PI_TRACE Options
43
+
44
+
SYCL_PI_TRACE can accept one of the values from the table below
0 commit comments