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
b6e79d4a
Unverified
Commit
b6e79d4a
authored
Mar 20, 2019
by
peastman
Committed by
GitHub
Mar 20, 2019
Browse files
Merge pull request #2287 from peastman/groups
Improved performance of interaction groups on CPU
parents
7ada5dd0
b26b74c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
platforms/cpu/src/CpuCustomNonbondedForce.cpp
platforms/cpu/src/CpuCustomNonbondedForce.cpp
+3
-4
No files found.
platforms/cpu/src/CpuCustomNonbondedForce.cpp
View file @
b6e79d4a
...
...
@@ -173,10 +173,9 @@ void CpuCustomNonbondedForce::threadComputeForce(ThreadPool& threads, int thread
if
(
useInteractionGroups
)
{
// The user has specified interaction groups, so compute only the requested interactions.
while
(
true
)
{
int
i
=
atomicCounter
++
;
if
(
i
>=
groupInteractions
.
size
())
break
;
int
start
=
threadIndex
*
groupInteractions
.
size
()
/
numThreads
;
int
end
=
(
threadIndex
+
1
)
*
groupInteractions
.
size
()
/
numThreads
;
for
(
int
i
=
start
;
i
<
end
;
i
++
)
{
int
atom1
=
groupInteractions
[
i
].
first
;
int
atom2
=
groupInteractions
[
i
].
second
;
for
(
int
j
=
0
;
j
<
(
int
)
paramNames
.
size
();
j
++
)
{
...
...
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