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
ea3c4747
"openmmapi/vscode:/vscode.git/clone" did not exist on "c744444af536c2ea6cf00540d88cbf3ef9d1302f"
Commit
ea3c4747
authored
Dec 01, 2016
by
Peter Eastman
Browse files
Fixed error compiling kernel
parent
37a87d8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
platforms/cuda/src/kernels/langevin.cu
platforms/cuda/src/kernels/langevin.cu
+2
-2
platforms/opencl/src/kernels/langevin.cl
platforms/opencl/src/kernels/langevin.cl
+2
-2
No files found.
platforms/cuda/src/kernels/langevin.cu
View file @
ea3c4747
...
...
@@ -119,9 +119,9 @@ extern "C" __global__ void selectLangevinStepSize(int numAtoms, int paddedNumAto
// Recalculate the integration parameters.
mixed
vscale
=
EXP
(
-
newStepSize
*
friction
);
mixed
vscale
=
exp
(
-
newStepSize
*
friction
);
mixed
fscale
=
(
friction
==
0
?
newStepSize
:
(
1
-
vscale
)
/
friction
);
mixed
noisescale
=
SQRT
(
kT
*
(
1
-
vscale
*
vscale
));
mixed
noisescale
=
sqrt
(
kT
*
(
1
-
vscale
*
vscale
));
params
[
VelScale
]
=
vscale
;
params
[
ForceScale
]
=
fscale
;
params
[
NoiseScale
]
=
noisescale
;
...
...
platforms/opencl/src/kernels/langevin.cl
View file @
ea3c4747
...
...
@@ -110,9 +110,9 @@ __kernel void selectLangevinStepSize(mixed maxStepSize, mixed errorTol, mixed fr
//
Recalculate
the
integration
parameters.
mixed
vscale
=
EXP
(
-newStepSize*friction
)
;
mixed
vscale
=
exp
(
-newStepSize*friction
)
;
mixed
fscale
=
(
friction
==
0
?
newStepSize
:
(
1-vscale
)
/friction
)
;
mixed
noisescale
=
SQRT
(
kT*
(
1-vscale*vscale
))
;
mixed
noisescale
=
sqrt
(
kT*
(
1-vscale*vscale
))
;
params[VelScale]
=
vscale
;
params[ForceScale]
=
fscale
;
params[NoiseScale]
=
noisescale
;
...
...
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