Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Usage of mkl_free_buffers

erling_andersen
New Contributor I
418 Views
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_buffers
works 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
0 Kudos
1 Solution
barragan_villanueva_
Valued Contributor I
418 Views
Hi,

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.

View solution in original post

1 Reply
barragan_villanueva_
Valued Contributor I
419 Views
Hi,

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.
Reply