Skip to content

Cuda out memory issue #5

Open
Open

Description

@Kisshine007

When running the program, Cuda memory continues to increase until there is not enough memory to make an error.

I am test using rtsp stream.

Activity

  1. Kisshine007 commented on Feb 7, 2022

    @Kisshine007
    Author

    /src/decoder.cpp

    @@ -83,5 +83,6 @@ videoFrameList* videoDecoder_decode(videoDecoderHandle handle, u_int8_t* in, siz
    cudaMemcpy((void*)(frameList->pFrames+iframeList->perFrameSize), (uint8_t)dpFrame, output_size, cudaMemcpyDeviceToHost);
    }
    cuMemFree(dpFrame);
    cuMemFree(nv12Frame); // Add cuMemFree
    return frameList;
    }


    After add cuMemFree, the program running is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions