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
952757a8
Commit
952757a8
authored
Jul 18, 2011
by
Peter Eastman
Browse files
Reduced number of force buffers on AMD
parent
95b02c8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/OpenCLNonbondedUtilities.cpp
platforms/opencl/src/OpenCLNonbondedUtilities.cpp
+1
-1
No files found.
platforms/opencl/src/OpenCLNonbondedUtilities.cpp
View file @
952757a8
...
@@ -55,7 +55,7 @@ OpenCLNonbondedUtilities::OpenCLNonbondedUtilities(OpenCLContext& context) : con
...
@@ -55,7 +55,7 @@ OpenCLNonbondedUtilities::OpenCLNonbondedUtilities(OpenCLContext& context) : con
else
{
else
{
numForceThreadBlocks
=
context
.
getNumThreadBlocks
();
numForceThreadBlocks
=
context
.
getNumThreadBlocks
();
forceThreadBlockSize
=
OpenCLContext
::
ThreadBlockSize
;
forceThreadBlockSize
=
OpenCLContext
::
ThreadBlockSize
;
numForceBuffers
=
numForceThreadBlocks
*
forceThreadBlockSize
/
OpenCLContext
::
TileSize
;
numForceBuffers
=
numForceThreadBlocks
;
if
(
numForceBuffers
>=
context
.
getNumAtomBlocks
())
{
if
(
numForceBuffers
>=
context
.
getNumAtomBlocks
())
{
// For small systems, it is more efficient to have one force buffer per block of 32 atoms instead of one per warp.
// For small systems, it is more efficient to have one force buffer per block of 32 atoms instead of one per warp.
...
...
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