| 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 and platform |
| 25 | std::cout << "hello from " << device.name(); |
| 26 | std::cout << " (platform: " << device.platform().name() << ")" << std::endl; |
| 27 | |
| 28 | return 0; |
| 29 | } |
| 30 | //] |