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
5d4ff603
Commit
5d4ff603
authored
May 21, 2010
by
Peter Eastman
Browse files
Fixed compilation error on some OpenCL implementations
parent
7672a22e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+4
-4
No files found.
platforms/opencl/src/OpenCLKernels.cpp
View file @
5d4ff603
...
...
@@ -2175,10 +2175,10 @@ void OpenCLCalcCustomGBForceKernel::initialize(const System& system, const Custo
continue
;
string
is
=
intToString
(
i
);
if
(
needParameterGradient
)
{
chainSource
<<
"float4 grad1_"
+
is
+
"_1 = 0;
\n
"
;
chainSource
<<
"float4 grad1_"
+
is
+
"_2 = 0;
\n
"
;
chainSource
<<
"float4 grad2_"
+
is
+
"_1 = 0;
\n
"
;
chainSource
<<
"float4 grad2_"
+
is
+
"_2 = 0;
\n
"
;
chainSource
<<
"float4 grad1_"
+
is
+
"_1 =
(float4)
0;
\n
"
;
chainSource
<<
"float4 grad1_"
+
is
+
"_2 =
(float4)
0;
\n
"
;
chainSource
<<
"float4 grad2_"
+
is
+
"_1 =
(float4)
0;
\n
"
;
chainSource
<<
"float4 grad2_"
+
is
+
"_2 =
(float4)
0;
\n
"
;
for
(
int
j
=
0
;
j
<
i
;
j
++
)
{
string
js
=
intToString
(
j
);
Lepton
::
ParsedExpression
dVdV
=
Lepton
::
Parser
::
parse
(
computedValueExpressions
[
i
],
functions
).
differentiate
(
computedValueNames
[
j
]).
optimize
();
...
...
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