dpctl
dpctl copied to clipboard
Use `SYCL_DEVICE_FILTER` to simulate testing with only a specific type of device
@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
Tests should run tests in 2 kind of environments:
- Run tests with all installed devices available. It helps test code on as much different devices as possible.
- 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.