Usage of mkl_free_buffers

Usage of mkl_free_buffers

Suppose I have an application that links MKL static and nonthreaded. Also assume I call MKL functions from several threads.That should be fine. However, now I speculate how mkl_free_buffersworks in this setting.Can I call at any time and it will not crash? What if I call the function and buffer is in use?Should I use another function to free all the buffers.Erling

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply


mkl_free_buffers function just releases memory for that buffers which are not in use and marked internally as free.
So, such buffers are conditionally taken to be used fast if such buffer will be required.

-- Victor

Leave a Comment

Please sign in to add a comment. Not a member? Join today