Skip to content

Commit d6dcb18

Browse files
author
Kent Knox
committed
Merge pull request #48 from sschaetz/develop
fixed FindOpenCL.cmake file to find OpenCL on Ubuntu 14.04 with CUDA 6.0
2 parents b60d668 + 121fefb commit d6dcb18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FindOpenCL.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ find_path(OPENCL_INCLUDE_DIRS
5656
PATHS
5757
/usr/include
5858
/usr/local/include
59+
/usr/local/cuda/include
60+
/opt/cuda/include
5961
DOC "OpenCL header file path"
6062
)
6163
mark_as_advanced( OPENCL_INCLUDE_DIRS )
@@ -70,6 +72,8 @@ if( LIB64 )
7072
${OPENCL_ROOT}/lib
7173
$ENV{AMDAPPSDKROOT}/lib
7274
$ENV{CUDA_PATH}/lib
75+
/usr/local/cuda/lib
76+
/opt/cuda/lib
7377
DOC "OpenCL dynamic library path"
7478
PATH_SUFFIXES x86_64 x64
7579
PATHS
@@ -82,6 +86,8 @@ else( )
8286
${OPENCL_ROOT}/lib
8387
$ENV{AMDAPPSDKROOT}/lib
8488
$ENV{CUDA_PATH}/lib
89+
/usr/local/cuda/lib
90+
/opt/cuda/lib
8591
DOC "OpenCL dynamic library path"
8692
PATH_SUFFIXES x86 Win32
8793
PATHS

0 commit comments

Comments
 (0)