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
74e0ee22
Commit
74e0ee22
authored
Nov 15, 2011
by
Peter Eastman
Browse files
Bug fix
parent
4d61460d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/kernels/gbsaObc_default.cl
platforms/opencl/src/kernels/gbsaObc_default.cl
+1
-1
No files found.
platforms/opencl/src/kernels/gbsaObc_default.cl
View file @
74e0ee22
...
...
@@ -394,7 +394,7 @@ void computeGBSAForce1(__global float4* restrict forceBuffers, __global float* r
//
Cheaper
to
load/store
float4
than
float3.
Do
all
loads
before
all
stores
to
minimize
store-load
waits.
float4
sum1
=
forceBuffers[offset1]
;
float4
sum2
=
forceBuffers[offset2]
;
float
global_sum1
=
global_bornForce[offset
2
]
;
float
global_sum1
=
global_bornForce[offset
1
]
;
float
global_sum2
=
global_bornForce[offset2]
;
sum1.xyz
+=
force.xyz
+
tempBuffer[tgx].xyz
;
global_sum1
+=
force.w
+
tempBuffer[tgx].w
;
...
...
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