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
- This patch prints an error warning when the environment variable
SYCL_DEVICE_FILTER is set.
- In-tree tests now use ONEAPI_DEVICE_SELECTOR instead of
SYCL_DEVICE_FILTER.
- The function SYCLConfig<SYCL_DEVICE_FILTER> which retrieves the value
of the deprecated environment variable is also deprecated.
- A switch is added to pi::findPlugins() to use ONEAPI_DEVICE_SELECTOR
if possible
Signed-off-by: Rauf, Rana <[email protected]>
Co-authored-by: Alexey Bader <[email protected]>
Copy file name to clipboardExpand all lines: sycl/doc/EnvironmentVariables.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ compiler and runtime.
10
10
|`ONEAPI_DEVICE_SELECTOR`|[See below.](#oneapi_device_selector)| This device selection environment variable can be used to limit the choice of devices available when the SYCL-using application is run. Useful for limiting devices to a certain type (like GPUs or accelerators) or backends (like Level Zero or OpenCL). This device selection mechanism is replacing `SYCL_DEVICE_FILTER` . The `ONEAPI_DEVICE_SELECTOR` syntax is shared with OpenMP and also allows sub-devices to be chosen. [See below.](#oneapi_device_selector) for a full description. |
11
11
|`SYCL_BE` (deprecated) |`PI_OPENCL`, `PI_LEVEL_ZERO`, `PI_CUDA`| Force SYCL RT to consider only devices of the specified backend during the device selection. The `SYCL_BE` environment variable is deprecated and will be removed soon. Please use the new env var `ONEAPI_DEVICE_SELECTOR` instead. |
12
12
|`SYCL_DEVICE_TYPE` (deprecated) | 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 `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. The `SYCL_DEVICE_TYPE` environment variable is deprecated and will be removed soon. Please use the new env var `ONEAPI_DEVICE_SELECTOR` instead. |
13
-
|`SYCL_DEVICE_FILTER`|`backend:device_type:device_num`| See Section[`SYCL_DEVICE_FILTER`](#sycl_device_filter)below. |
13
+
|`SYCL_DEVICE_FILTER`(deprecated) |`backend:device_type:device_num`|Please use `ONEAPI_DEVICE_SELECTOR` environment variable instead. See section[`SYCL_DEVICE_FILTER`](#sycl_device_filter) below for `SYCL_DEVICE_FILTER` description. |
14
14
|`SYCL_DEVICE_ALLOWLIST`| See [below](#sycl_device_allowlist)| Filter out devices that do not match the pattern specified. `BackendName` accepts `host`, `opencl`, `level_zero` or `cuda`. `DeviceType` accepts `host`, `cpu`, `gpu` or `acc`. `DeviceVendorId` accepts uint32_t in hex form (`0xXYZW`). `DriverVersion`, `PlatformVersion`, `DeviceName` and `PlatformName` accept regular expression. Special characters, such as parenthesis, must be escaped. DPC++ runtime will select only those devices which satisfy provided values above and regex. More than one device can be specified using the piping symbol "\|".|
|`SYCL_CACHE_DIR`| Path | Path to persistent cache root directory. Default values are `%AppData%\libsycl_cache` for Windows and `$XDG_CACHE_HOME/libsycl_cache` on Linux, if `XDG_CACHE_HOME` is not set then `$HOME/.cache/libsycl_cache`. When none of the environment variables are set SYCL persistent cache is disabled. |
0 commit comments