Share 
Follow 
AboutDownloadsDocumentsForumsWikiIssuesNews
Date:
2010-04-30 19:14
Priority:
3
State:
Open
Submitted by:
Joshua Adelman (jadelman)
Assigned to:
Nobody (None)
Resolution:
none
Summary:
Memory Leak in OpenCL when repeatedly creating and destroying Context and Integrator

Detailed description
I observe a substantial memory leak if I repeatedly create and delete a context and integrator in a single OpenMM run using OpenCL on a Linux machine with a Tesla c1060 using OpenMM r2213 (and previous versions). I'm using the latest CUDA 3.0 drivers.

I have included a minimal example illustrating the problem along with a control case that does not display a memory leak if you create a single context and integrator for a simulation. I do not see the problem using the Reference platform, and do not observe the problem on my Mac OS X (Snow Leopard) based laptop using a NVidia GT 9600M.

Add A Comment: Notepad

Message  ↓
Date: 2010-06-13 05:36
Sender: John Chodera

Josh, are you still seeing this memory leak on CUDA 3.0? Have you tried CUDA 3.1beta?

John

Date: 2010-05-03 18:11
Sender: John Chodera

I've just tested this on OpenMM r2216 on OS X Snow Leopard with a GTX 285. On this system, it seems the memory leak is very minimal, if present at all. The RSIZE maybe increased from 32 to 48 MB over the course of execution, though it was so slow that it was hard to determine a per-cycle leak size.

Maybe there is something going on with the NVIDIA CUDA 3.0 drivers. Peter, can you reproduce Josh's memory leak on a Linux + CUDA 3.0 machine?

Attachments:
Size Name Date By Download
2 KiBmemleak-test.tar.gz2010-04-30 19:14jadelmanmemleak-test.tar.gz
Field Old Value Date By
File Added250: memleak-test.tar.gz2010-04-30 19:14jadelman
Feedback