-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Allow default selected GPU to be from any available platform #224
[SYCL] Allow default selected GPU to be from any available platform #224
Conversation
Signed-off-by: Steffen Larsen <[email protected]>
|
The changes clang-format suggests will invalidate the test. |
|
I am afraid this test doesn't actually check anything then. What are the SYCL RT changes that change the default? Should we somehow really test that if multiple platforms are discovered then something specific is selected? |
|
On my system so the test - as is - fails. After these changes I suppose the only thing this test checks is that the default is a GPU that belongs to one of the DPC++ backends and not something bogus or unexpected. I agree, it is not a lot, but as is this test depends on it being on a system that has sycl-ls report a L0 GPU. |
Understood. Let's then create multiple tests. The other (new one) is doing what you did. |
Signed-off-by: Steffen Larsen <[email protected]>
|
Good call. I have done as suggested. Would you like me to rename sycl-ls-gpu-default.cpp to something that makes the distinction more clear? (sycl-ls-gpu-default-level-zero.cpp for example.) |
Yes, I think this would be fair. |
Signed-off-by: Steffen Larsen <[email protected]>
smaslov-intel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@steffenlarsen could you please fix clang-format issues? |
I would like to, but I don't think it's possible without invalidating the test. Clang-format wants the check to be in two lines, but from my tests I have concluded that it results in it ignoring the second line. |
You can try approach used in https://github.com/intel/llvm-test-suite/blob/intel/SYCL/Plugin/interop-level-zero.cpp#L8 |
Signed-off-by: Steffen Larsen <[email protected]>
33f3112 to
0a00e56
Compare
…ntel/llvm-test-suite#224) Signed-off-by: Steffen Larsen <[email protected]>
Removes the assumption that level-zero is available and the default on the system, allowing the default GPU to be from either the OpenCL backend, the CUDA backend, or the L0 backend.