From 64138c8bbd90d6c1c68c336ceb462cbfff56fb73 Mon Sep 17 00:00:00 2001 From: Eldritch Cheese Date: Tue, 3 Jan 2023 10:29:53 -0600 Subject: [PATCH 1/3] [CMake][OpenCL] Remove warning for OpenCL wrapper Previously, setting `set(USE_OPENCL ON)` would result in a warning, stating that the runtime wrapper for OpenCL would be used. Since this is the desired behavior when OpenCL support is enabled, and is not something that a user should fix, this commit removes the warning. --- cmake/modules/OpenCL.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/modules/OpenCL.cmake b/cmake/modules/OpenCL.cmake index ced2da2d17e3..d2fc1847a2e5 100644 --- a/cmake/modules/OpenCL.cmake +++ b/cmake/modules/OpenCL.cmake @@ -43,7 +43,6 @@ if(USE_OPENCL) tvm_file_glob(GLOB RUNTIME_OPENCL_SRCS src/runtime/opencl/*.cc) if(${USE_OPENCL} MATCHES ${IS_TRUE_PATTERN}) - message(WARNING "Build with OpenCL wrapper") file_glob_append(RUNTIME_OPENCL_SRCS "src/runtime/opencl/opencl_wrapper/opencl_wrapper.cc" ) From de55ad95fb256a38145ed8031d7506fcb55a55ed Mon Sep 17 00:00:00 2001 From: Eldritch Cheese Date: Tue, 10 Jan 2023 08:58:30 -0600 Subject: [PATCH 2/3] Added "STATUS" message instead of "WARNING", with more detail --- cmake/modules/OpenCL.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/OpenCL.cmake b/cmake/modules/OpenCL.cmake index d2fc1847a2e5..0940a6d9d153 100644 --- a/cmake/modules/OpenCL.cmake +++ b/cmake/modules/OpenCL.cmake @@ -43,6 +43,7 @@ if(USE_OPENCL) tvm_file_glob(GLOB RUNTIME_OPENCL_SRCS src/runtime/opencl/*.cc) if(${USE_OPENCL} MATCHES ${IS_TRUE_PATTERN}) + message(STATUS "Enabled runtime search for OpenCL installation location") file_glob_append(RUNTIME_OPENCL_SRCS "src/runtime/opencl/opencl_wrapper/opencl_wrapper.cc" ) From 862764f456c5049b77be88b5ef9d29c219f4d52a Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Tue, 10 Jan 2023 09:52:41 -0600 Subject: [PATCH 3/3] "installation location" -> "library location" Co-authored-by: Egor Churaev --- cmake/modules/OpenCL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/OpenCL.cmake b/cmake/modules/OpenCL.cmake index 0940a6d9d153..53199f19cb25 100644 --- a/cmake/modules/OpenCL.cmake +++ b/cmake/modules/OpenCL.cmake @@ -43,7 +43,7 @@ if(USE_OPENCL) tvm_file_glob(GLOB RUNTIME_OPENCL_SRCS src/runtime/opencl/*.cc) if(${USE_OPENCL} MATCHES ${IS_TRUE_PATTERN}) - message(STATUS "Enabled runtime search for OpenCL installation location") + message(STATUS "Enabled runtime search for OpenCL library location") file_glob_append(RUNTIME_OPENCL_SRCS "src/runtime/opencl/opencl_wrapper/opencl_wrapper.cc" )