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

Function compare_compute_units

test/test_device.cpp:137–141  ·  view source on GitHub ↗

used to sort devices by number of compute units

Source from the content-addressed store, hash-verified

135
136// used to sort devices by number of compute units
137bool compare_compute_units(const boost::compute::device &a,
138 const boost::compute::device &b)
139{
140 return a.compute_units() < b.compute_units();
141}
142
143BOOST_AUTO_TEST_CASE(partition_by_counts)
144{

Callers

nothing calls this directly

Calls 1

compute_unitsMethod · 0.80

Tested by

no test coverage detected