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
af57bf98
Commit
af57bf98
authored
Mar 20, 2018
by
peastman
Browse files
Minor improvement
parent
9fa21b3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+1
-1
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+1
-1
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
af57bf98
...
...
@@ -1129,7 +1129,7 @@ bool CudaContext::invalidateMolecules(CudaForceInfo* force) {
Molecule
&
m1
=
molecules
[
instances
[
0
]];
int
offset1
=
offsets
[
0
];
int
numThreads
=
threads
.
getNumThreads
();
int
start
=
threadIndex
*
numMolecules
/
numThreads
;
int
start
=
max
(
1
,
threadIndex
*
numMolecules
/
numThreads
)
;
int
end
=
(
threadIndex
+
1
)
*
numMolecules
/
numThreads
;
for
(
int
j
=
start
;
j
<
end
;
j
++
)
{
// See if the atoms are identical.
...
...
platforms/opencl/src/OpenCLContext.cpp
View file @
af57bf98
...
...
@@ -1016,7 +1016,7 @@ bool OpenCLContext::invalidateMolecules(OpenCLForceInfo* force) {
Molecule
&
m1
=
molecules
[
instances
[
0
]];
int
offset1
=
offsets
[
0
];
int
numThreads
=
threads
.
getNumThreads
();
int
start
=
threadIndex
*
numMolecules
/
numThreads
;
int
start
=
max
(
1
,
threadIndex
*
numMolecules
/
numThreads
)
;
int
end
=
(
threadIndex
+
1
)
*
numMolecules
/
numThreads
;
for
(
int
j
=
start
;
j
<
end
;
j
++
)
{
// See if the atoms are identical.
...
...
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