From aedf57730d9b634a91be4142789f5c60e5776648 Mon Sep 17 00:00:00 2001 From: Liangfu Chen <chenclf@gmail.com> Date: Thu, 12 Oct 2017 00:40:58 +0800 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e6e0a447..f42705ae7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- GitLab