MCPcopy Create free account
hub / github.com/boostorg/compute / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/test_functional_hash.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace compute = boost::compute;
24
25BOOST_AUTO_TEST_CASE(hash_int)
26{
27 using compute::ulong_;
28
29 int data[] = { 1, 2, 3, 4 };
30 compute::vector<int> input_values(data, data + 4, queue);
31 compute::vector<ulong_> hash_values(4, context);
32
33 compute::transform(
34 input_values.begin(),
35 input_values.end(),
36 hash_values.begin(),
37 compute::hash<int>(),
38 queue
39 );
40}
41
42BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 3

transformFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected