-
Notifications
You must be signed in to change notification settings - Fork 421
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
Test Legion use case #5206
Test Legion use case #5206
Conversation
beef11e
to
e36f8e5
Compare
The actual |
I ended up reordering execution spaces so that host spaces are initialized first since I didn't find a good way to test kokkos/core/src/Cuda/Kokkos_Cuda_Instance.cpp Lines 360 to 367 in d19aab9
|
3ca7967
to
bbe7bff
Compare
bbe7bff
to
f94cf48
Compare
Only the SYCL build is timing out in |
EXPECT_TRUE(Kokkos::Experimental::OpenMPTarget::impl_is_initialized()); | ||
#endif | ||
#ifdef KOKKOS_ENABLE_HIP | ||
EXPECT_FALSE(Kokkos::Experimental::HIP::impl_is_initialized()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECT_FALSE(Kokkos::Experimental::HIP::impl_is_initialized()); | |
EXPECT_FALSE(Kokkos::HIP::impl_is_initialized()); |
#endif | ||
#ifdef KOKKOS_ENABLE_HIP | ||
EXPECT_FALSE(Kokkos::Experimental::HIP::impl_is_initialized()); | ||
Kokkos::Experimental::HIP::impl_initialize(kokkos_init_settings); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kokkos::Experimental::HIP::impl_initialize(kokkos_init_settings); | |
Kokkos::HIP::impl_initialize(kokkos_init_settings); |
#ifdef KOKKOS_ENABLE_HIP | ||
EXPECT_FALSE(Kokkos::Experimental::HIP::impl_is_initialized()); | ||
Kokkos::Experimental::HIP::impl_initialize(kokkos_init_settings); | ||
EXPECT_TRUE(Kokkos::Experimental::HIP::impl_is_initialized()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECT_TRUE(Kokkos::Experimental::HIP::impl_is_initialized()); | |
EXPECT_TRUE(Kokkos::HIP::impl_is_initialized()); |
EXPECT_FALSE(Kokkos::Experimental::OpenMPTarget::impl_is_initialized()); | ||
#endif | ||
#ifdef KOKKOS_ENABLE_HIP | ||
Kokkos::Experimental::HIP::impl_finalize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kokkos::Experimental::HIP::impl_finalize(); | |
Kokkos::HIP::impl_finalize(); |
#endif | ||
#ifdef KOKKOS_ENABLE_HIP | ||
Kokkos::Experimental::HIP::impl_finalize(); | ||
EXPECT_FALSE(Kokkos::Experimental::HIP::impl_is_initialized()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECT_FALSE(Kokkos::Experimental::HIP::impl_is_initialized()); | |
EXPECT_FALSE(Kokkos::HIP::impl_is_initialized()); |
What I wanted to achieve with this pull request (mostly) was that the way we promised
is valid. On the way, I discovered that every backend implements |
Maybe we should just use the aliases i.e. call: if(!is_same_v<Serial, DefaultHostExecutionSpace>)
Serial::impl_initialize();
if(!is_same_v<DefaultExecutionSpace, DefaultHostExecutionSpace>)
DefaultHostExecutionSpace::impl_initialize();
DefaultExecutionSpace::impl_initialize(...); Same for finalize. Then add some actual test in between. View<int*> data("d",1000);
deep_copy(d,1);
int result;
Kokkos::parallel_reduce("TestRed", d.extent(0), KOKKOS_LAMBDA(int i, int& sum) {
sum += d(i);
},result);
EXPECT_EQ(result, d.extent(0)); Don't use the |
95b331d
to
902bf92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would approve with the changes suggested in masterleinad#9
I just realize the compile test is not being removed any more. Is it intentional? I am fine with the removal. |
Addressing #5144 (comment). I don't feel strongly about deleting the other test otr not.