Page 1 of 1

memleak?

PostPosted: Thu Sep 20, 2012 7:56 am
by wpoely86
Hi,

When I try to run the following code throught cuda-memcheck -l, I get that there are 3 memory leaks:
Code: Select all
========= CUDA-MEMCHECK
========= Leaked 8192 bytes at 0x00303000
=========
========= Leaked 768 bytes at 0x00201500
=========
========= Leaked 112 bytes at 0x00201400
=========
========= LEAK SUMMARY: 9072 bytes leaked in 3 allocations
========= ERROR SUMMARY: 0 errors


This is with cuda 4.2 on fedora 16 (gcc 4.6.3 but clang gives the same) with a GeForce GTX 275. What am I doing wrong?

Thanks.

The code:
Code: Select all
#include <iostream>
#include <cuda_runtime.h>
#include <cula.h>

int main(void)
{
    culaStatus err = culaInitialize();

    if( culaNoError != err)
   std::cerr << "Something went wrong: " << culaGetStatusString(err) << std::endl;

    culaFreeBuffers();
    culaShutdown();

    cudaDeviceReset();

    return 0;
}

Re: memleak?

PostPosted: Fri Oct 12, 2012 12:09 pm
by john
Hi, thank you for this report. This is cleared up as of our next release, which should be shortly after CUDA 5 goes final.