-
Notifications
You must be signed in to change notification settings - Fork 407
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
Output from PerTeam fails #733
Labels
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Comments
crtrott
added
Blocks Promotion
Overview issue for release-blocking bugs
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
labels
Apr 17, 2017
Confirmed failure. Works on master fails on develop: #include<Kokkos_Core.hpp>
int main(int argc, char* argv[]) {
Kokkos::initialize(argc,argv);
Kokkos::View<int*> iter("Iter",1);
Kokkos::parallel_for(Kokkos::TeamPolicy<>(1,1), KOKKOS_LAMBDA (const Kokkos::TeamPolicy<>::member_type& team) {
int shared_index;
Kokkos::single(Kokkos::PerTeam(team),[&] (int& idx) {
idx = Kokkos::atomic_fetch_add(&iter(0),1);
},shared_index);
});
Kokkos::finalize();
} |
The problem was the addition of a team_broadcast function which takes a functor and a value but not a root index. Making a root index mandatory fixes this. |
Can I get this in english please, or in code? or is it in kokkos where the
issue lies? or is it fixed?
I have to use develop since there are other bugs in master I need to work
around.
…On Mon, Apr 17, 2017 at 3:47 PM, Christian Trott ***@***.***> wrote:
The problem was the addition of a team_broadcast function which takes a
functor and a value but not a root index. Making a root index mandatory
fixes this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#733 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AOPDIL_zpddW3VvB988V0NseokUqbIzeks5rw93ggaJpZM4M88Sm>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a simple example that I sent to @crtrott but wanted tracking in github. This works fine with PerThread
BTW, This is with a pull from this a.m. into a standard trilinos build.
This gives the error
The text was updated successfully, but these errors were encountered: