mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 20:53:27 +00:00
fe56697893
squashed: find/msgpack.cmake - merge collision fix, trivial Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
26 lines
761 B
CMake
26 lines
761 B
CMake
# TODO: enable by default
|
|
if(0)
|
|
option(ENABLE_OPENCL "Enable OpenCL support" ${ENABLE_LIBRARIES})
|
|
endif()
|
|
|
|
if(NOT ENABLE_OPENCL)
|
|
return()
|
|
endif()
|
|
|
|
# Intel OpenCl driver: sudo apt install intel-opencl-icd
|
|
# @sa https://github.com/intel/compute-runtime/releases
|
|
|
|
# OpenCL applications should link with ICD loader
|
|
# sudo apt install opencl-headers ocl-icd-libopencl1
|
|
# sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0 /usr/lib/libOpenCL.so
|
|
# TODO: add https://github.com/OCL-dev/ocl-icd as submodule instead
|
|
|
|
find_package(OpenCL)
|
|
if(OpenCL_FOUND)
|
|
set(USE_OPENCL 1)
|
|
else()
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't enable OpenCL support")
|
|
endif()
|
|
|
|
message(STATUS "Using opencl=${USE_OPENCL}: ${OpenCL_INCLUDE_DIRS} : ${OpenCL_LIBRARIES}")
|