MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / l_set_randomly

Function l_set_randomly

test_conformance/basic/test_progvar.cpp:812–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810
811
812static void l_set_randomly(cl_uchar* buf, size_t buf_size,
813 RandomSeed& rand_state)
814{
815 assert(0 == (buf_size % sizeof(cl_uint)));
816 for (size_t i = 0; i < buf_size; i += sizeof(cl_uint))
817 {
818 *((cl_uint*)(buf + i)) = genrand_int32(rand_state);
819 }
820#if 0
821 for ( size_t i = 0; i < buf_size ; i++ ) {
822 printf("%02x",buf[i]);
823 }
824 printf("\n");
825#endif
826}
827
828// Return num_value values of the given type.
829// Returns CL_SUCCESS if they compared as equal.

Callers 3

l_write_read_for_typeFunction · 0.85
l_capacityFunction · 0.85

Calls 1

genrand_int32Function · 0.85

Tested by

no test coverage detected