Scratch Memory Allocation (Microbenchmark)
Scratch Memory Allocation (Microbenchmark)
This code sample aims to benchmark the performance of the scratch memory allocation. This facility is a viable option to satisfy the need for temporary memory when using the DNN domain of LIBXSMM (small convolutions). Although any kind of readable/writable buffer can be bound to a convolution handle, LIBXSMM’s libxsmm_aligned_scratch
features a thread-safe linear allocator mechanism which can help to lower allocation overhead.