Commit aedf5773 by Liangfu Chen Committed by Tianqi Chen

Case-sensitive CMake module for OpenCL (#537)

* Case-sensitive CMake module for OpenCL

Case-sensitive CMake module for OpenCL, see https://github.com/Kitware/CMake/blob/master/Modules/FindOpenCL.cmake .

* fix in case Metal locates OpenCL as well

fix in case Metal locates OpenCL as well
parent 65038950
......@@ -125,7 +125,7 @@ else(USE_CUDA)
endif(USE_CUDA)
if(USE_OPENCL)
find_package(OPENCL QUIET REQUIRED)
find_package(OpenCL QUIET REQUIRED)
message(STATUS "Build with OpenCL support")
include_directories(${OPENCL_INCLUDE_DIRS})
list(APPEND TVM_RUNTIME_LINKER_LIBS ${OpenCL_LIBRARIES})
......@@ -136,7 +136,7 @@ else(USE_OPENCL)
endif(USE_OPENCL)
if(USE_METAL)
find_package(OPENCL QUIET REQUIRED)
find_package(OpenCL QUIET REQUIRED)
message(STATUS "Build with Metal support")
FIND_LIBRARY(METAL_LIB Metal)
FIND_LIBRARY(FOUNDATION_LIB Foundation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment