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
cea03eea
Unverified
Commit
cea03eea
authored
Aug 27, 2020
by
peastman
Committed by
GitHub
Aug 27, 2020
Browse files
Fixed uninitialized memory (#2819)
parent
cdc0789a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+2
-0
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+2
-0
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
cea03eea
...
...
@@ -1174,6 +1174,8 @@ void CudaCalcNonbondedForceKernel::initialize(const System& system, const Nonbon
exceptionOffsetIndices
.
upload
(
exceptionOffsetIndicesVec
);
}
globalParams
.
initialize
(
cu
,
max
((
int
)
paramValues
.
size
(),
1
),
cu
.
getUseDoublePrecision
()
?
sizeof
(
double
)
:
sizeof
(
float
),
"globalParams"
);
if
(
paramValues
.
size
()
>
0
)
globalParams
.
upload
(
paramValues
,
true
);
recomputeParams
=
true
;
// Initialize the kernel for updating parameters.
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
cea03eea
...
...
@@ -1124,6 +1124,8 @@ void OpenCLCalcNonbondedForceKernel::initialize(const System& system, const Nonb
exceptionOffsetIndices
.
upload
(
exceptionOffsetIndicesVec
);
}
globalParams
.
initialize
(
cl
,
max
((
int
)
paramValues
.
size
(),
1
),
cl
.
getUseDoublePrecision
()
?
sizeof
(
double
)
:
sizeof
(
float
),
"globalParams"
);
if
(
paramValues
.
size
()
>
0
)
globalParams
.
upload
(
paramValues
,
true
);
recomputeParams
=
true
;
// Initialize the kernel for updating parameters.
...
...
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