From 8c7bbdd949e3e0d9c88c5e7b5f3e46cc23e29960 Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Tue, 10 Jan 2023 16:09:26 -0600 Subject: [PATCH] [CMake][OpenCL] Remove warning for OpenCL wrapper (#13683) * [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. * Added "STATUS" message instead of "WARNING", with more detail * "installation location" -> "library location" Co-authored-by: Egor Churaev 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 ced2da2d17e3..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(WARNING "Build with OpenCL wrapper") + message(STATUS "Enabled runtime search for OpenCL library location") file_glob_append(RUNTIME_OPENCL_SRCS "src/runtime/opencl/opencl_wrapper/opencl_wrapper.cc" )