![]() |
Eigen-unsupported
5.0.1-dev+7c7d8473
|
#include <unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h>
MemHolder this is a place holder struct for creating memory hierarchy in SYCL. Inside SYCL kernel it is not allowed to have dynamic memory allocation. While the local memory is created outside of the kernel and passed to the kernel as an accessor, the private memory can only allowed to be allocated statically. Since we are abstracting the TiledMemory for both local and private memory, the MemHolder structs is used as a helper to abstract out different type of memory needed when local/no_local memory computation is called.
| contraction_type | it is an enum value representing whether the local memory/no local memory implementation of the algorithm to be used |
| the | private memory size |
| ptr | the tile memory pointer type |