Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Update SubGroup tests to account for optionality of double #1241

Merged

Conversation

AlexeySachkov
Copy link

While optional kernel features are not fully implemented yet, let's fallback to per-kernel device code split to avoid problem with speculative compilation of all kernels regardless of some of them using optional functionality unsupported by some devices.

@AlexeySachkov
Copy link
Author

Note: I haven't updated Subgroup/info.cpp test. I think that it requires complete overhaul, because it uses a lot of deprecated APIs. Plus, it is disabled for CUDA and HIP, but the issue blocking it is already resolved

Copy link

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Looks good! Normally we'd do an early exit if the whole test isn't supported, but since it's only 2 lines in the primary path I am okay with doing it as an if-else.

Comment on lines +19 to +25
if (Queue.get_device().has(sycl::aspect::fp64)) {
check<double>(Queue);
std::cout << "Test passed." << std::endl;
} else {
std::cout << "Test skipped because device doesn't support aspect::fp64"
<< std::endl;
}

Choose a reason for hiding this comment

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

I'm not sure if I'm going to ask to do that as part of this PR, but the best way would be to merge all shuffle_*.cpp tests into one using this method.

@pvchupin pvchupin merged commit 44697ec into intel:intel Sep 9, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
While optional kernel features are not fully implemented yet, let's fallback to per-kernel device code split to avoid problem with speculative compilation of all kernels regardless of some of them using optional functionality unsupported by some devices.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…m-test-suite#1241)

While optional kernel features are not fully implemented yet, let's fallback to per-kernel device code split to avoid problem with speculative compilation of all kernels regardless of some of them using optional functionality unsupported by some devices.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants