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
d0800362
"platforms/vscode:/vscode.git/clone" did not exist on "b11c8061dab89d08b082bb1f844baffe96e03427"
Commit
d0800362
authored
Jul 16, 2013
by
peastman
Browse files
Work correctly on devices with SIMD width less than 32
parent
df2cd75f
Changes
1
Hide 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 @
d0800362
...
...
@@ -81,7 +81,7 @@ OpenCLNonbondedUtilities::OpenCLNonbondedUtilities(OpenCLContext& context) : con
}
else
{
numForceThreadBlocks
=
context
.
getNumThreadBlocks
();
forceThreadBlockSize
=
OpenCLContext
::
ThreadBlockSize
;
forceThreadBlockSize
=
(
context
.
getSIMDWidth
()
>=
32
?
OpenCLContext
::
ThreadBlockSize
:
32
)
;
if
(
context
.
getSupports64BitGlobalAtomics
())
{
// Even though using longForceBuffer, still need a single forceBuffer for the reduceForces kernel to convert the long results into float4 which will be used by later kernels.
numForceBuffers
=
1
;
...
...
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