-
Notifications
You must be signed in to change notification settings - Fork 6
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 sycl backend #771
base: main
Are you sure you want to change the base?
add sycl backend #771
Conversation
#elif defined(KOKKOS_ENABLE_SYCL) | ||
else if constexpr (std::is_same_v<MemorySpace, Kokkos::SYCLDeviceUSMSpace>) { | ||
return m_device_on_host; | ||
} | ||
#endif | ||
else { | ||
static_assert(!std::is_same_v<MemorySpace, MemorySpace>); |
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.
Is this line meaningful? @tpadioleau
static_assert(!std::is_same_v<MemorySpace, MemorySpace>);
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.
Should be, ideally i would like to put false but the compiler will then stop compiling even if the branch is not chosen
No need to address the last point. I will do it in an other PR. |
Good. I will rebase on top of that |
closes #73 |
This PR aims at adding a SYCL backend to DDC.
KOKKOS_ENABLE_CUDA
andKOKKOS_ENABLE_HIP
instead of__CUDACC__
and__HIPCC__
Typical build command would be as follows.