cuda-samples
cuda-samples copied to clipboard
memory leak in memMapIpc
OS: Windows11 Platform: Visual Studio 2022 Debug X64 Version: NVIDIA-SMI 516.94 Driver Version: 516.94 CUDA Version: 11.7
In the sample memMapIPCDrv, seems like memory does not release to the OS (Both GPU memory and CPU memory) utile child process exit. Is this a bug? or I miss some cleanup?
PS.
- I change
DATA_BUF_SIZE
to 4G. - I move the
cuMemRelease
in parent process ahead ofwaitProcess
, and both child process and parent process pause just before callexit
.
sample code https://github.com/DualHappiness/cuda-samples.git