Skip to content

Commit

Permalink
[CMake][OpenCL] Remove warning for OpenCL wrapper (apache#13683)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

Co-authored-by: Egor Churaev <[email protected]>
  • Loading branch information
2 people authored and fzi-peccia committed Mar 27, 2023
1 parent 00e81e9 commit 8c7bbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/OpenCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 8c7bbdd

Please sign in to comment.