Skip to content

Commit aedf577

Browse files
liangfutqchen
authored andcommitted
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
1 parent 6503895 commit aedf577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ else(USE_CUDA)
125125
endif(USE_CUDA)
126126

127127
if(USE_OPENCL)
128-
find_package(OPENCL QUIET REQUIRED)
128+
find_package(OpenCL QUIET REQUIRED)
129129
message(STATUS "Build with OpenCL support")
130130
include_directories(${OPENCL_INCLUDE_DIRS})
131131
list(APPEND TVM_RUNTIME_LINKER_LIBS ${OpenCL_LIBRARIES})
@@ -136,7 +136,7 @@ else(USE_OPENCL)
136136
endif(USE_OPENCL)
137137

138138
if(USE_METAL)
139-
find_package(OPENCL QUIET REQUIRED)
139+
find_package(OpenCL QUIET REQUIRED)
140140
message(STATUS "Build with Metal support")
141141
FIND_LIBRARY(METAL_LIB Metal)
142142
FIND_LIBRARY(FOUNDATION_LIB Foundation)

0 commit comments

Comments
 (0)