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
5fb78b59
Commit
5fb78b59
authored
Oct 23, 2012
by
Peter Eastman
Browse files
Updated to newer version of OpenCL C++ bindings
parent
967347c4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13845 additions
and
4423 deletions
+13845
-4423
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+3
-1
platforms/opencl/src/cl.hpp
platforms/opencl/src/cl.hpp
+13842
-4422
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
5fb78b59
...
...
@@ -6,7 +6,7 @@
* Biological Structures at Stanford, funded under the NIH Roadmap for *
* Medical Research, grant U54 GM072970. See https://simtk.org. *
* *
* Portions copyright (c) 2009 Stanford University and the Authors.
*
* Portions copyright (c) 2009
-2012
Stanford University and the Authors. *
* Authors: Peter Eastman *
* Contributors: *
* *
...
...
@@ -114,6 +114,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
// This attribute does not ensure that all queries are supported by the runtime (it may be an older runtime,
// or the CPU device) so still have to check for errors.
try
{
#ifdef CL_DEVICE_SIMD_WIDTH_AMD
processingElementsPerComputeUnit
=
// AMD GPUs either have a single VLIW SIMD or multiple scalar SIMDs.
// The SIMD width is the number of threads the SIMD executes per cycle.
...
...
@@ -127,6 +128,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
// Just in case any of the queries return 0.
if
(
processingElementsPerComputeUnit
<=
0
)
processingElementsPerComputeUnit
=
1
;
#endif
}
catch
(
cl
::
Error
err
)
{
// Runtime does not support the queries so use default.
...
...
platforms/opencl/src/cl.hpp
View file @
5fb78b59
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