Home
last modified time | relevance | path

Searched refs:size_to_allocate (Results 1 – 5 of 5) sorted by relevance

/external/OpenCL-CTS/test_conformance/allocations/
Dallocation_functions.cpp22 …l_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_to_allocate, cl_bool bloc… in allocate_buffer() argument
25 *mem = clCreateBuffer(context, CL_MEM_READ_WRITE, size_to_allocate, NULL, &error); in allocate_buffer()
30 int find_good_image_size(cl_device_id device_id, size_t size_to_allocate, size_t *width, size_t *he… in find_good_image_size() argument
39 if (size_to_allocate == 0) { in find_good_image_size()
49 num_pixels = size_to_allocate / (sizeof(cl_uint)*4); in find_good_image_size()
88 …l_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_to_allocate, cl_bool bloc… in allocate_image2d_read() argument
92 error = find_good_image_size(device_id, size_to_allocate, &width, &height, NULL); in allocate_image2d_read()
97 …(size_to_allocate/(1024.0*1024.0)), (int)width, (int)height, (blocking_write ? "blocking" : "non-b… in allocate_image2d_read()
104 …l_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_to_allocate, cl_bool bloc… in allocate_image2d_write() argument
108 error = find_good_image_size(device_id, size_to_allocate, &width, &height, NULL); in allocate_image2d_write()
[all …]
Dallocation_functions.h19 …xt context, cl_command_queue *queue, cl_device_id device_id, size_t size_to_allocate, int type, cl…
20 …xt context, cl_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_to_allocate);
21 …xt context, cl_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_to_allocate);
22 …xt context, cl_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_to_allocate);
23 …cl_command_queue *queue, cl_device_id device_id, int multiple_allocations, size_t size_to_allocate,
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.cc170 uptr size_to_allocate = Max(size, GetPageSizeCached()); in Allocate() local
172 (char*)MmapOrDie(size_to_allocate, __func__); in Allocate()
173 allocated_end_ = allocated_current_ + size_to_allocate; in Allocate()
176 size_to_allocate); in Allocate()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.cpp223 uptr size_to_allocate = RoundUpTo(size, GetPageSizeCached()); in Allocate() local
225 (char*)MmapOrDie(size_to_allocate, __func__); in Allocate()
226 allocated_end_ = allocated_current_ + size_to_allocate; in Allocate()
229 size_to_allocate); in Allocate()
/external/llvm-project/openmp/runtime/src/
Dkmp_taskdeps.cpp75 kmp_int32 size_to_allocate = in __kmp_dephash_extend() local
79 h = (kmp_dephash_t *)__kmp_fast_allocate(thread, size_to_allocate); in __kmp_dephash_extend()
81 h = (kmp_dephash_t *)__kmp_thread_malloc(thread, size_to_allocate); in __kmp_dephash_extend()