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

Add KokkosExt::{construct_at,destroy_at} #1084

Merged
merged 3 commits into from
May 8, 2024
Merged

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented May 7, 2024

No description provided.

@aprokop aprokop added the enhancement New feature or request label May 7, 2024
@aprokop aprokop requested a review from dalg24 May 7, 2024 17:24
src/kokkos_ext/ArborX_DetailsKokkosExtMemory.hpp Outdated Show resolved Hide resolved
src/kokkos_ext/ArborX_DetailsKokkosExtMemory.hpp Outdated Show resolved Hide resolved
src/kokkos_ext/ArborX_DetailsKokkosExtMemory.hpp Outdated Show resolved Hide resolved
src/kokkos_ext/ArborX_DetailsKokkosExtMemory.hpp Outdated Show resolved Hide resolved
src/kokkos_ext/ArborX_DetailsKokkosExtMemory.hpp Outdated Show resolved Hide resolved
@aprokop
Copy link
Contributor Author

aprokop commented May 7, 2024

@dalg24 Done.

Kokkos::deep_copy(exec, view_host, view);
BOOST_TEST(view_host(0).value == -1);
BOOST_TEST(view_host(1).value == -1);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to check using these in constant expressions (if C++20 is available for construct_at)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. Seems like an overkill at the moment.

#include "BoostTest_CUDA_clang_workarounds.hpp"
#include <boost/test/unit_test.hpp>

#define BOOST_TEST_MODULE KokkosExtUninitializedMemoryAlgorithms
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for noticing late but what is the intent here? I don't think that does what we think assuming the intent was to resister a test suite with all unit tests in that source file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? I'm not 100% familiar with what it does, and just followed the way it's done in other KokkosExt testing files. From the documentation it seems that it only needs to be done in one translation module and before inclusion of unit_test.hpp header.

Copy link
Contributor

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer to fix the test suite but looks fine otherwise

@aprokop aprokop merged commit 8073b82 into arborx:master May 8, 2024
1 of 2 checks passed
@aprokop aprokop deleted the construct_at branch May 8, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants