Code:
# Find the library
find_library(OPENCL_LIBRARY OpenCL
PATHS /lib${_OPENCL_LIB_DIR_SUFFIX}
${_OPENCL_LIB_OPTS}
${_OPENCL_ROOT_OPTS}
)
message("OpenCL Library: ${OPENCL_LIBRARY}")
message("Path: ${CMAKE_FIND_ROOT_PATH}")
message("Library suffix: ${_OPENCL_LIB_DIR_SUFFIX}")
message("OPENCL_LIB_OPTS: ${_OPENCL_LIB_OPTS}")
message("OPENCL_ROOT_OPTS: ${_OPENCL_ROOT_OPTS}")
Code:
-- OpenCL: Searching for NVIDIA CUDA SDK
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
OpenCL Library: /opt/cuda/lib64/libOpenCL.so
Path: /opt/cuda
Library suffix: 64
OPENCL_LIB_OPTS:
OPENCL_ROOT_OPTS: ONLY_CMAKE_FIND_ROOT_PATH;NO_DEFAULT_PATH
-- Found OpenCL: /opt/cuda/include (found version "1.1")
In the logs you posted before I see
It means CUDA_PATH variable is not visible to cmake. Is it still the case? Delete the build directory or better clone the repository from scratch and run make again.
Code:
-- OpenCL: Searching in custom location
No. It was the case before as you advised to set OPENCL_ROOT (a few days ago).
But the defined path doesn't make a difference... the error is the same.
With set CUDA_PATH he is searching for the nvidia cuda SDK - and her found the CL Versions as you could read in my logs...
the problem is described in this post above, please take a closer look:
https://bitcointalk.org/index.php?topic=693118.msg8016537#msg8016537
...and the error stays the same:
Code:
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find OpenCL (missing: OPENCL_LIBRARY) (found version "1.1")
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
FindOpenCL.cmake:159 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:13 (find_package)