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

Problems with Kokkos View trait: Kokkos::MemoryTraits<Kokkos::Atomic> #11

Closed
lifflander opened this issue Nov 14, 2018 · 2 comments
Closed
Assignees

Comments

@lifflander
Copy link
Contributor

No description provided.

@lifflander
Copy link
Contributor Author

Implemented and integration tested.

@lifflander
Copy link
Contributor Author

lifflander commented Nov 14, 2018

Add atomics to integration test. All traits should work by default, but the atomic trait actually changes the semantics of view.operator()()!

struct Data : BaseData {
  using AtomicTrait      = ::Kokkos::MemoryTraits<Kokkos::Atomic>;
  using Kokkos_ViewType0 = ::Kokkos::View<int,      AtomicTrait>;
  using Kokkos_ViewType1 = ::Kokkos::View<int*,     Kokkos::LayoutLeft>;
  using Kokkos_ViewType2 = ::Kokkos::View<double**, Kokkos::LayoutRight>;
  using Kokkos_ViewType3 = ::Kokkos::View<float***, AtomicTrait>;
  using Kokkos_ViewType4 = ::Kokkos::View<int*[2]>;
  using DimType          = typename Kokkos_ViewType1::size_type;
  // ..
};

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

No branches or pull requests

1 participant