Searched refs:minimum_alignment (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/compiler/tf2xla/ |
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/posix/ |
D | port.cc | 211 void* AlignedMalloc(size_t size, int minimum_alignment) { in AlignedMalloc() argument 213 return memalign(minimum_alignment, size); in AlignedMalloc() 220 if (minimum_alignment < required_alignment) return Malloc(size); in AlignedMalloc() 221 int err = posix_memalign(&ptr, minimum_alignment, size); in AlignedMalloc() 238 void* NUMAMalloc(int node, size_t size, int minimum_alignment) { in NUMAMalloc() argument 251 return AlignedMalloc(size, minimum_alignment); in NUMAMalloc()
|
/external/tensorflow/tensorflow/core/platform/windows/ |
D | port.cc | 93 void* AlignedMalloc(size_t size, int minimum_alignment) { in AlignedMalloc() argument 94 return _aligned_malloc(size, minimum_alignment); in AlignedMalloc() 105 void* NUMAMalloc(int node, size_t size, int minimum_alignment) { in NUMAMalloc() argument 106 return AlignedMalloc(size, minimum_alignment); in NUMAMalloc()
|
/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);
|
/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);
|