cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

daniel-qtec
Adept I

Memory leak with clEnqueueWriteBuffer

Hi,

We've found there is a memory leak in the clEnqueueWriteBuffer function for the amdgpu-pro 20.40.

My colleague prepared a sample test so we can reproduced it:

leak-test.c

After a while, the device runs out of memory and the process is being killed by the oom. Memory is never released.

We've run the same test in a bobcat platform with AMD ATI Radeon HD 6320 + fglrx driver and the leak does not happen.

We are still using amdgpu-pro 20.40 because the 20.45 installation is broken:

https://community.amd.com/t5/opencl/amdgpu-pro-20-45-rocr-vs-pal-opencl-breaks-boinc-gpu-processing/...

Platform: V1605B + Radeon Vega Gfx 8

Thanks

 

 

 

 

 

0 Likes
1 Solution

0 Likes
2 Replies
dipak
Big Boss

Hi @daniel-qtec ,

Thank you for reporting this issue. I've whitelisted you for the Devgurus community. 

 

We are still using amdgpu-pro 20.40 because the 20.45 installation is broken:

As I can see, the latest driver for embedded V1000 series gpu is available here:  here:  https://www.amd.com/en/support/embedded/amd-ryzen-embedded-v-series-processors/v-series-v1000-radeon...

Did you install the latest driver available there? If not, please try this driver and share your observation.

 

Note: As per the release note, the list of compatible products for amdgpu-pro-20-40 or amdgpu-pro-20-45 does not include this embedded product.

 

Thanks.

Sorry for the delay. The memory leak was fixed in the amdgpu driver:

https://patchwork.kernel.org/project/dri-devel/patch/20210317160840.36019-1-daniel@qtec.com/

0 Likes