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
d4d5e5c8
Commit
d4d5e5c8
authored
Sep 29, 2009
by
Peter Eastman
Browse files
Bug fix
parent
ebbc40e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
platforms/opencl/src/OpenCLIntegrationUtilities.h
platforms/opencl/src/OpenCLIntegrationUtilities.h
+1
-1
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+2
-2
platforms/opencl/tests/TestOpenCLRandom.cpp
platforms/opencl/tests/TestOpenCLRandom.cpp
+1
-1
No files found.
platforms/opencl/src/OpenCLIntegrationUtilities.h
View file @
d4d5e5c8
...
...
@@ -27,7 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* -------------------------------------------------------------------------- */
#include "
O
pen
MM
/System.h"
#include "
o
pen
mm
/System.h"
#include "OpenCLContext.h"
namespace
OpenMM
{
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
d4d5e5c8
...
...
@@ -949,7 +949,7 @@ void OpenCLIntegrateLangevinStepKernel::execute(ContextImpl& context, const Lang
kernel1
.
setArg
<
cl
::
Buffer
>
(
7
,
xVector
->
getDeviceBuffer
());
kernel1
.
setArg
<
cl
::
Buffer
>
(
8
,
vVector
->
getDeviceBuffer
());
kernel1
.
setArg
<
cl
::
Buffer
>
(
9
,
integration
.
getRandom
().
getDeviceBuffer
());
kernel1
.
setArg
<
cl_uint
>
(
10
,
integration
.
prepareRandomNumbers
(
2
*
n
umAtoms
));
kernel1
.
setArg
<
cl_uint
>
(
10
,
integration
.
prepareRandomNumbers
(
2
*
cl
.
getPaddedN
umAtoms
()
));
cl
.
executeKernel
(
kernel1
,
numAtoms
);
// Apply constraints.
...
...
@@ -966,7 +966,7 @@ void OpenCLIntegrateLangevinStepKernel::execute(ContextImpl& context, const Lang
kernel2
.
setArg
<
cl
::
Buffer
>
(
5
,
xVector
->
getDeviceBuffer
());
kernel2
.
setArg
<
cl
::
Buffer
>
(
6
,
vVector
->
getDeviceBuffer
());
kernel2
.
setArg
<
cl
::
Buffer
>
(
7
,
integration
.
getRandom
().
getDeviceBuffer
());
kernel2
.
setArg
<
cl_uint
>
(
8
,
integration
.
prepareRandomNumbers
(
2
*
n
umAtoms
));
kernel2
.
setArg
<
cl_uint
>
(
8
,
integration
.
prepareRandomNumbers
(
2
*
cl
.
getPaddedN
umAtoms
()
));
cl
.
executeKernel
(
kernel2
,
numAtoms
);
// Reapply constraints.
...
...
platforms/opencl/tests/TestOpenCLRandom.cpp
View file @
d4d5e5c8
...
...
@@ -37,7 +37,7 @@
#include "../src/OpenCLArray.h"
#include "../src/OpenCLContext.h"
#include "../src/OpenCLIntegrationUtilities.h"
#include "
O
pen
MM
/System.h"
#include "
o
pen
mm
/System.h"
#include <iostream>
using
namespace
OpenMM
;
...
...
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