Skip to content

Commit

Permalink
using is_dpcpp instead of (NOT STREQUAL hipsycl)
Browse files Browse the repository at this point in the history
  • Loading branch information
egrabovskaya committed Jul 15, 2024
1 parent 5890883 commit ff92b25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/rng/device/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ foreach(rng_device_source ${RNG_DEVICE_SOURCES})
ONEMKL::SYCL::SYCL
)

if(NOT ${ONEMKL_SYCL_IMPLEMENTATION} STREQUAL "hipsycl")
if(is_dpcpp)
target_link_options(example_${domain}_${rng_device_source} PUBLIC -fsycl -fsycl-device-code-split=per_kernel)
endif()

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/rng/device/moments/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ else()
target_link_libraries(rng_device_moments_ct PUBLIC ONEMKL::SYCL::SYCL)
endif()

if(NOT ${ONEMKL_SYCL_IMPLEMENTATION} STREQUAL "hipsycl")
if(is_dpcpp)
target_link_options(rng_device_moments_ct PUBLIC -fsycl -fsycl-device-code-split=per_kernel)
endif()
2 changes: 1 addition & 1 deletion tests/unit_tests/rng/device/service/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ else()
target_link_libraries(rng_device_service_ct PUBLIC ONEMKL::SYCL::SYCL)
endif()

if(NOT ${ONEMKL_SYCL_IMPLEMENTATION} STREQUAL "hipsycl")
if(is_dpcpp)
target_link_options(rng_device_service_ct PUBLIC -fsycl -fsycl-device-code-split=per_kernel)
endif()

0 comments on commit ff92b25

Please sign in to comment.