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

Remove Kokkos::DualView #11

Closed
cwschilly opened this issue Oct 30, 2024 · 0 comments · Fixed by #27
Closed

Remove Kokkos::DualView #11

cwschilly opened this issue Oct 30, 2024 · 0 comments · Fixed by #27
Assignees

Comments

@cwschilly
Copy link
Collaborator

In tests/ops_kokkos_level2.cc, we use Kokkos::DualViews. Replace these with standard views.

struct kokkosFixture
  : public ::testing::Test {

  const double          NaN    = std::nan("0");
  static constexpr auto alpha0 = ::pressio::Constants<double>::zero();
  static constexpr auto alpha1 = ::pressio::Constants<double>::one();
  static constexpr auto beta0  = alpha0;
  static constexpr auto beta1  = alpha1;

  const size_t x_size = 3;
  const size_t y_size = 4;
  // plain views
  Kokkos::DualView<double**> A{ "A", y_size, x_size };
  Kokkos::DualView<double*> x{ "x", x_size };
  Kokkos::DualView<double*> y{ "y", y_size };
  Kokkos::DualView<double*> xt{ "xt", y_size };
  Kokkos::DualView<double*> yt{ "yt", x_size };
@cwschilly cwschilly self-assigned this Oct 30, 2024
cwschilly added a commit that referenced this issue Nov 11, 2024
@cwschilly cwschilly linked a pull request Nov 11, 2024 that will close this issue
cwschilly added a commit that referenced this issue Nov 11, 2024
fnrizzi added a commit that referenced this issue Nov 11, 2024
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 a pull request may close this issue.

1 participant