Home
last modified time | relevance | path

Searched refs:numDestItems (Results 1 – 2 of 2) sorted by relevance

/external/OpenCL-CTS/test_conformance/c11_atomics/
Dcommon.h970 cl_uint numDestItems = NumResults(threadCount, deviceID); in ExecuteSingleTest() local
986 programSource = PragmaHeader(deviceID) + ProgramHeader(numDestItems) in ExecuteSingleTest()
987 + FunctionCode() + KernelCode(numDestItems); in ExecuteSingleTest()
1069 numDestItems = NumResults(threadCount, deviceID); in ExecuteSingleTest()
1071 destItems.resize(numDestItems); in ExecuteSingleTest()
1072 for(cl_uint i = 0; i < numDestItems; i++) in ExecuteSingleTest()
1079 svmAtomicBuffer = (HostAtomicType*)malloc(typeSize * numDestItems); in ExecuteSingleTest()
1081 …clSVMAlloc(context, CL_MEM_SVM_FINE_GRAIN_BUFFER | CL_MEM_SVM_ATOMICS, typeSize * numDestItems, 0); in ExecuteSingleTest()
1087 memcpy(svmAtomicBuffer, &destItems[0], typeSize * numDestItems); in ExecuteSingleTest()
1089 typeSize * numDestItems, svmAtomicBuffer, NULL); in ExecuteSingleTest()
[all …]
/external/OpenCL-CTS/test_conformance/atomics/
Dtest_atomics.cpp234 …size_t numDestItems = ( testFns.NumResultsFn != NULL ) ? testFns.NumResultsFn( threadSize, dataTyp… in test_atomic_function() local
236 char * destItems = new char[ typeSize * numDestItems ]; in test_atomic_function()
243 for( size_t i = 0; i < numDestItems; i++ ) in test_atomic_function()
247 typeSize * numDestItems, destItems, NULL); in test_atomic_function()
271 error = clSetKernelArg( kernel, 2, typeSize * numDestItems, NULL ); in test_atomic_function()
274 cl_int numDestItemsInt = (cl_int)numDestItems; in test_atomic_function()
284 …error = clEnqueueReadBuffer( queue, streams[0], true, 0, typeSize * numDestItems, destItems, 0, NU… in test_atomic_function()
294 for( size_t i = 0; i < numDestItems; i++ ) in test_atomic_function()
386 for( size_t i = 0; i < numDestItems; i++ ) in test_atomic_function()
388 …error = clEnqueueWriteBuffer( queue, streams[0], true, 0, typeSize * numDestItems, destItems, 0, N… in test_atomic_function()