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 support for sunspot/aurora #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions physics/scream_cxx_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ elseif ("${YAKL_ARCH}" STREQUAL "HIP")
set(Kokkos_ENABLE_EXPLICIT_INSTANTIATION FALSE CACHE BOOL "")
set($ENV{Kokkos_ARCH_HIP} ON CACHE BOOL "" FORCE)
set(CMAKE_CXX_STANDARD 14)
elseif ("${YAKL_ARCH}" STREQUAL "SYCL")
set(CMAKE_CXX_EXTENSIONS FALSE CACHE BOOL "OFF")
set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE BOOL "ON")
set(DBUILD_SHARED_LIBS TRUE CACHE BOOL "ON")
#set(Kokkos_ARCH_INTEL_XEHP OFF CACHE BOOL "OFF") # for ATS and AoT compilation (**)
set(Kokkos_ARCH_INTEL_PVC TRUE CACHE BOOL "ON") # for PVC and AoT compilation
set(Kokkos_ENABLE_OPENMP FALSE CACHE BOOL "OFF")
set(Kokkos_ENABLE_SYCL TRUE CACHE BOOL "ON")
set(Kokkos_ENABLE_DEPRECATED_CODE_3 TRUE CACHE BOOL "ON") # (if not building Kokkos Kernels, this can be OFF)
set(EAMXX_ENABLE_GPU TRUE CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_EXPLICIT_INSTANTIATION TRUE CACHE BOOL "")
set(SCREAM_SMALL_KERNELS TRUE CACHE BOOL "" FORCE)
set(CMAKE_CXX_STANDARD 17)
endif()

if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Flang")
Expand Down
13 changes: 13 additions & 0 deletions physics/scream_cxx_p3_shoc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ elseif ("${YAKL_ARCH}" STREQUAL "HIP")
set(Kokkos_ENABLE_EXPLICIT_INSTANTIATION FALSE CACHE BOOL "")
set($ENV{Kokkos_ARCH_HIP} ON CACHE BOOL "" FORCE)
set(CMAKE_CXX_STANDARD 14)
elseif ("${YAKL_ARCH}" STREQUAL "SYCL")
set(CMAKE_CXX_EXTENSIONS FALSE CACHE BOOL "OFF")
set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE BOOL "ON")
set(DBUILD_SHARED_LIBS TRUE CACHE BOOL "ON")
#set(Kokkos_ARCH_INTEL_XEHP OFF CACHE BOOL "OFF") # for ATS and AoT compilation (**)
set(Kokkos_ARCH_INTEL_PVC TRUE CACHE BOOL "ON") # for PVC and AoT compilation
set(Kokkos_ENABLE_OPENMP FALSE CACHE BOOL "OFF")
set(Kokkos_ENABLE_SYCL TRUE CACHE BOOL "ON")
set(Kokkos_ENABLE_DEPRECATED_CODE_3 TRUE CACHE BOOL "ON") # (if not building Kokkos Kernels, this can be OFF)
set(EAMXX_ENABLE_GPU TRUE CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_EXPLICIT_INSTANTIATION TRUE CACHE BOOL "")
set(SCREAM_SMALL_KERNELS TRUE CACHE BOOL "" FORCE)
set(CMAKE_CXX_STANDARD 17)
endif()

if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Flang")
Expand Down