Home
last modified time | relevance | path

Searched refs:min_alignment (Results 1 – 21 of 21) sorted by relevance

/external/OpenCL-CTS/test_conformance/api/
Dtest_device_min_data_type_align_size_alignment.cpp30 cl_uint min_alignment; in test_min_data_type_align_size_alignment() local
33 min_alignment = sizeof(cl_long)*16; in test_min_data_type_align_size_alignment()
35 min_alignment = sizeof(cl_int)*16; in test_min_data_type_align_size_alignment()
45 if (alignment < min_alignment*8) { in test_min_data_type_align_size_alignment()
48 (unsigned long)(min_alignment*8), (unsigned long)alignment); in test_min_data_type_align_size_alignment()
/external/OpenCL-CTS/test_conformance/buffers/
Dtest_buffer_write.cpp631 size_t min_alignment = get_min_alignment(context); in test_buffer_write() local
659 outptr[i] = align_malloc( ptrSizes[i] * (num_elements * 2 ), min_alignment); in test_buffer_write()
666 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_write()
814 size_t min_alignment = get_min_alignment(context); in test_buffer_write_struct() local
831 inptr[i] = (TestStruct *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_struct()
849 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_struct()
997 size_t min_alignment = get_min_alignment(context); in test_buffer_write_array_async() local
1023 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_array_async()
1131 size_t min_alignment = get_min_alignment(context); in test_buffer_write_int() local
1142 inptr[i] = (int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_write_int()
[all …]
Dtest_buffer_fill.cpp582 size_t min_alignment = get_min_alignment(context); in test_buffer_fill() local
615 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill()
742 size_t min_alignment = get_min_alignment(context); in test_buffer_fill_struct() local
756 inptr = (TestStruct *)align_malloc(ptrSize * num_elements, min_alignment); in test_buffer_fill_struct()
770 hostptr = (TestStruct *)align_malloc(ptrSize * num_elements, min_alignment); in test_buffer_fill_struct()
803 outptr = align_malloc( ptrSize * num_elements, min_alignment); in test_buffer_fill_struct()
976 size_t min_alignment = get_min_alignment(context); in test_buffer_fill_int() local
997 inptr[i] = (cl_int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_int()
1005 hostptr[i] = (cl_int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_int()
1041 size_t min_alignment = get_min_alignment(context); in test_buffer_fill_uint() local
[all …]
Dtest_buffer_mem.cpp85 size_t min_alignment = get_min_alignment(context); in test_mem_read_write_flags() local
89 inptr = (cl_int*)align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_mem_read_write_flags()
90 outptr = (cl_int*)align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_mem_read_write_flags()
194 size_t min_alignment = get_min_alignment(context); in test_mem_write_only_flags() local
198 inptr = (int *)align_malloc( sizeof(cl_int) * num_elements, min_alignment); in test_mem_write_only_flags()
203 outptr = (int *)align_malloc( sizeof(cl_int) * num_elements, min_alignment); in test_mem_write_only_flags()
304 size_t min_alignment = get_min_alignment(context); in test_mem_read_only_flags() local
308 inptr = (int *)align_malloc( sizeof(cl_int) * num_elements, min_alignment); in test_mem_read_only_flags()
313 outptr = (int *)align_malloc( sizeof(cl_int) * num_elements, min_alignment); in test_mem_read_only_flags()
440 size_t min_alignment = get_min_alignment(context); in test_mem_copy_host_flags() local
[all …]
Dtest_buffer_copy.cpp50 size_t min_alignment = get_min_alignment(context); in test_copy() local
52 int_input_ptr = (cl_int*) align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_copy()
53 int_output_ptr = (cl_int*)align_malloc(sizeof(cl_int) * num_elements, min_alignment); in test_copy()
149 size_t min_alignment = get_min_alignment(context); in testPartialCopy() local
151 inptr = (int *)align_malloc( sizeof(int) * num_elements, min_alignment); in testPartialCopy()
156 outptr = (int *)align_malloc( sizeof(int) * num_elements, min_alignment); in testPartialCopy()
Dtest_buffer_read.cpp632 size_t min_alignment = get_min_alignment(context); in test_buffer_read() local
653 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_read()
658 inptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_read()
787 size_t min_alignment = get_min_alignment(context); in test_buffer_read_async() local
808 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_async()
814 inptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_async()
942 size_t min_alignment = get_min_alignment(context); in test_buffer_read_array_barrier() local
963 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_array_barrier()
969 inptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_read_array_barrier()
1227 size_t min_alignment = get_min_alignment(context); local
[all …]
Dtest_buffer_map.cpp569 size_t min_alignment = get_min_alignment(context); in test_buffer_map_read() local
587 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_map_read()
/external/OpenCL-CTS/test_conformance/pipes/
Dtest_pipe_read_write.cpp474 size_t min_alignment = get_min_alignment(context); in test_pipe_readwrite() local
493 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite()
636 size_t min_alignment = get_min_alignment(context); in test_pipe_readwrite_struct_generic() local
640 inptr = (TestStruct *)align_malloc(size * num_elements, min_alignment); in test_pipe_readwrite_struct_generic()
652 outptr = align_malloc( size * num_elements, min_alignment); in test_pipe_readwrite_struct_generic()
707 size_t min_alignment = get_min_alignment(context); in test_pipe_readwrite_int() local
718 inptr[i] = (cl_int *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_int()
760 size_t min_alignment = get_min_alignment(context); in test_pipe_readwrite_uint() local
771 inptr[i] = (cl_uint *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_uint()
812 size_t min_alignment = get_min_alignment(context); in test_pipe_readwrite_short() local
[all …]
Dtest_pipe_limits.cpp178 size_t min_alignment = get_min_alignment(context); in test_pipe_max_args() local
195 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_max_args()
205 outptr = align_malloc(size, min_alignment); in test_pipe_max_args()
289 size_t min_alignment = get_min_alignment(context); in test_pipe_max_packet_size() local
314 inptr = (cl_char *)align_malloc(size, min_alignment); in test_pipe_max_packet_size()
324 outptr = align_malloc(size, min_alignment); in test_pipe_max_packet_size()
436 size_t min_alignment = get_min_alignment(context); in test_pipe_max_active_reservations() local
569 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_max_active_reservations()
579 outptr = align_malloc(size, min_alignment); in test_pipe_max_active_reservations()
Dtest_pipe_subgroups.cpp111 size_t min_alignment = get_min_alignment(context); in test_pipe_subgroups_divergence() local
124 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_subgroups_divergence()
125 outptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_subgroups_divergence()
126 active_work_item_buffer = (cl_int *)align_malloc(size, min_alignment); in test_pipe_subgroups_divergence()
Dtest_pipe_readwrite_errors.cpp86 size_t min_alignment = get_min_alignment(context); in test_pipe_readwrite_errors() local
92 inptr = (cl_int *)align_malloc(size, min_alignment); in test_pipe_readwrite_errors()
104 outptr = align_malloc(size, min_alignment); in test_pipe_readwrite_errors()
Dtest_pipe_query_functions.cpp107 size_t min_alignment = get_min_alignment(context); in test_pipe_query_functions() local
114 inptr = (int *)align_malloc(size, min_alignment); in test_pipe_query_functions()
125 outptr1 = align_malloc(size/2, min_alignment); in test_pipe_query_functions()
126 outptr2 = align_malloc(size, min_alignment); in test_pipe_query_functions()
/external/mesa3d/src/panfrost/midgard/
Dmidgard_ra.c435 unsigned *min_alignment = calloc(sizeof(unsigned), ctx->temp_count); in allocate_registers() local
450 min_alignment[s] = 3; in allocate_registers()
460 min_alignment[s] = (size == 64) ? 3 : 2; in allocate_registers()
482 min_alignment[dest] = in allocate_registers()
497 min_alignment[dest] = 4; /* 1 << 4= 16-byte = vec4 */ in allocate_registers()
506 min_alignment[dest] = MAX2(min_alignment[dest], 2); in allocate_registers()
510 lcra_set_alignment(l, i, min_alignment[i] ? min_alignment[i] : 2, in allocate_registers()
516 free(min_alignment); in allocate_registers()
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dmain.cpp1176 cl_uint min_alignment = 0; in InitCL() local
1177 …tDeviceInfo (gDevice, CL_DEVICE_MEM_BASE_ADDR_ALIGN, sizeof(cl_uint), (void*)&min_alignment, NULL); in InitCL()
1183 min_alignment >>= 3; // convert bits to bytes in InitCL()
1185 gIn = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
1188 gIn2 = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
1191 gIn3 = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
1194 gOut_Ref = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
1197 gOut_Ref2 = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
1203 gOut[i] = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
1206 gOut2[i] = align_malloc( BUFFER_SIZE, min_alignment ); in InitCL()
/external/vboot_reference/futility/
Dkernel_blob.h57 uint8_t min_alignment; /* 235 */ member
/external/compiler-rt/lib/asan/
Dasan_allocator.cc329 const uptr min_alignment = SHADOW_GRANULARITY; in Allocate() local
330 if (alignment < min_alignment) in Allocate()
331 alignment = min_alignment; in Allocate()
346 if (alignment > min_alignment) in Allocate()
355 CHECK(IsAligned(needed_size, min_alignment)); in Allocate()
/external/kernel-headers/original/uapi/asm-x86/asm/
Dbootparam.h93 __u8 min_alignment; member
/external/jemalloc_new/src/
Djemalloc.c1625 size_t min_alignment; member
1649 static_opts->min_alignment = 0;
1840 if (unlikely(dopts->alignment < sopts->min_alignment
2075 sopts.min_alignment = sizeof(void *);
2112 sopts.min_alignment = 1;
2447 sopts.min_alignment = 1;
2483 sopts.min_alignment = PAGE;
/external/avb/examples/uefi/
Duefi_avb_boot.c69 UINT8 min_alignment; member
/external/crosvm/x86_64/src/
Dbootparam.rs351 pub min_alignment: __u8, field
/external/jemalloc/src/
Djemalloc.c1704 imemalign(void **memptr, size_t alignment, size_t size, size_t min_alignment) argument
1711 assert(min_alignment != 0);
1725 || (alignment < min_alignment))) {