Skip to content

Skip context hash tests for AdaptiveCpp on CUDA - #2444

Open
ndgrigorian wants to merge 1 commit into
masterfrom
skip-acpp-context-hash-collision
Open

ndgrigorian wants to merge 1 commit into
masterfrom
skip-acpp-context-hash-collision

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

This PR skips test_context_not_equals in test_sycl_context.py and test_sycl_queue.py for AdaptiveCpp on CUDA

AdaptiveCpp hashes a default context as the XOR of its device ids, (backend_id << 32) | index. CUDA is backend 0, so the id of cuda:0 is 0, and a context with cuda:0 and the host device hashes the same as a context with only the host device. This is upstream AdaptiveCpp behavior and reproduces in pure SYCL. CI does not catch it because no CI runner has a GPU and a CPU device together

  • 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?

AdaptiveCpp hashes a default context by XOR of its device ids, which is
0 for cuda:0, so the context of cuda:0 and the host device hashes like
the context of the host device alone.
@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 — skip-acpp-context-hash-collision 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