From 13eec505d2f0f031a42e6a014a2559bb3ccd1d45 Mon Sep 17 00:00:00 2001 From: "Grabovskaya, Ekaterina" Date: Wed, 17 Jul 2024 02:44:58 -0700 Subject: [PATCH] Revert "using is_dpcpp instead of (NOT STREQUAL hipsycl)" This reverts commit ff92b2527e546e29381abfbf1ba2e3c67d81d3db. --- examples/rng/device/CMakeLists.txt | 3 +-- tests/unit_tests/rng/device/moments/CMakeLists.txt | 3 +-- tests/unit_tests/rng/device/service/CMakeLists.txt | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) 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()