dpctl icon indicating copy to clipboard operation
dpctl copied to clipboard

Use `SYCL_DEVICE_FILTER` to simulate testing with only a specific type of device

Open PokhodenkoSA opened this issue 4 years ago • 1 comments

@PokhodenkoSA @oleksandr-pavlyk We can use SYCL_DEVICE_FILTER (refer https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md) to simulate testing with only a specific type of device. Can we setup multiple CI runs where we explicitly select a specific type of device and turn off other types using the environment variable?

Originally posted by @diptorupd in https://github.com/IntelPython/dpctl/issues/359#issuecomment-812800152

PokhodenkoSA avatar Apr 04 '21 07:04 PokhodenkoSA

Tests should run tests in 2 kind of environments:

  1. Run tests with all installed devices available. It helps test code on as much different devices as possible.
  2. Run tests when devices and platform are absent (possibly it is 2 different cases). In case devices and platform are present then test system should simulate absent of devices and platform.

PokhodenkoSA avatar Apr 04 '21 08:04 PokhodenkoSA