From a4ba46ac1d8b856d8ad19105922d7b19ab42faf7 Mon Sep 17 00:00:00 2001 From: nscipione Date: Fri, 21 Jun 2024 07:52:13 +0100 Subject: [PATCH] Adding back mkl warnings in compile-time example CMakeLists --- examples/dft/compile_time_dispatching/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/dft/compile_time_dispatching/CMakeLists.txt b/examples/dft/compile_time_dispatching/CMakeLists.txt index 664373ae0..704964af7 100644 --- a/examples/dft/compile_time_dispatching/CMakeLists.txt +++ b/examples/dft/compile_time_dispatching/CMakeLists.txt @@ -23,6 +23,8 @@ if (ENABLE_MKLCPU_BACKEND AND ENABLE_CUFFT_BACKEND) list(APPEND DFT_CT_SOURCES "complex_fwd_usm_mklcpu_cufft") endif() +include(WarningsUtils) + foreach(dft_ct_source ${DFT_CT_SOURCES}) set(EXAMPLE_NAME example_${domain}_${dft_ct_source}) add_executable(${EXAMPLE_NAME} ${dft_ct_source}.cpp) @@ -40,6 +42,7 @@ endif() target_link_libraries(${EXAMPLE_NAME} PUBLIC ${ONEMKL_LIBRARIES_${domain}} ONEMKL::SYCL::SYCL + onemkl_warnings ) # Register example as ctest