Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Memory leak in clSetKernelArg with arg_value=NULL

$
0
0

I am using "block_advanced_motion_estimate_check_intel" kernel for motion estimation. As per OpenCL Extensions for AVME, some of the arg_value can be set to NULL if the corresponding parameter needs to be ignored. When setting arg_value to NULL, there is a memory leak and valgrind shows the leak in the NULL argument lines. Is there any way to pass NULL and still get rid of memory leak? Is there any setting required so that this scenario is not treated as memory leak?


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>