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
"plugins/amoeba/vscode:/vscode.git/clone" did not exist on "d925ed4bd1972ed9f2194506257321b9b9986ae4"
Commit
af57bf98
authored
Mar 20, 2018
by
peastman
Browse files
Minor improvement
parent
9fa21b3a
Changes
2
Show 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) {
...
@@ -1129,7 +1129,7 @@ bool CudaContext::invalidateMolecules(CudaForceInfo* force) {
Molecule
&
m1
=
molecules
[
instances
[
0
]];
Molecule
&
m1
=
molecules
[
instances
[
0
]];
int
offset1
=
offsets
[
0
];
int
offset1
=
offsets
[
0
];
int
numThreads
=
threads
.
getNumThreads
();
int
numThreads
=
threads
.
getNumThreads
();
int
start
=
threadIndex
*
numMolecules
/
numThreads
;
int
start
=
max
(
1
,
threadIndex
*
numMolecules
/
numThreads
)
;
int
end
=
(
threadIndex
+
1
)
*
numMolecules
/
numThreads
;
int
end
=
(
threadIndex
+
1
)
*
numMolecules
/
numThreads
;
for
(
int
j
=
start
;
j
<
end
;
j
++
)
{
for
(
int
j
=
start
;
j
<
end
;
j
++
)
{
// See if the atoms are identical.
// See if the atoms are identical.
...
...
platforms/opencl/src/OpenCLContext.cpp
View file @
af57bf98
...
@@ -1016,7 +1016,7 @@ bool OpenCLContext::invalidateMolecules(OpenCLForceInfo* force) {
...
@@ -1016,7 +1016,7 @@ bool OpenCLContext::invalidateMolecules(OpenCLForceInfo* force) {
Molecule
&
m1
=
molecules
[
instances
[
0
]];
Molecule
&
m1
=
molecules
[
instances
[
0
]];
int
offset1
=
offsets
[
0
];
int
offset1
=
offsets
[
0
];
int
numThreads
=
threads
.
getNumThreads
();
int
numThreads
=
threads
.
getNumThreads
();
int
start
=
threadIndex
*
numMolecules
/
numThreads
;
int
start
=
max
(
1
,
threadIndex
*
numMolecules
/
numThreads
)
;
int
end
=
(
threadIndex
+
1
)
*
numMolecules
/
numThreads
;
int
end
=
(
threadIndex
+
1
)
*
numMolecules
/
numThreads
;
for
(
int
j
=
start
;
j
<
end
;
j
++
)
{
for
(
int
j
=
start
;
j
<
end
;
j
++
)
{
// See if the atoms are identical.
// 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