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
81753737
Commit
81753737
authored
Apr 24, 2013
by
Peter Eastman
Browse files
Fixed bug caused by missing synchronization in findInteractingBlocks()
parent
aa4dad89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
platforms/cuda/src/kernels/findInteractingBlocks.cu
platforms/cuda/src/kernels/findInteractingBlocks.cu
+1
-0
platforms/opencl/src/kernels/findInteractingBlocks.cl
platforms/opencl/src/kernels/findInteractingBlocks.cl
+1
-0
No files found.
platforms/cuda/src/kernels/findInteractingBlocks.cu
View file @
81753737
...
...
@@ -257,6 +257,7 @@ __device__ void storeInteractionData(unsigned short x, unsigned short* buffer, s
for
(
int
i
=
threadIdx
.
x
;
i
<
BUFFER_SIZE
;
i
+=
blockDim
.
x
)
buffer
[
i
]
=
INVALID
;
__syncthreads
();
}
/**
...
...
platforms/opencl/src/kernels/findInteractingBlocks.cl
View file @
81753737
...
...
@@ -226,6 +226,7 @@ void storeInteractionData(unsigned short x, __local unsigned short* buffer, __lo
for
(
int
i
=
get_local_id
(
0
)
; i < BUFFER_SIZE; i += get_local_size(0))
buffer[i]
=
INVALID
;
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
}
/**
...
...
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