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 sycl backend #771

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

add sycl backend #771

wants to merge 1 commit into from

Conversation

yasahi-hpc
Copy link
Member

This PR aims at adding a SYCL backend to DDC.

  • Build and Tests of DDC-core on PVC
  • Build and Tests of DDC-splines on PVC
  • Add a SYCL CI for compilation
  • Use KOKKOS_ENABLE_CUDA and KOKKOS_ENABLE_HIP instead of __CUDACC__ and __HIPCC__

Typical build command would be as follows.

cmake -B build -DCMAKE_CXX_COMPILER=icpx \
                           -DDDC_BUILD_KERNELS_FFT=OFF \
                           -DDDC_BUILD_KERNELS_SPLINES=ON \
                           -DDDC_BUILD_PDI_WRAPPER=OFF \
                           -DKokkos_ENABLE_SYCL=ON \
                           -DKokkos_ARCH_INTEL_PVC=ON \
                           -DKokkos_ENABLE_SYCL_RELOCATABLE_DEVICE_CODE=ON 

@yasahi-hpc yasahi-hpc added enhancement New feature or request core labels Feb 10, 2025
@yasahi-hpc yasahi-hpc marked this pull request as draft February 10, 2025 15:16
#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>);
Copy link
Member Author

@yasahi-hpc yasahi-hpc Feb 10, 2025

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>);

Copy link
Member

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

@tpadioleau
Copy link
Member

This PR aims at adding a SYCL backend to DDC.

  • Build and Tests of DDC-core on PVC
  • Build and Tests of DDC-splines on PVC
  • Add a SYCL CI for compilation
  • Use KOKKOS_ENABLE_CUDA and KOKKOS_ENABLE_HIP instead of __CUDACC__ and __HIPCC__

No need to address the last point. I will do it in an other PR.

@yasahi-hpc
Copy link
Member Author

This PR aims at adding a SYCL backend to DDC.

  • Build and Tests of DDC-core on PVC
  • Build and Tests of DDC-splines on PVC
  • Add a SYCL CI for compilation
  • Use KOKKOS_ENABLE_CUDA and KOKKOS_ENABLE_HIP instead of __CUDACC__ and __HIPCC__

No need to address the last point. I will do it in an other PR.

Good. I will rebase on top of that

@tpadioleau
Copy link
Member

closes #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants