Skip to content
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

Fix memory order for c++20 compatibility #255

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

ikbuibui
Copy link
Contributor

@ikbuibui ikbuibui commented Aug 6, 2024

No description provided.

@psychocoderHPC
Copy link
Member

IMO this PR is breaking C++ < 20 because before 20 it is a enum.

https://en.cppreference.com/w/cpp/atomic/memory_order

We need to handle c++17 and C++20 and newer via a macro. @ikbuibui could you check if we can use alpaka threadfence methods instead.
I assume this code is pr alpaka thread fence but now we can use alpaka natives.

@ikbuibui
Copy link
Contributor Author

ikbuibui commented Aug 7, 2024

In my tests it works with C++17 and alpaka thread fence uses the same

@psychocoderHPC psychocoderHPC merged commit 18bcad8 into alpaka-group:dev Aug 7, 2024
1 check passed
@psychocoderHPC psychocoderHPC added this to the 2.6.0crp milestone Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants