Skip to content

Commit

Permalink
Merge pull request #5833 from masterleinad/sycl_device_global_static_…
Browse files Browse the repository at this point in the history
…only

Restrict KOKKOS_IMPL_SYCL_DEVICE_GLOBAL_SUPPORTED feature macro detection to static libraries
  • Loading branch information
dalg24 committed Feb 2, 2023
2 parents ccbfb00 + ba4ebc4 commit 41166e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/kokkos_arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ ENDIF()
# Check support for device_global variables
# FIXME_SYCL Once the feature test macro SYCL_EXT_ONEAPI_DEVICE_GLOBAL is
# available, use that instead.
IF(KOKKOS_ENABLE_SYCL)
IF(KOKKOS_ENABLE_SYCL AND NOT BUILD_SHARED_LIBS)
INCLUDE(CheckCXXSourceCompiles)
STRING(REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${KOKKOS_COMPILE_OPTIONS}")
CHECK_CXX_SOURCE_COMPILES("
Expand Down

0 comments on commit 41166e1

Please sign in to comment.