-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give the user the ability to allocate all memory himself #81
Comments
I would like to use it in realtime as well, so +1 on that :) |
If anyone is interested, I created microgemm. |
Custom allocators would help. Maybe allocator-api2 |
@cospectrum On microcontrollers I was using matrixmultiply already with this allocator: Buddy System Allocator. |
Hello! I noticed that each gemm call allocates memory on the heap for "packing buffers".
So maybe there is a way to give the user the ability to pre-allocate all the necessary memory and simply pass it as an argument without using a global allocator?
For example, add helper function(s) to the public api to calculate the required memory for a particular type/shape/kernel, and then initialize aligned_alloc::Alloc struct from a pointer or something like that.
I think this feature can help use the crate in real-time programs where hidden allocations are not welcome
The text was updated successfully, but these errors were encountered: