Skip to content

Commit

Permalink
Restrict KOKKOS_IMPL_SYCL_DEVICE_GLOBAL_SUPPORTED feature macro detec…
Browse files Browse the repository at this point in the history
…tion to static libraries
  • Loading branch information
masterleinad committed Jan 31, 2023
1 parent 52586ef commit ba4ebc4
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 @@ -526,7 +526,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 ba4ebc4

Please sign in to comment.