Searched refs:ptrSizes (Results 1 – 7 of 7) sorted by relevance
/external/OpenCL-CTS/test_conformance/buffers/ |
D | test_buffer_write.cpp | 630 size_t ptrSizes[5]; in test_buffer_write() local 641 ptrSizes[0] = size; in test_buffer_write() 642 ptrSizes[1] = ptrSizes[0] << 1; in test_buffer_write() 643 ptrSizes[2] = ptrSizes[1] << 1; in test_buffer_write() 644 ptrSizes[3] = ptrSizes[2] << 1; in test_buffer_write() 645 ptrSizes[4] = ptrSizes[3] << 1; in test_buffer_write() 666 ptrSizes[i] * num_elements, in test_buffer_write() 671 ptrSizes[i] * num_elements, NULL, &err); in test_buffer_write() 680 outptr[i] = align_malloc( ptrSizes[i] * (num_elements * 2 ), min_alignment); in test_buffer_write() 684 ptrSizes[i] * 2 * num_elements, outptr[i], &err); in test_buffer_write() [all …]
|
D | test_buffer_fill.cpp | 568 size_t ptrSizes[5]; in test_buffer_fill() local 579 ptrSizes[0] = size; in test_buffer_fill() 580 ptrSizes[1] = ptrSizes[0] << 1; in test_buffer_fill() 581 ptrSizes[2] = ptrSizes[1] << 1; in test_buffer_fill() 582 ptrSizes[3] = ptrSizes[2] << 1; in test_buffer_fill() 583 ptrSizes[4] = ptrSizes[3] << 1; in test_buffer_fill() 602 ptrSizes[i] * num_elements, in test_buffer_fill() 607 ptrSizes[i] * num_elements, NULL, &err); in test_buffer_fill() 616 ptrSizes[i] * num_elements, in test_buffer_fill() 624 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill() [all …]
|
D | test_buffer_read.cpp | 631 size_t ptrSizes[5]; in test_buffer_read() local 639 ptrSizes[0] = size; in test_buffer_read() 640 ptrSizes[1] = ptrSizes[0] << 1; in test_buffer_read() 641 ptrSizes[2] = ptrSizes[1] << 1; in test_buffer_read() 642 ptrSizes[3] = ptrSizes[2] << 1; in test_buffer_read() 643 ptrSizes[4] = ptrSizes[3] << 1; in test_buffer_read() 667 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_read() 669 … log_error( " unable to allocate %d bytes for outptr\n", (int)( ptrSizes[i] * num_elements ) ); in test_buffer_read() 672 inptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_read() 674 … log_error( " unable to allocate %d bytes for inptr\n", (int)( ptrSizes[i] * num_elements ) ); in test_buffer_read() [all …]
|
D | test_buffer_map.cpp | 563 size_t ptrSizes[5]; in test_buffer_map_read() local 572 ptrSizes[0] = size; in test_buffer_map_read() 573 ptrSizes[1] = ptrSizes[0] << 1; in test_buffer_map_read() 574 ptrSizes[2] = ptrSizes[1] << 1; in test_buffer_map_read() 575 ptrSizes[3] = ptrSizes[2] << 1; in test_buffer_map_read() 576 ptrSizes[4] = ptrSizes[3] << 1; in test_buffer_map_read() 596 outptr[i] = align_malloc( ptrSizes[i] * num_elements, min_alignment); in test_buffer_map_read() 598 … log_error( " unable to allocate %d bytes of memory\n", (int)ptrSizes[i] * num_elements ); in test_buffer_map_read() 605 ptrSizes[i] * num_elements, outptr[i], &err); in test_buffer_map_read() 608 ptrSizes[i] * num_elements, NULL, &err); in test_buffer_map_read() [all …]
|
/external/OpenCL-CTS/test_conformance/profiling/ |
D | writeArray.cpp | 620 size_t ptrSizes[5], outPtrSizes[5]; in test_stream_write() local 627 ptrSizes[0] = size; in test_stream_write() 628 ptrSizes[1] = ptrSizes[0] << 1; in test_stream_write() 629 ptrSizes[2] = ptrSizes[1] << 1; in test_stream_write() 630 ptrSizes[3] = ptrSizes[2] << 1; in test_stream_write() 631 ptrSizes[4] = ptrSizes[3] << 1; in test_stream_write() 637 outPtrSizes[i] = ptrSizes[i]; in test_stream_write() 643 ptrSizes[i] * num_elements, NULL, &err); in test_stream_write() 668 …err = clEnqueueWriteBuffer( queue, streams[ii], false, 0, ptrSizes[i]*num_elements, inptr[i], 0, N… in test_stream_write() 792 if( fn( inP, outP, (int)(ptrSizes[i] / ptrSizes[0]) ) ) in test_stream_write() [all …]
|
D | readArray.cpp | 627 size_t ptrSizes[5]; in test_stream_read() local 631 ptrSizes[0] = size; in test_stream_read() 632 ptrSizes[1] = ptrSizes[0] << 1; in test_stream_read() 633 ptrSizes[2] = ptrSizes[1] << 1; in test_stream_read() 634 ptrSizes[3] = ptrSizes[2] << 1; in test_stream_read() 635 ptrSizes[4] = ptrSizes[3] << 1; in test_stream_read() 637 outptr[i] = malloc( ptrSizes[i] * num_elements ); in test_stream_read() 639 … log_error( " unable to allocate %d bytes for outptr\n", (int)( ptrSizes[i] * num_elements ) ); in test_stream_read() 643 ptrSizes[i] * num_elements, NULL, &err); in test_stream_read() 678 …err = clEnqueueReadBuffer( queue, streams[i], false, 0, ptrSizes[i]*num_elements, outptr[i], 0, NU… in test_stream_read()
|
/external/OpenCL-CTS/test_conformance/pipes/ |
D | test_pipe_read_write.cpp | 467 size_t ptrSizes[5]; in test_pipe_readwrite() local 478 ptrSizes[0] = size; in test_pipe_readwrite() 479 ptrSizes[1] = ptrSizes[0] << 1; in test_pipe_readwrite() 480 ptrSizes[2] = ptrSizes[1] << 1; in test_pipe_readwrite() 481 ptrSizes[3] = ptrSizes[2] << 1; in test_pipe_readwrite() 482 ptrSizes[4] = ptrSizes[3] << 1; in test_pipe_readwrite() 490 ptrSizes[i] * num_elements, inptr[i], &err); in test_pipe_readwrite() 493 outptr[i] = align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite() 497 ptrSizes[i] * num_elements, outptr[i], &err); in test_pipe_readwrite() 501 pipes[i] = clCreatePipe(context, CL_MEM_HOST_NO_ACCESS, ptrSizes[i], in test_pipe_readwrite() [all …]
|