Skip to content

[SYCL] fix e2e atomic ref tests - #23559

Merged
sarnex merged 12 commits into
intel:syclfrom
dklochkov-emb:sycl-atomic-ref-test-fail
Oct 21, 2026
Merged

sarnex merged 12 commits into
intel:syclfrom
dklochkov-emb:sycl-atomic-ref-test-fail

Conversation

@dklochkov-emb

Copy link
Copy Markdown
Contributor

This PR fixes issues of atomic_ref e2e tests. When Fusion CI runs it, build and run lines have different "calculations" of conditions. This makes possible situation when if some_arch will be true for RUN of %{run} and false for run of %{build}.
The reason why I left this in original PR, I did not want to remove unconditional build and run, However, they are useless: they does not build and run any test.

@dklochkov-emb
dklochkov-emb requested a review from a team as a code owner October 20, 2026 07:51
@dklochkov-emb

Copy link
Copy Markdown
Contributor Author

@intel/llvm-gatekeepers
Please, consider merging. Failures are not related to this PR

@sarnex
sarnex merged commit 28e391f into intel:sycl Oct 21, 2026
33 of 36 checks passed
@@ -1,5 +1,8 @@
// RUN: %if arch-intel_gpu_cri %{ %{build} -DFULL_ATOMIC16_COVERAGE -DFULL_ATOMIC32_COVERAGE -DFULL_ATOMIC64_COVERAGE -fsycl-device-code-split=per_kernel -Xspirv-translator -spirv-ext=+SPV_KHR_bfloat16,+SPV_INTEL_16bit_atomics -o %t.out %}
// RUN: %if arch-intel_gpu_cri %{ %{run} %t.out %}
// REQUIRES: arch-intel_gpu_cri

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dklochkov-emb Is there a particular reason we're limiting all atomic tests to CRI only?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@againull yes, it is not confirmed that other drivers support atomics.
Moreover, all tests were disabled before.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@againull in case of the build line
%if arch-intel_gpu_cri %{ %{build}..
fusion CI somehow skipped it but in case of run %if arch-intel_gpu_cri %{ %{run} %t.out %} somehow it tried to run resulting error that binary was not found

@againull againull Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@againull yes, it is not confirmed that other drivers support atomics.

It may apply to the new 16-bit atomics, but not to atomics generally: 32-bit atomics are required by SYCL, and the existing tests were already running and passing on other platforms, including PVC.(https://github.com/intel/llvm/actions/runs/35870937631/job/107222525795).

For the 16-bit tests, we should at least use REQUIRES: aspect-ext_oneapi_atomic16 instead of hardcoding arch-intel_gpu_cri. Ideally, the 16-bit coverage should be in separate test wrappers: combining it with the existing 32-bit tests under a file-wide requirement causes us to lose 32-bit coverage on devices without atomic16 support.

Moreover, all tests were disabled before.

Could you elaborate on this? In this older PVC run (https://github.com/intel/llvm/actions/runs/35870937631/job/107222525795), the atomic tests were executed and passed. Were you referring specifically to the 16-bit cases?

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.

4 participants