diff --git a/examples/rng/device/CMakeLists.txt b/examples/rng/device/CMakeLists.txt index 1a19d4447..1b6ecf2dd 100644 --- a/examples/rng/device/CMakeLists.txt +++ b/examples/rng/device/CMakeLists.txt @@ -59,8 +59,7 @@ foreach(rng_device_source ${RNG_DEVICE_SOURCES}) ONEMKL::SYCL::SYCL ) - if(is_dpcpp) - message("is_dpcpp in examples/rng/device") + if(NOT ${ONEMKL_SYCL_IMPLEMENTATION} STREQUAL "hipsycl") target_link_options(example_${domain}_${rng_device_source} PUBLIC -fsycl -fsycl-device-code-split=per_kernel) endif() diff --git a/tests/unit_tests/rng/device/moments/CMakeLists.txt b/tests/unit_tests/rng/device/moments/CMakeLists.txt index 5dfcfb8ba..2da8033bf 100644 --- a/tests/unit_tests/rng/device/moments/CMakeLists.txt +++ b/tests/unit_tests/rng/device/moments/CMakeLists.txt @@ -35,7 +35,6 @@ else() target_link_libraries(rng_device_moments_ct PUBLIC ONEMKL::SYCL::SYCL) endif() -if(is_dpcpp) - message("is_dpcpp in unit_tests/moments") +if(NOT ${ONEMKL_SYCL_IMPLEMENTATION} STREQUAL "hipsycl") target_link_options(rng_device_moments_ct PUBLIC -fsycl -fsycl-device-code-split=per_kernel) endif() diff --git a/tests/unit_tests/rng/device/service/CMakeLists.txt b/tests/unit_tests/rng/device/service/CMakeLists.txt index e4580100b..03d960e1a 100644 --- a/tests/unit_tests/rng/device/service/CMakeLists.txt +++ b/tests/unit_tests/rng/device/service/CMakeLists.txt @@ -35,7 +35,6 @@ else() target_link_libraries(rng_device_service_ct PUBLIC ONEMKL::SYCL::SYCL) endif() -if(is_dpcpp) - message("is_dpcpp in unit_tests/service") +if(NOT ${ONEMKL_SYCL_IMPLEMENTATION} STREQUAL "hipsycl") target_link_options(rng_device_service_ct PUBLIC -fsycl -fsycl-device-code-split=per_kernel) endif()