Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak for faultyElemData #118

Open
manitofigh opened this issue Dec 9, 2024 · 0 comments
Open

Memory leak for faultyElemData #118

manitofigh opened this issue Dec 9, 2024 · 0 comments

Comments

@manitofigh
Copy link

manitofigh commented Dec 9, 2024

Hello @wilicc ,

Please review PR #117 related to the leakage at:

checkError(cuMemAlloc(&d_faultyElemData, sizeof(int)), "faulty data");

here.

d_faultyElemData is never freed in the destructor (~GPU_Test):

    ~GPU_Test() {
        bind();
        checkError(cuMemFree(d_Cdata), "Free A");
        checkError(cuMemFree(d_Adata), "Free B");
        checkError(cuMemFree(d_Bdata), "Free C");
        cuMemFreeHost(d_faultyElemsHost);
        printf("Freed memory for dev %d\n", d_devNumber);

        cublasDestroy(d_cublas);
        printf("Uninitted cublas\n");
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant