Repository navigation
Fix tests in CUDA builds - #2443
Open
ndgrigorian wants to merge 2 commits into
Open
ndgrigorian wants to merge 2 commits into
ndgrigorian wants to merge 2 commits into
Conversation
Tests that loaded SPIR-V on the default queue failed when it was a CUDA queue. They now get it from get_spirv_queue_or_skip, which skips unless the backend is OpenCL or Level Zero.
CUDA cannot open an IPC handle in the process that exported it, so the tests that do skip there. New tests open a handle exported by a child process, which works on CUDA and on Level Zero.
ndgrigorian
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
December 5, 2026 08:44
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/2443/index.html |
Collaborator
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes test failures in dpctl builds targeting CUDA
Kernel bundle tests that load SPIR-V on the default queue failed when that queue was a CUDA queue. They now use a new
get_spirv_queue_or_skiphelper, which skips unless the default queue is OpenCL or Level ZeroCUDA cannot open an IPC handle in the process that exported it (
CUDA_ERROR_INVALID_CONTEXT), so the IPC tests that open a handle in the same process now skip on CUDA. New tests inTestIPCAcrossProcesseshave a child process export a handle and the parent open it, which works on both CUDA and Level Zero. The child exports rather than the parent because a Level Zero handle carries a file descriptor that only a process allowed to ptrace the exporter can import