Commit c872be8e authored by Christopher Bruns's avatar Christopher Bruns
Browse files

Updated cl.hpp to latest version.

Modified OpenCL include search path for Linux.
parent 2833fb44
......@@ -2,17 +2,19 @@
### OPENCL_INCLUDE_DIR ###
# Try OPENCL_DIR variable before looking elsewhere
find_path(OPENCL_INCLUDE_DIR
NAMES OpenCL/cl.h CL/cl.h
NAMES OpenCL/opencl.h CL/opencl.h
PATHS "$ENV{OPENCL_DIR}"
PATH_SUFFIXES "include"
NO_DEFAULT_PATH
)
# As a last resort, look in default include areas and elsewhere
find_path(OPENCL_INCLUDE_DIR
NAMES OpenCL/cl.h CL/cl.h
NAMES OpenCL/opencl.h CL/opencl.h
PATHS
"$ENV{CUDA_INC_PATH}"
"C:/CUDA"
"/usr/local/cuda"
"/usr"
PATH_SUFFIXES "include"
)
......@@ -36,6 +38,8 @@ find_library(OPENCL_LIBRARY
PATHS
"$ENV{CUDA_LIB_PATH}"
"C:/CUDA"
"/usr/local/cuda"
"/usr"
PATH_SUFFIXES ${path_suffixes} "lib"
)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment