-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Add tests for atomic_memory_order/scope
context queries.
#8770
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_memory_order/scope
context queries.
#8770
Conversation
Signed-off-by: Maronas, Marcos <marcos.maronas@intel.com>
sycl/source/detail/context_impl.cpp
Outdated
for (const sycl::device &Device : MDevices) { | ||
std::vector<sycl::memory_scope> NewCapabilityList; | ||
std::vector<sycl::memory_scope> DeviceCapabilities = | ||
Device.get_info<info::device::atomic_memory_scope_capabilities>(); | ||
std::set_intersection( | ||
CapabilityList.begin(), CapabilityList.end(), | ||
DeviceCapabilities.begin(), DeviceCapabilities.end(), | ||
std::inserter(NewCapabilityList, NewCapabilityList.begin())); | ||
CapabilityList = NewCapabilityList; | ||
} | ||
CapabilityList.shrink_to_fit(); |
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 outline this into a helper and share with line 178.
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.
This was addressed in the latest update.
Signed-off-by: Maronas, Marcos <marcos.maronas@intel.com>
/testwin |
…_atomic_memory_scope
Friendly ping @aelovikov-intel @intel/llvm-reviewers-runtime @intel/sycl-language-enabling-triage |
Hi @maarquitos14, I see only tests changes here. Is that how it's intended? |
I just realized the changes in context_impl.cpp were already merged in #8586. I guess I accidentally included the changes there too. Thus, we only have tests in this PR now. I'll update the PR title accordingly. |
atomic_memory_order/scope
context queries.
atomic_memory_order/scope
context queries.atomic_memory_order/scope
context queries.
…_atomic_memory_scope
Friendly ping @intel/sycl-language-enabling-triage |
Add tests for
info::context::atomic_memory_scope_capabilities
andinfo::context::atomic_memory_order_capabilities
queries.