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
84819edd
Commit
84819edd
authored
Dec 22, 2009
by
John Chodera
Browse files
Patched large memory leak in Context cleanup for OpenCL platform.
parent
985da46e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
platforms/opencl/include/OpenCLPlatform.h
platforms/opencl/include/OpenCLPlatform.h
+1
-0
platforms/opencl/src/OpenCLPlatform.cpp
platforms/opencl/src/OpenCLPlatform.cpp
+4
-0
No files found.
platforms/opencl/include/OpenCLPlatform.h
View file @
84819edd
...
@@ -67,6 +67,7 @@ public:
...
@@ -67,6 +67,7 @@ public:
class
OpenCLPlatform
::
PlatformData
{
class
OpenCLPlatform
::
PlatformData
{
public:
public:
PlatformData
(
int
numParticles
,
int
deviceIndex
);
PlatformData
(
int
numParticles
,
int
deviceIndex
);
~
PlatformData
();
OpenCLContext
*
context
;
OpenCLContext
*
context
;
bool
removeCM
;
bool
removeCM
;
int
cmMotionFrequency
;
int
cmMotionFrequency
;
...
...
platforms/opencl/src/OpenCLPlatform.cpp
View file @
84819edd
...
@@ -105,3 +105,7 @@ OpenCLPlatform::PlatformData::PlatformData(int numParticles, int deviceIndex) :
...
@@ -105,3 +105,7 @@ OpenCLPlatform::PlatformData::PlatformData(int numParticles, int deviceIndex) :
device
<<
context
->
getDeviceIndex
();
device
<<
context
->
getDeviceIndex
();
propertyValues
[
OpenCLPlatform
::
OpenCLDeviceIndex
()]
=
device
.
str
();
propertyValues
[
OpenCLPlatform
::
OpenCLDeviceIndex
()]
=
device
.
str
();
}
}
OpenCLPlatform
::
PlatformData
::~
PlatformData
()
{
delete
context
;
}
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