| 17 | namespace compute = boost::compute; |
| 18 | |
| 19 | int main() |
| 20 | { |
| 21 | // get the default device |
| 22 | compute::device device = compute::system::default_device(); |
| 23 | |
| 24 | // print the device's name |
| 25 | std::cout << "hello from " << device.name() << std::endl; |
| 26 | |
| 27 | return 0; |
| 28 | } |
| 29 | //] |