Searched refs:minimum_alignment (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/compiler/xla/ |
D | cpu_function_runtime.cc | 25 void* aligned_malloc(size_t size, int minimum_alignment) { in aligned_malloc() argument 27 return memalign(minimum_alignment, size); in aligned_malloc() 29 return _aligned_malloc(size, minimum_alignment); in aligned_malloc() 36 if (minimum_alignment < required_alignment) return malloc(size); in aligned_malloc() 37 if (posix_memalign(&ptr, minimum_alignment, size) != 0) in aligned_malloc()
|
/external/tensorflow/tensorflow/core/platform/windows/ |
D | port.cc | 113 void* AlignedMalloc(size_t size, int minimum_alignment) { in AlignedMalloc() argument 114 return _aligned_malloc(size, minimum_alignment); in AlignedMalloc() 125 void* NUMAMalloc(int node, size_t size, int minimum_alignment) { in NUMAMalloc() argument 126 return AlignedMalloc(size, minimum_alignment); in NUMAMalloc()
|
/external/tensorflow/tensorflow/core/platform/default/ |
D | port.cc | 231 void* AlignedMalloc(size_t size, int minimum_alignment) { in AlignedMalloc() argument 233 return memalign(minimum_alignment, size); in AlignedMalloc() 240 if (minimum_alignment < required_alignment) return Malloc(size); in AlignedMalloc() 241 int err = posix_memalign(&ptr, minimum_alignment, size); in AlignedMalloc() 258 void* NUMAMalloc(int node, size_t size, int minimum_alignment) { in NUMAMalloc() argument 271 return AlignedMalloc(size, minimum_alignment); in NUMAMalloc()
|
/external/tensorflow/tensorflow/core/platform/ |
D | numa.h | 52 void* NUMAMalloc(int node, size_t size, int minimum_alignment);
|
D | mem.h | 29 void* AlignedMalloc(size_t size, int minimum_alignment);
|
/external/libtextclassifier/native/utils/base/ |
D | arena.cc | 33 static void *aligned_malloc(size_t size, int minimum_alignment) { in aligned_malloc() argument 39 if (minimum_alignment < required_alignment) in aligned_malloc() 41 if (posix_memalign(&ptr, static_cast<size_t>(minimum_alignment), size) != 0) in aligned_malloc()
|
/external/dynamic_depth/internal/base/ |
D | port.h | 775 inline void *aligned_malloc(size_t size, int minimum_alignment) { in aligned_malloc() argument 777 return memalign(minimum_alignment, size); in aligned_malloc() 784 if (minimum_alignment < required_alignment) return malloc(size); in aligned_malloc() 785 if (posix_memalign(&ptr, minimum_alignment, size) != 0) in aligned_malloc() 1001 inline void *aligned_malloc(size_t size, int minimum_alignment) { 1002 return _aligned_malloc(size, minimum_alignment);
|