From 2980bf0502ec3c84933f5ad8d899616a2d498de3 Mon Sep 17 00:00:00 2001 From: Liangfu Chen Date: Wed, 11 Oct 2017 15:46:31 +0800 Subject: [PATCH 1/2] Case-sensitive CMake module for OpenCL Case-sensitive CMake module for OpenCL, see https://github.com/Kitware/CMake/blob/master/Modules/FindOpenCL.cmake . --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e6e0a44761b..f1e9248e3902 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}) From 8bd1eeeb6b2d98eb7dff9ca4f95344061a318197 Mon Sep 17 00:00:00 2001 From: Liangfu Chen Date: Wed, 11 Oct 2017 15:50:16 +0800 Subject: [PATCH 2/2] fix in case Metal locates OpenCL as well fix in case Metal locates OpenCL as well --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1e9248e3902..f42705ae7fda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)