-
Notifications
You must be signed in to change notification settings - Fork 99
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
atomic_fetch_add fix for Kokkos::Serial #157
Conversation
Casting required when passing '1' as the increment argument to Kokkos for cases where the View's data_type is not an int
These type of changes are needed for the next promotion of kokkos and kokkos-kernels. |
@ndellingwood |
@mndevec In the Kokkos promotion issue kokkos/kokkos#1413 @ibaned gave the following explanation:
|
@mndevec I can resubmit a PR with the |
This looks good. I am just trying to see whether these cast affects the performance. I will approve it as soon as it is done. |
@mndevec the casts were already happening explicitly before, the change just forces you to declare it explicitly. casting a constant like |
@ibaned |
This will be fixed in Kokkos. So this won't be merged. |
Casting required when passing '1' as the increment argument to Kokkos
for cases where the View's data_type is not an int