Lines Matching refs:refValues
67 bool (*VerifyRefsIntFn)( size_t size, cl_int *refValues, cl_int finalValue );
72 bool (*VerifyRefsLongFn)( size_t size, cl_long *refValues, cl_long finalValue );
77 bool (*VerifyRefsFloatFn)( size_t size, cl_float *refValues, cl_float finalValue );
127 void *refValues, *startRefValues; in test_atomic_function() local
215 refValues = (cl_int *)malloc( typeSize * threadSize ); in test_atomic_function()
287 …error = clEnqueueReadBuffer( queue, streams[1], true, 0, typeSize * threadSize, refValues, 0, NULL… in test_atomic_function()
319 cl_int *refs = (cl_int *)refValues; in test_atomic_function()
333 cl_long *refs = (cl_long *)refValues; in test_atomic_function()
353 if( !testFns.VerifyRefsFloatFn( threadSize, (cl_float *)refValues, *outValue ) != 0 ) in test_atomic_function()
362 if( !testFns.VerifyRefsIntFn( threadSize, (cl_int *)refValues, *outValue ) != 0 ) in test_atomic_function()
371 if( !testFns.VerifyRefsLongFn( threadSize, (cl_long *)refValues, *outValue ) != 0 ) in test_atomic_function()
396 error = clEnqueueReadBuffer( queue, streams[1], true, 0, typeSize, refValues, 0, NULL, NULL ); in test_atomic_function()
399 if( memcmp( refValues, destItems, typeSize ) != 0 ) in test_atomic_function()
404 cl_int *r = (cl_int *)refValues; in test_atomic_function()
411 cl_long *r = (cl_long *)refValues; in test_atomic_function()
419 free( refValues ); in test_atomic_function()
531 bool test_atomic_xchg_verify_int( size_t size, cl_int *refValues, cl_int finalValue ) in test_atomic_xchg_verify_int() argument
543 if( refValues[ i ] == INT_TEST_VALUE ) in test_atomic_xchg_verify_int()
549 if( refValues[ i ] < 0 || (size_t)refValues[ i ] >= size ) in test_atomic_xchg_verify_int()
551 … log_error( "ERROR: Reference value %ld outside of valid range! (%d)\n", i, refValues[ i ] ); in test_atomic_xchg_verify_int()
554 valids[ refValues[ i ] ] ++; in test_atomic_xchg_verify_int()
588 bool test_atomic_xchg_verify_long( size_t size, cl_long *refValues, cl_long finalValue ) in test_atomic_xchg_verify_long() argument
600 if( refValues[ i ] == LONG_TEST_VALUE ) in test_atomic_xchg_verify_long()
606 if( refValues[ i ] < 0 || (size_t)refValues[ i ] >= size ) in test_atomic_xchg_verify_long()
608 … log_error( "ERROR: Reference value %ld outside of valid range! (%lld)\n", i, refValues[ i ] ); in test_atomic_xchg_verify_long()
611 valids[ refValues[ i ] ] ++; in test_atomic_xchg_verify_long()
645 bool test_atomic_xchg_verify_float( size_t size, cl_float *refValues, cl_float finalValue ) in test_atomic_xchg_verify_float() argument
657 cl_int *intRefValue = (cl_int *)( &refValues[ i ] ); in test_atomic_xchg_verify_float()
664 if( refValues[ i ] < 0 || (size_t)refValues[ i ] >= size ) in test_atomic_xchg_verify_float()
666 … log_error( "ERROR: Reference value %ld outside of valid range! (%a)\n", i, refValues[ i ] ); in test_atomic_xchg_verify_float()
669 valids[ (int)refValues[ i ] ] ++; in test_atomic_xchg_verify_float()