| 21 | namespace compute = boost::compute; |
| 22 | |
| 23 | BOOST_AUTO_TEST_CASE(name) |
| 24 | { |
| 25 | compute::kernel foo = compute::kernel::create_with_source( |
| 26 | "__kernel void foo(int x) { }", "foo", context |
| 27 | ); |
| 28 | BOOST_CHECK_EQUAL(foo.name(), "foo"); |
| 29 | |
| 30 | compute::kernel bar = compute::kernel::create_with_source( |
| 31 | "__kernel void bar(float x) { }", "bar", context |
| 32 | ); |
| 33 | BOOST_CHECK_EQUAL(bar.name(), "bar"); |
| 34 | } |
| 35 | |
| 36 | BOOST_AUTO_TEST_CASE(arity) |
| 37 | { |