memleak?

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

memleak?

Postby wpoely86 » Thu Sep 20, 2012 7:56 am

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;
}
wpoely86
 
Posts: 1
Joined: Tue Sep 18, 2012 9:08 am

Re: memleak?

Postby john » Fri Oct 12, 2012 12:09 pm

Hi, thank you for this report. This is cleared up as of our next release, which should be shortly after CUDA 5 goes final.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron