1 #include <boost/program_options.hpp> 25 ::std::cout << *options << ::std::endl;
29 cout << e.what() << endl;
35 if(device.find_first_not_of(
"0123456789") == std::string::npos)
41 return std::cout << std::endl <<
"Kinfu is not supported for pre-Fermi GPU architectures, and not built for them by default. Exiting..." << std::endl, 1;
42 capture.
open(atoi(device.c_str()));
54 catch (
const std::bad_alloc& ) { std::cout <<
"Bad alloc" << std::endl; }
55 catch (
const std::exception& ) { std::cout <<
"Exception" << std::endl; }
int main(int argc, char *argv[])
const kaboom::Options * options
A class to parse the program options for the reconstruction executable.
KF_EXPORTS bool checkIfPreFermiGPU(int device)
string getInputDevice() const
Returns the output file name.
KF_EXPORTS void printShortCudaDeviceInfo(int device)
bool printUsage() const
Prints a usage message to stdout.
KF_EXPORTS void setDevice(int device)