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
ddd7307d
"platforms/opencl/tests/TestOpenCLCustomCompoundBondForce.cpp" did not exist on "644cc275ab5a549a82cce4d49680da729c2051e6"
Commit
ddd7307d
authored
Aug 09, 2016
by
Peter Eastman
Browse files
Fixed compilation error in mixed precision mode
parent
24b68822
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/kernels/gayBerne.cu
platforms/cuda/src/kernels/gayBerne.cu
+1
-1
platforms/opencl/src/kernels/gayBerne.cl
platforms/opencl/src/kernels/gayBerne.cl
+1
-1
No files found.
platforms/cuda/src/kernels/gayBerne.cu
View file @
ddd7307d
...
...
@@ -234,7 +234,7 @@ inline __device__ void matrixInverse(real (*result)[3], real (*m)[3]) {
result
[
2
][
2
]
=
invDet
*
(
m
[
0
][
0
]
*
m
[
1
][
1
]
-
m
[
0
][
1
]
*
m
[
1
][
0
]);
}
__device__
void
computeOneInteraction
(
AtomData
*
data1
,
AtomData
*
data2
,
real
sigma
,
real
epsilon
,
real3
dr
,
real
r2
,
real3
*
force1
,
real3
*
force2
,
real3
*
torque1
,
real3
*
torque2
,
real
*
totalEnergy
)
{
__device__
void
computeOneInteraction
(
AtomData
*
data1
,
AtomData
*
data2
,
real
sigma
,
real
epsilon
,
real3
dr
,
real
r2
,
real3
*
force1
,
real3
*
force2
,
real3
*
torque1
,
real3
*
torque2
,
mixed
*
totalEnergy
)
{
real
rInv
=
RSQRT
(
r2
);
real
r
=
r2
*
rInv
;
real3
drUnit
=
dr
*
rInv
;
...
...
platforms/opencl/src/kernels/gayBerne.cl
View file @
ddd7307d
...
...
@@ -239,7 +239,7 @@ void matrixInverse(real (*result)[3], real (*m)[3]) {
result[2][2]
=
invDet*
(
m[0][0]*m[1][1]
-
m[0][1]*m[1][0]
)
;
}
void
computeOneInteraction
(
AtomData*
data1,
AtomData*
data2,
real
sigma,
real
epsilon,
real3
dr,
real
r2,
real3*
force1,
real3*
force2,
real3*
torque1,
real3*
torque2,
real
*totalEnergy
)
{
void
computeOneInteraction
(
AtomData*
data1,
AtomData*
data2,
real
sigma,
real
epsilon,
real3
dr,
real
r2,
real3*
force1,
real3*
force2,
real3*
torque1,
real3*
torque2,
mixed
*totalEnergy
)
{
real
rInv
=
RSQRT
(
r2
)
;
real
r
=
r2*rInv
;
real3
drUnit
=
dr*rInv
;
...
...
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