Skip to content

[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

Merged

Conversation

maarquitos14
Copy link
Contributor

Adds E2E tests for sycl::info::device::atomic_fence_order_capabilities and sycl::info::device::atomic_fence_scope_capabilities.

@maarquitos14 maarquitos14 requested a review from a team as a code owner March 29, 2023 08:57
Copy link
Contributor

@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!

@maarquitos14 maarquitos14 temporarily deployed to aws March 29, 2023 10:07 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws March 29, 2023 11:43 — with GitHub Actions Inactive
Comment on lines 3 to 18
#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();
}
Copy link
Contributor

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]>
@maarquitos14 maarquitos14 temporarily deployed to aws March 30, 2023 13:49 — with GitHub Actions Inactive
@maarquitos14 maarquitos14 temporarily deployed to aws March 30, 2023 15:16 — with GitHub Actions Inactive
@bader bader changed the title [SYCL] Adds tests for atomic_fence_capabilities. [SYCL] Add tests for atomic_fence_capabilities. Apr 1, 2023
@bader bader merged commit 84dc8d3 into intel:sycl Apr 1, 2023
bader added a commit that referenced this pull request Apr 1, 2023
bader added a commit that referenced this pull request Apr 1, 2023
Reverts #8853

Committed by mistake. New test fails on NVIDIA GPU.
@bader
Copy link
Contributor

bader commented Apr 1, 2023

@maarquitos14, sorry, I merged this PR by mistake.
Please, address fix the failure on CUDA backend and create a new PR.

@maarquitos14
Copy link
Contributor Author

@maarquitos14, sorry, I merged this PR by mistake. Please, address fix the failure on CUDA backend and create a new PR.

The PR is already created, I'm waiting for review.

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.

3 participants