Skip to content

[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

Merged

Conversation

maarquitos14
Copy link
Contributor

@maarquitos14 maarquitos14 commented Mar 24, 2023

Add tests for info::context::atomic_memory_scope_capabilities and info::context::atomic_memory_order_capabilities queries.

Signed-off-by: Maronas, Marcos <marcos.maronas@intel.com>
@maarquitos14 maarquitos14 requested a review from a team as a code owner March 24, 2023 17:55
Comment on lines 203 to 213
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();
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@maarquitos14 maarquitos14 temporarily deployed to aws March 24, 2023 18:50 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws March 24, 2023 19:44 — with GitHub Actions Inactive
@AlexeySachkov AlexeySachkov requested a review from a team March 24, 2023 21:48
Signed-off-by: Maronas, Marcos <marcos.maronas@intel.com>
@maarquitos14 maarquitos14 temporarily deployed to aws March 27, 2023 10:45 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws March 27, 2023 12:13 — with GitHub Actions Inactive
@maarquitos14
Copy link
Contributor Author

/testwin

@maarquitos14 maarquitos14 temporarily deployed to aws March 29, 2023 10:49 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws March 29, 2023 12:24 — with GitHub Actions Inactive
@maarquitos14
Copy link
Contributor Author

Friendly ping @aelovikov-intel @intel/llvm-reviewers-runtime @intel/sycl-language-enabling-triage

@KornevNikita
Copy link
Contributor

Hi @maarquitos14, I see only tests changes here. Is that how it's intended?

@maarquitos14
Copy link
Contributor Author

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.

@maarquitos14 maarquitos14 changed the title [SYCL] Adds atomic_memory_scope context query. [SYCL] Adds tests for atomic_memory_order/scope context queries. Apr 4, 2023
@maarquitos14 maarquitos14 changed the title [SYCL] Adds tests for atomic_memory_order/scope context queries. [SYCL] Add tests for atomic_memory_order/scope context queries. Apr 4, 2023
@maarquitos14 maarquitos14 temporarily deployed to aws April 6, 2023 08:51 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws April 6, 2023 09:21 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws April 6, 2023 10:52 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws April 6, 2023 11:22 — with GitHub Actions Inactive
@maarquitos14
Copy link
Contributor Author

Friendly ping @intel/sycl-language-enabling-triage

@AlexeySachkov AlexeySachkov merged commit 8841460 into intel:sycl Apr 6, 2023
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