-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Add tests for atomic_fence_capabilities. #8853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL] Add tests for atomic_fence_capabilities. #8853
Conversation
Signed-off-by: Maronas, Marcos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
#include <algorithm> | ||
#include <sycl/sycl.hpp> | ||
|
||
using namespace sycl; | ||
|
||
bool is_supported_order(const std::vector<memory_order> &capabilities, | ||
memory_order mem_order) { | ||
return std::find(capabilities.begin(), capabilities.end(), mem_order) != | ||
capabilities.end(); | ||
} | ||
|
||
bool is_supported_scope(const std::vector<memory_scope> &capabilities, | ||
memory_scope mem_scope) { | ||
return std::find(capabilities.begin(), capabilities.end(), mem_scope) != | ||
capabilities.end(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, move this code to the cpp file. Having function definitions in a header file is fraught with problems.
Signed-off-by: Maronas, Marcos <[email protected]>
Reverts #8853 Committed by mistake. New test fails on NVIDIA GPU.
@maarquitos14, sorry, I merged this PR by mistake. |
The PR is already created, I'm waiting for review. |
Adds E2E tests for
sycl::info::device::atomic_fence_order_capabilities
andsycl::info::device::atomic_fence_scope_capabilities
.