-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][Bindless] Fix bindless vulkan interop tests selecting wrong vulkan device #14386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL][Bindless] Fix bindless vulkan interop tests selecting wrong vulkan device #14386
Conversation
…lkan device The incorrect vulkan device can be selected when both Intel and Nvidia devices are available on the same system. Change tests to use the same device as SYCL default to.
@wenju-he Hey Wenju. Added this fix to the vulkan tests to prevent the wrong vulkan device being selected. Can you test this using the Level Zero backend. Want to make sure that there is no weirdness with the sycl and vulkan devices having slightly different naming causing issues when using an Intel device. |
@DBDuncan the change LGTM. I've tested it on DG2 linux. There is device name mismatch due to lower/upper case difference: |
@wenju-he Dang. TBH thought something annoying like that might happen. Thankfully yeah making the comparison case insensitive should fix the issue. Pushed a patch. Please verify that it works. |
@DBDuncan it is working now, following is log of sampled_images.cpp (only 4 subtests are enabled):
|
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
@intel/llvm-gatekeepers Should be ready to merge. |
@DBDuncan @wenju-he a mismatch could also happen with two Intel dGPUs. |
Thanks for letting me know. The test is currently disabled running on intel devices so should not be an issue for now. I don't think CI has the updated drivers yet? I could be wrong. At least should prevent vulkan picking an intel device when sycl is using an nvidia device for now. |
Sure it makes the test pass now but it's fundamentally not the correct approach. if one day we add CI instances with 2x nvidia GPUs it could break. |
You are right. I should had also been a lot more pessimistic about constant naming of devices between vulkan and sycl in the first place and considered multiple GPUs. I will look at updating this on Monday. Not working this Friday. |
@DBDuncan you're right that CI isn't enabled for bindless tests because drivers are not ready. SPIRV-LLVM-Translator commit used in latest IGC release igc-1.0.16900.23 doesn't contains llvm-spirv support for bindless image. Fortunately latest tag igc-1.0.17193.3 has the llvm-spirv commit for bindless image, so we just need to wait for the next IGC release. @ph0b thanks for the comment. I can test following-up PR from @DBDuncan on DG2. |
The incorrect vulkan device can be selected when both Intel and Nvidia devices are available on the same system. Change tests to use the same device as SYCL default to.