Open nwnk opened 5 months ago
@nwnk, this behavior is expected. As there's no guarantee that GPU is present GPU tests report pass if no devices are available.
@nwnk, this behavior is expected. As there's no guarantee that GPU is present GPU tests report pass if no devices are available.
If that were really expected, I would expect it to be consistent. In that OCL build, 7 gpu tests passed, but 156 failed. I don't understand why those seven ought to be different.
Good point. I missed the fact that some tests still fail. Let me try to reproduce it.
Do you see anything useful in failed tests output?
@nwnk,
If that were really expected
It is really expected for the examples but not for the tests (gtests and benchdnn) because we only include examples in the binary releases (read oneAPI releases) so we don't want them to fail on systems that don't have GPUs.
There is one example that fails (gpu_opencl_interop) but it's a bug in the error handling mechanism.
Using the oneAPI 2024.1 release, build the SYCL CPU and GPU backends. Ensure that no SYCL devices are available on the system. Then run ctest:
If you try the same trick with the OCL backend, more things fail like they should, but there's still a few that xpass: