Skip to content

Fix tests in CUDA builds - #2443

Open
ndgrigorian wants to merge 2 commits into
masterfrom
fix-tests-in-cuda-builds
Open

ndgrigorian wants to merge 2 commits into
masterfrom
fix-tests-in-cuda-builds

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

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_skip helper, which skips unless the default queue is OpenCL or Level Zero

CUDA 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 in TestIPCAcrossProcesses have 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

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

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.
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 75.429%. remained the same — fix-tests-in-cuda-builds into master

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants