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
e68471ec
Commit
e68471ec
authored
May 04, 2011
by
Peter Eastman
Browse files
Use the preinstalled cl.hpp if it's available
parent
f6ae2e9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
platforms/opencl/src/OpenCLContext.h
platforms/opencl/src/OpenCLContext.h
+16
-1
No files found.
platforms/opencl/src/OpenCLContext.h
View file @
e68471ec
...
@@ -36,7 +36,22 @@
...
@@ -36,7 +36,22 @@
// Prevent Windows from defining macros that interfere with other code.
// Prevent Windows from defining macros that interfere with other code.
#define NOMINMAX
#define NOMINMAX
#endif
#endif
#include <cl.hpp>
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/opencl.h>
#else
#include <CL/opencl.h>
#endif
#ifdef CL_VERSION_1_1
// OpenCL C++ bindings are included with OpenCL 1.1
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.hpp>
#endif
#else
// OpenCL C++ bindings are not included with OpenCL 1.0 so use a local copy.
#include <cl.hpp>
#endif
#include "openmm/internal/windowsExport.h"
#include "openmm/internal/windowsExport.h"
#include "OpenCLPlatform.h"
#include "OpenCLPlatform.h"
...
...
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