Searched refs:globalBufferSize (Results 1 – 4 of 4) sorted by relevance
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_async_copy.cpp | 150 size_t globalBufferSize = numberOfLocalWorkgroups*localBufferSize; in test_copy() local 153 inBuffer = (void*)malloc(globalBufferSize); in test_copy() 154 outBuffer = (void*)malloc(globalBufferSize); in test_copy() 155 memset(outBuffer, 0, globalBufferSize); in test_copy() 162 …lWorkgroupSize, (int)localWorkgroupSize, (int)localBufferSize, (int)globalBufferSize, copiesPerWor… in test_copy() 168 generate_random_data( vecType, globalBufferSize/get_explicit_type_size(vecType), d, inBuffer ); in test_copy() 171 …streams[ 0 ] = clCreateBuffer( context, CL_MEM_COPY_HOST_PTR, globalBufferSize, inBuffer, &error ); in test_copy() 173 …streams[ 1 ] = clCreateBuffer( context, CL_MEM_COPY_HOST_PTR, globalBufferSize, outBuffer, &error … in test_copy() 192 …error = clEnqueueReadBuffer( queue, streams[ 1 ], CL_TRUE, 0, globalBufferSize, outBuffer, 0, NULL… in test_copy() 197 if( memcmp( inBuffer, outBuffer, globalBufferSize ) != 0 ) in test_copy() [all …]
|
D | test_async_strided_copy.cpp | 151 size_t globalBufferSize = numberOfLocalWorkgroups*localBufferSize*stride; in test_strided_copy() local 154 inBuffer = (void*)malloc(globalBufferSize); in test_strided_copy() 155 outBuffer = (void*)malloc(globalBufferSize); in test_strided_copy() 156 memset(outBuffer, 0, globalBufferSize); in test_strided_copy() 163 …lWorkgroupSize, (int)localWorkgroupSize, (int)localBufferSize, (int)globalBufferSize, (int)stride,… in test_strided_copy() 169 generate_random_data( vecType, globalBufferSize/get_explicit_type_size(vecType), d, inBuffer ); in test_strided_copy() 172 …streams[ 0 ] = clCreateBuffer( context, CL_MEM_COPY_HOST_PTR, globalBufferSize, inBuffer, &error ); in test_strided_copy() 174 …streams[ 1 ] = clCreateBuffer( context, CL_MEM_COPY_HOST_PTR, globalBufferSize, outBuffer, &error … in test_strided_copy() 195 …error = clEnqueueReadBuffer( queue, streams[ 1 ], CL_TRUE, 0, globalBufferSize, outBuffer, 0, NULL… in test_strided_copy() 200 for (int i=0; i<(int)globalBufferSize; i+=(int)elementSize*(int)stride) in test_strided_copy()
|
/external/OpenCL-CTS/test_conformance/non_uniform_work_group/ |
D | TestNonUniformWorkGroup.cpp | 697 size_t TestNonUniformWorkGroup::adjustGlobalBufferSize(size_t globalBufferSize) { in adjustGlobalBufferSize() argument 706 size_t adjustedGlobalBufferSize = globalBufferSize; in adjustGlobalBufferSize() 707 if (deviceMaxAllocObjSize < globalBufferSize) { in adjustGlobalBufferSize() 709 …log_info("globalBufferSize was adjusted from %lu to %lu\n", globalBufferSize, adjustedGlobalBuffer… in adjustGlobalBufferSize() 736 size_t globalBufferSize = adjustGlobalBufferSize(_numOfGlobalWorkItems*sizeof(cl_uint)); in runKernel() local 737 …clMemWrapper testGlobalArray = clCreateBuffer(_context, CL_MEM_READ_WRITE, globalBufferSize, NULL,… in runKernel()
|
D | TestNonUniformWorkGroup.h | 121 size_t adjustGlobalBufferSize(size_t globalBufferSize);
|