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
3031c4da
Commit
3031c4da
authored
Sep 09, 2014
by
peastman
Browse files
Fixed bug on Intel GPUs
parent
ae466134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
platforms/opencl/src/kernels/findInteractingBlocks.cl
platforms/opencl/src/kernels/findInteractingBlocks.cl
+2
-0
No files found.
platforms/opencl/src/kernels/findInteractingBlocks.cl
View file @
3031c4da
...
...
@@ -483,6 +483,7 @@ __kernel void findBlocksWithInteractions(real4 periodicBoxSize, real4 invPeriodi
int
tilesToStore
=
neighborsInBuffer/TILE_SIZE
;
if
(
indexInWarp
==
0
)
*tileStartIndex
=
atom_add
(
interactionCount,
tilesToStore
)
;
SYNC_WARPS
;
int
newTileStartIndex
=
*tileStartIndex
;
if
(
newTileStartIndex+tilesToStore
<
maxTiles
)
{
if
(
indexInWarp
<
tilesToStore
)
...
...
@@ -503,6 +504,7 @@ __kernel void findBlocksWithInteractions(real4 periodicBoxSize, real4 invPeriodi
int
tilesToStore
=
(
neighborsInBuffer+TILE_SIZE-1
)
/TILE_SIZE
;
if
(
indexInWarp
==
0
)
*tileStartIndex
=
atom_add
(
interactionCount,
tilesToStore
)
;
SYNC_WARPS
;
int
newTileStartIndex
=
*tileStartIndex
;
if
(
newTileStartIndex+tilesToStore
<
maxTiles
)
{
if
(
indexInWarp
<
tilesToStore
)
...
...
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