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
2a7fd676
"wrappers/vscode:/vscode.git/clone" did not exist on "9a167d05a23e10b952dc10ec4ab6147f8a2cb779"
Unverified
Commit
2a7fd676
authored
Mar 11, 2021
by
Peter Eastman
Committed by
GitHub
Mar 11, 2021
Browse files
Fixed rare error related to single pairs (#3057)
parent
4c6cf680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/cuda/src/kernels/findInteractingBlocks.cu
platforms/cuda/src/kernels/findInteractingBlocks.cu
+1
-1
No files found.
platforms/cuda/src/kernels/findInteractingBlocks.cu
View file @
2a7fd676
...
...
@@ -98,7 +98,7 @@ __device__ int saveSinglePairs(int x, int* atoms, int* flags, int length, unsign
int
pairIndex
=
pairStartIndex
+
(
indexInWarp
>
0
?
prevSum
:
0
);
for
(
int
i
=
indexInWarp
;
i
<
length
;
i
+=
32
)
{
int
count
=
__popc
(
flags
[
i
]);
if
(
count
<=
MAX_BITS_FOR_PAIRS
&&
pairIndex
+
count
<
maxSinglePairs
)
{
if
(
count
<=
MAX_BITS_FOR_PAIRS
&&
pairIndex
+
count
<
=
maxSinglePairs
)
{
int
f
=
flags
[
i
];
while
(
f
!=
0
)
{
singlePairs
[
pairIndex
]
=
make_int2
(
atoms
[
i
],
x
*
TILE_SIZE
+
__ffs
(
f
)
-
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