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
b540b4b8
Commit
b540b4b8
authored
Jun 03, 2014
by
peastman
Browse files
Merge pull request #472 from peastman/master
Fixed a crash with virtual sites in double precision mode
parents
dbefb1be
3bf0edb4
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/virtualSites.cl
platforms/opencl/src/kernels/virtualSites.cl
+1
-1
No files found.
platforms/opencl/src/kernels/virtualSites.cl
View file @
b540b4b8
...
@@ -116,7 +116,7 @@ __kernel void computeVirtualSites(__global real4* restrict posq,
...
@@ -116,7 +116,7 @@ __kernel void computeVirtualSites(__global real4* restrict posq,
#
pragma
OPENCL
EXTENSION
cl_khr_int64_base_atomics
:
enable
#
pragma
OPENCL
EXTENSION
cl_khr_int64_base_atomics
:
enable
void
addForce
(
int
index,
float
4
f,
__global
long*
longForce
)
{
void
addForce
(
int
index,
real
4
f,
__global
long*
longForce
)
{
atom_add
(
&longForce[index],
(
long
)
(
f.x*0x100000000
))
;
atom_add
(
&longForce[index],
(
long
)
(
f.x*0x100000000
))
;
atom_add
(
&longForce[index+PADDED_NUM_ATOMS],
(
long
)
(
f.y*0x100000000
))
;
atom_add
(
&longForce[index+PADDED_NUM_ATOMS],
(
long
)
(
f.y*0x100000000
))
;
atom_add
(
&longForce[index+2*PADDED_NUM_ATOMS],
(
long
)
(
f.z*0x100000000
))
;
atom_add
(
&longForce[index+2*PADDED_NUM_ATOMS],
(
long
)
(
f.z*0x100000000
))
;
...
...
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