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

Introduce SYCLHostUSMSpace #4268

Merged
merged 4 commits into from
Sep 1, 2021
Merged

Conversation

masterleinad
Copy link
Contributor

We were discussing that there are situations where SYCLHostUSMSpace would have advantages over SYCLSharedUSMSpace and SYCLDeviceUSMSpace (like launch latencies). To allow exploring this some more and to make the backend more similar to the CUDA one, this pull request introduces a new memory space.

Additionally, this pull request copies the relevant backend-specific tests from the CUDA tests.

@masterleinad masterleinad added this to In progress in Kokkos Release 3.5 via automation Aug 27, 2021
@masterleinad masterleinad added this to Awaiting Feedback in Developer: Daniel Arndt Aug 27, 2021
@masterleinad masterleinad moved this from In progress to Awaiting Feedback in Kokkos Release 3.5 Aug 27, 2021
Comment on lines +251 to +257
static_assert(
std::is_same<
Kokkos::Device<Kokkos::HostSpace::execution_space,
Kokkos::Experimental::SYCLSharedUSMSpace>,
Kokkos::Device<Kokkos::HostSpace::execution_space,
Kokkos::Experimental::SYCLSharedUSMSpace>>::value,
"");
Copy link
Member

Choose a reason for hiding this comment

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

I see that this just copied from Cuda

static_assert(std::is_same<Kokkos::Device<Kokkos::HostSpace::execution_space,
Kokkos::CudaUVMSpace>,
Kokkos::Device<Kokkos::HostSpace::execution_space,
Kokkos::CudaUVMSpace>>::value,
"");

but can't help noting it is pointless.

core/unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
core/unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
core/src/Kokkos_SYCL_Space.hpp Show resolved Hide resolved
Copy link
Member

@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.

Almost there

core/unit_test/CMakeLists.txt Show resolved Hide resolved
core/unit_test/sycl/TestSYCL_TeamScratchStreams.cpp Outdated Show resolved Hide resolved
@masterleinad
Copy link
Contributor Author

Retest this please.

@@ -146,6 +183,11 @@ static_assert(Kokkos::Impl::MemorySpaceAccess<
Kokkos::Experimental::SYCLSharedUSMSpace>::assignable,
"");

static_assert(Kokkos::Impl::MemorySpaceAccess<
Kokkos::Experimental::SYCLDeviceUSMSpace,
Kokkos::Experimental::SYCLDeviceUSMSpace>::assignable,
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't these be Kokkos::Experimental::SYCLHostUSMSpace?

@crtrott crtrott merged commit 4bbc380 into kokkos:develop Sep 1, 2021
Kokkos Release 3.5 automation moved this from Awaiting Feedback to Done Sep 1, 2021
@masterleinad masterleinad deleted the sycl_host_space branch September 2, 2021 13:50
joeatodd added a commit to Ruyk/lammps that referenced this pull request Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Developer: Daniel Arndt
Awaiting Feedback
Development

Successfully merging this pull request may close these issues.

None yet

4 participants