13 #include <boost/program_options.hpp>
21 namespace po = boost::program_options;
25 po::options_description desc(
"Acts::Cuda::SeedFinder Test");
26 desc.add_options()(
"help,h",
"Produce a help message")(
27 "spFile,f", po::value<std::string>()->default_value(
"sp.txt"),
28 "SpacePoint text file name")(
29 "quiet,q", po::bool_switch(),
30 "Do not print the properties of the reconstructed seeds")(
31 "onlyGPU,g", po::bool_switch(),
32 "Run the seed finding using only the GPU implementation")(
33 "groupsToIterate,n", po::value<unsigned int>()->default_value(500),
34 "The number of groups to process as a maximum")(
35 "filterDuplicates,d", po::bool_switch(),
36 "Look for spacepoint duplicates in the input file, and remove them "
37 "(slow!)")(
"cudaDevice", po::value<int>()->default_value(0),
38 "The CUDA device to use in the test")(
39 "cudaDeviceMemory", po::value<unsigned int>()->default_value(0),
40 "The amount of CUDA device memory to use, in megabytes. By default it is"
41 " 80% of the available amount.");
45 po::store(po::parse_command_line(argc, argv, desc), vm);
49 if (vm.count(
"help")) {
50 std::cout << desc << std::endl;
56 quiet = vm[
"quiet"].as<
bool>();
57 onlyGPU = vm[
"onlyGPU"].as<
bool>();