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

Function generate_random_inputs

test_conformance/basic/test_barrier.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57void generate_random_inputs(std::vector<cl_int> &v)
58{
59 RandomSeed seed(gRandomSeed);
60
61 auto random_generator = [&seed]() {
62 return static_cast<cl_int>(
63 get_random_float(-0x01000000, 0x01000000, seed));
64 };
65
66 std::generate(v.begin(), v.end(), random_generator);
67}
68
69static int test_barrier_common(cl_device_id device, cl_context context,
70 cl_command_queue queue, int num_elements,

Callers 1

test_barrier_commonFunction · 0.70

Calls 3

get_random_floatFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected