Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
c872be8e
Commit
c872be8e
authored
Jun 30, 2010
by
Christopher Bruns
Browse files
Updated cl.hpp to latest version.
Modified OpenCL include search path for Linux.
parent
2833fb44
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
691 additions
and
4085 deletions
+691
-4085
cmake_modules/FindOpenCL.cmake
cmake_modules/FindOpenCL.cmake
+6
-2
platforms/opencl/src/cl.hpp
platforms/opencl/src/cl.hpp
+685
-4083
No files found.
cmake_modules/FindOpenCL.cmake
View file @
c872be8e
...
@@ -2,17 +2,19 @@
...
@@ -2,17 +2,19 @@
### OPENCL_INCLUDE_DIR ###
### OPENCL_INCLUDE_DIR ###
# Try OPENCL_DIR variable before looking elsewhere
# Try OPENCL_DIR variable before looking elsewhere
find_path
(
OPENCL_INCLUDE_DIR
find_path
(
OPENCL_INCLUDE_DIR
NAMES OpenCL/cl.h CL/cl.h
NAMES OpenCL/
open
cl.h CL/
open
cl.h
PATHS
"$ENV{OPENCL_DIR}"
PATHS
"$ENV{OPENCL_DIR}"
PATH_SUFFIXES
"include"
PATH_SUFFIXES
"include"
NO_DEFAULT_PATH
NO_DEFAULT_PATH
)
)
# As a last resort, look in default include areas and elsewhere
# As a last resort, look in default include areas and elsewhere
find_path
(
OPENCL_INCLUDE_DIR
find_path
(
OPENCL_INCLUDE_DIR
NAMES OpenCL/cl.h CL/cl.h
NAMES OpenCL/
open
cl.h CL/
open
cl.h
PATHS
PATHS
"$ENV{CUDA_INC_PATH}"
"$ENV{CUDA_INC_PATH}"
"C:/CUDA"
"C:/CUDA"
"/usr/local/cuda"
"/usr"
PATH_SUFFIXES
"include"
PATH_SUFFIXES
"include"
)
)
...
@@ -36,6 +38,8 @@ find_library(OPENCL_LIBRARY
...
@@ -36,6 +38,8 @@ find_library(OPENCL_LIBRARY
PATHS
PATHS
"$ENV{CUDA_LIB_PATH}"
"$ENV{CUDA_LIB_PATH}"
"C:/CUDA"
"C:/CUDA"
"/usr/local/cuda"
"/usr"
PATH_SUFFIXES
${
path_suffixes
}
"lib"
PATH_SUFFIXES
${
path_suffixes
}
"lib"
)
)
...
...
platforms/opencl/src/cl.hpp
View file @
c872be8e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment