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
a5156da5
Unverified
Commit
a5156da5
authored
May 19, 2025
by
Pier Fiedorowicz
Committed by
GitHub
May 19, 2025
Browse files
Fix GPU memory leak in context arrays (#4940)
* Fix GPU memory leak * Undo CUDA change
parent
bc809879
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/hip/src/HipArray.cpp
platforms/hip/src/HipArray.cpp
+1
-1
No files found.
platforms/hip/src/HipArray.cpp
View file @
a5156da5
...
...
@@ -42,7 +42,7 @@ HipArray::HipArray(HipContext& context, size_t size, int elementSize, const std:
}
HipArray
::~
HipArray
()
{
if
(
pointer
!=
0
&&
ownsMemory
&&
context
->
getContextIsValid
()
)
{
if
(
pointer
!=
0
&&
ownsMemory
)
{
ContextSelector
selector
(
*
context
);
hipError_t
result
=
hipFree
(
pointer
);
if
(
result
!=
hipSuccess
)
{
...
...
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