Home
last modified time | relevance | path

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

/external/OpenCL-CTS/test_conformance/atomics/
Dtest_atomics.cpp236 char * destItems = new char[ typeSize * numDestItems ]; in test_atomic_function() local
237 if( destItems == NULL ) in test_atomic_function()
244 memcpy( destItems + i * typeSize, startValue, typeSize ); in test_atomic_function()
247 typeSize * numDestItems, destItems, NULL); in test_atomic_function()
284 …error = clEnqueueReadBuffer( queue, streams[0], true, 0, typeSize * numDestItems, destItems, 0, NU… in test_atomic_function()
312 if( memcmp( expected, destItems + i * typeSize, typeSize ) != 0 ) in test_atomic_function()
316 cl_int *outValue = (cl_int *)( destItems + i * typeSize ); in test_atomic_function()
330 cl_long *outValue = (cl_long *)( destItems + i * typeSize ); in test_atomic_function()
352 cl_float *outValue = (cl_float *)destItems; in test_atomic_function()
361 cl_int *outValue = (cl_int *)destItems; in test_atomic_function()
[all …]
/external/OpenCL-CTS/test_conformance/c11_atomics/
Dcommon.h928 std::vector<HostAtomicType> destItems; in ExecuteSingleTest() local
1071 destItems.resize(numDestItems); in ExecuteSingleTest()
1073 destItems[i] = _startValue; in ExecuteSingleTest()
1087 memcpy(svmAtomicBuffer, &destItems[0], typeSize * numDestItems); in ExecuteSingleTest()
1094 typeSize * numDestItems, &destItems[0], NULL); in ExecuteSingleTest()
1163 hostThreadContexts[t].destMemory = UseSVM() ? svmAtomicBuffer : &destItems[0]; in ExecuteSingleTest()
1187 memcpy(&destItems[0], svmAtomicBuffer, typeSize*numDestItems); in ExecuteSingleTest()
1194 …ueueReadBuffer(queue, streams[0], CL_TRUE, 0, typeSize * numDestItems, &destItems[0], 0, NULL, NUL… in ExecuteSingleTest()
1210 if(expected != destItems[i]) in ExecuteSingleTest()
1213 … << " from kernel does not validate! (should be " << expected << ", was " << destItems[i] << ")\n"; in ExecuteSingleTest()
[all …]