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
6299521b
"vscode:/vscode.git/clone" did not exist on "ea4873f021c1c73e458cc5027fc5d388cb76cc33"
Commit
6299521b
authored
Jan 31, 2012
by
Peter Eastman
Browse files
Fixed bug when RPMDIntegrator uses more than 32 beads
parent
f30ddfa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/rpmd/platforms/opencl/src/OpenCLRpmdKernels.cpp
plugins/rpmd/platforms/opencl/src/OpenCLRpmdKernels.cpp
+1
-1
No files found.
plugins/rpmd/platforms/opencl/src/OpenCLRpmdKernels.cpp
View file @
6299521b
...
@@ -108,7 +108,6 @@ void OpenCLIntegrateRPMDStepKernel::execute(ContextImpl& context, const RPMDInte
...
@@ -108,7 +108,6 @@ void OpenCLIntegrateRPMDStepKernel::execute(ContextImpl& context, const RPMDInte
pileKernel
.
setArg
(
1
,
2
*
workgroupSize
*
sizeof
(
mm_float4
),
NULL
);
pileKernel
.
setArg
(
1
,
2
*
workgroupSize
*
sizeof
(
mm_float4
),
NULL
);
pileKernel
.
setArg
(
2
,
2
*
workgroupSize
*
sizeof
(
mm_float4
),
NULL
);
pileKernel
.
setArg
(
2
,
2
*
workgroupSize
*
sizeof
(
mm_float4
),
NULL
);
pileKernel
.
setArg
(
3
,
numCopies
*
sizeof
(
mm_float2
),
NULL
);
pileKernel
.
setArg
(
3
,
numCopies
*
sizeof
(
mm_float2
),
NULL
);
pileKernel
.
setArg
<
cl
::
Buffer
>
(
4
,
integration
.
getRandom
().
getDeviceBuffer
());
stepKernel
.
setArg
<
cl
::
Buffer
>
(
0
,
positions
->
getDeviceBuffer
());
stepKernel
.
setArg
<
cl
::
Buffer
>
(
0
,
positions
->
getDeviceBuffer
());
stepKernel
.
setArg
<
cl
::
Buffer
>
(
1
,
velocities
->
getDeviceBuffer
());
stepKernel
.
setArg
<
cl
::
Buffer
>
(
1
,
velocities
->
getDeviceBuffer
());
stepKernel
.
setArg
<
cl
::
Buffer
>
(
2
,
forces
->
getDeviceBuffer
());
stepKernel
.
setArg
<
cl
::
Buffer
>
(
2
,
forces
->
getDeviceBuffer
());
...
@@ -137,6 +136,7 @@ void OpenCLIntegrateRPMDStepKernel::execute(ContextImpl& context, const RPMDInte
...
@@ -137,6 +136,7 @@ void OpenCLIntegrateRPMDStepKernel::execute(ContextImpl& context, const RPMDInte
// Apply the PILE-L thermostat.
// Apply the PILE-L thermostat.
const
double
dt
=
integrator
.
getStepSize
();
const
double
dt
=
integrator
.
getStepSize
();
pileKernel
.
setArg
<
cl
::
Buffer
>
(
4
,
integration
.
getRandom
().
getDeviceBuffer
());
pileKernel
.
setArg
<
cl_uint
>
(
5
,
integration
.
prepareRandomNumbers
(
numParticles
*
numCopies
));
pileKernel
.
setArg
<
cl_uint
>
(
5
,
integration
.
prepareRandomNumbers
(
numParticles
*
numCopies
));
pileKernel
.
setArg
<
cl_float
>
(
6
,
dt
);
pileKernel
.
setArg
<
cl_float
>
(
6
,
dt
);
pileKernel
.
setArg
<
cl_float
>
(
7
,
integrator
.
getTemperature
()
*
BOLTZ
);
pileKernel
.
setArg
<
cl_float
>
(
7
,
integrator
.
getTemperature
()
*
BOLTZ
);
...
...
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