Home
last modified time | relevance | path

Searched refs:minimum_alignment (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dcpu_function_runtime.cc25 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/
Dport.cc113 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/
Dport.cc231 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/
Dnuma.h52 void* NUMAMalloc(int node, size_t size, int minimum_alignment);
Dmem.h29 void* AlignedMalloc(size_t size, int minimum_alignment);
/external/libtextclassifier/native/utils/base/
Darena.cc33 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/
Dport.h775 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);