6 int main(
int argc,
char* argv[])
try {
11 std::cout <<
"jb::opencl::device_selector picked " << dev.name() << std::endl;
14 std::cerr <<
"usage: " << ex.what() << std::endl;
16 }
catch (std::exception
const& ex) {
17 std::cerr <<
"standard exception raised: " << ex.what() << std::endl;
20 std::cerr <<
"unknown exception raised" << std::endl;
Configure the OpenCL device / context options.
boost::compute::device device_selector(config const &cfg)
Select an OpenCL device matching the current configuration.
int main(int argc, char *argv[])
A simple class to communicate the result of parsing the options.
void process_cmdline(int &argc, char *argv[])
Process the command line.