lattice / quda

QUDA is a library for performing calculations in lattice QCD on GPUs.
https://lattice.github.io/quda
Other
286 stars 94 forks source link

unitarize_link_test has a memory leak #94

Closed maddyscientist closed 10 years ago

maddyscientist commented 11 years ago

unitarize_link_test has a memory leak, as indicated below. Justin, can you see if you can find this?

WARNING: The following internal memory allocations were not freed.

Device 0x700b00000 2654208 cudaGaugeField(), cuda_gauge_field.cpp:17 Device 0x700da0000 2654208 cudaGaugeField(), cuda_gauge_field.cpp:17 Device 0x701040000 811008 cudaGaugeField(), cuda_gauge_field.cpp:17 Device 0x701140000 811008 cudaGaugeField(), cuda_gauge_field.cpp:17 Host 0x6070550 32 cpuGaugeField(), cpu_gauge_field.cpp:27 Host 0x7688af0 48 cpuGaugeField(), cpu_gauge_field.cpp:62 Host 0xa0a8ef0 48 cpuGaugeField(), cpu_gauge_field.cpp:62 Host 0xa5fb400 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa60d410 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa61f420 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa631430 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa643440 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa655450 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa667460 73728 cpuGaugeField(), cpu_gauge_field.cpp:65 Host 0xa679470 73728 cpuGaugeField(), cpu_gauge_field.cpp:65

maddyscientist commented 11 years ago

Punting this to 0.5.1, since it is a relatively harmless leak as a result of using static pointers. This will be fixed naturally as Guochun's code is objectified.

jpfoley commented 11 years ago

I dragged my heels on this. It would be straightforward to fix, but not high on my list of priorities. Once the domain decomposition is done, I'll look at it.

On 12/21/2012 02:06 PM, mikeaclark wrote:

Punting this to 0.5.1, since it is a relatively harmless leak as a result of using static pointers. This will be fixed naturally as Guochun's code is objectified.

— Reply to this email directly or view it on GitHub https://github.com/lattice/quda/issues/94#issuecomment-11626997.

maddyscientist commented 10 years ago

Closed with commit 39c761878253b1ca32af0e1b02ab1c1a2b55b42f.