From 295aa21cd08ce053299aa088fa246fb5cf06b89d Mon Sep 17 00:00:00 2001 From: Teja Alaghari Date: Thu, 4 Jan 2024 11:57:15 +0800 Subject: [PATCH] Changed dpct_add_mkl_to_target to dpct_helper_add_mkl_to_target --- clang/test/dpct/cmake_migration/case_012/expected.txt | 4 ++-- .../tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml | 2 +- clang/tools/dpct/cmake/dpct.cmake | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/dpct/cmake_migration/case_012/expected.txt b/clang/test/dpct/cmake_migration/case_012/expected.txt index 49e3c3669e0b..02727138c561 100644 --- a/clang/test/dpct/cmake_migration/case_012/expected.txt +++ b/clang/test/dpct/cmake_migration/case_012/expected.txt @@ -1,4 +1,4 @@ -dpct_add_mkl_to_target(culib) -dpct_add_mkl_to_target( +dpct_helper_add_mkl_to_target(culib) +dpct_helper_add_mkl_to_target( culib ) diff --git a/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml b/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml index c48b4587bc34..f987cea54166 100644 --- a/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml +++ b/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml @@ -270,5 +270,5 @@ Priority: Fallback CmakeSyntax: cuda_add_cufft_to_target In: cuda_add_cufft_to_target(${target}) - Out: dpct_add_mkl_to_target(${target}) + Out: dpct_helper_add_mkl_to_target(${target}) diff --git a/clang/tools/dpct/cmake/dpct.cmake b/clang/tools/dpct/cmake/dpct.cmake index 5c2eb588a5c2..ec0bcfa39451 100644 --- a/clang/tools/dpct/cmake/dpct.cmake +++ b/clang/tools/dpct/cmake/dpct.cmake @@ -80,7 +80,7 @@ message("dpct.cmake: SYCL_HAS_FP16 is set true by default.") set(SYCL_HAS_FP16 TRUE) # Link MKL library to target -macro(DPCT_ADD_MKL_TO_TARGET target) +macro(DPCT_HELPER_ADD_MKL_TO_TARGET target) if(WIN32) target_link_libraries(${target} mkl_sycl_dll.lib mkl_intel_ilp64_dll.lib mkl_tbb_thread_dll.lib mkl_core_dll.lib OpenCL.lib) elseif(UNIX AND NOT APPLE)