Searched refs:numGlobalThreads (Results 1 – 1 of 1) sorted by relevance
/external/OpenCL-CTS/test_conformance/atomics/ |
D | test_indexed_cases.cpp | 39 size_t numGlobalThreads, numLocalThreads; in test_atomic_add_index() local 55 numGlobalThreads = 2048; in test_atomic_add_index() 60 if( get_max_common_work_group_size( context, kernel, numGlobalThreads, &numLocalThreads ) ) in test_atomic_add_index() 64 (int)numGlobalThreads, (int)numLocalThreads); in test_atomic_add_index() 72 sizeof(cl_int) * numGlobalThreads, NULL, NULL); in test_atomic_add_index() 75 cl_int *values = (cl_int*) malloc(sizeof(cl_int)*numGlobalThreads); in test_atomic_add_index() 82 for (i=0; i<numGlobalThreads; i++) in test_atomic_add_index() 85 …err = clEnqueueWriteBuffer(queue, counters, true, 0, numGlobalThreads*sizeof(cl_int), values, 0, N… in test_atomic_add_index() 97 …err = clEnqueueNDRangeKernel( queue, kernel, 1, NULL, &numGlobalThreads, &numLocalThreads, 0, NULL… in test_atomic_add_index() 102 …err = clEnqueueReadBuffer( queue, counters, true, 0, sizeof(cl_int)*numGlobalThreads, values, 0, N… in test_atomic_add_index() [all …]
|