- Add
@buffer
and@threadsbuffer
macros (and underlyingMAllocBuffer
andThreadsMAllocBuffer
types) to create manually allocated buffers with the specified size and type.
- Fix type stability in
ThreadsBuffer
. - Fix errors associated with zero-sized tensors.
- Add precompilation using
PrecompileTools
.
- Fix type stability (
::Ref{Int}
-->::Base.RefValue{Int}
).
- Redefine
pseudo_alloc!
,pseudo_drop!
andpseudo_reset!
to align with the syntax ofalloc!
,drop!
andreset!
, i.e., now one can simpy replace alloc/drop/reset with the pseudo functions (and delete other lines) to calculate the required Buffer length. @print_buffer_usage
replaces all function calls with buffer as argument by theirpseudo_
version. For custom functions, thepseudo_
functions have to be defined by the user (e.g., by using@print_buffer_usage
on the function definition).
- Use JuliaFormatter
- First release:
Buffer
,ThreadsBuffer
,alloc!
,drop!
,reset!
,release!
,@print_buffer_usage