Skip to content

Commit

Permalink
Case-sensitive CMake module for OpenCL (#537)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
liangfu authored and tqchen committed Oct 11, 2017
1 parent 6503895 commit aedf577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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)
Expand Down

0 comments on commit aedf577

Please sign in to comment.