JayBeams  0.1
Another project to have fun coding.
config.cpp
Go to the documentation of this file.
1 #include <jb/opencl/config.hpp>
2 
3 namespace jb {
4 namespace opencl {
5 namespace defaults {
6 
7 #ifndef JB_DEFAULT_device_name
8 #define JB_DEFAULT_device_name ""
9 #endif // JB_DEFAULT_device_name
10 
12 
13 } // namespace defaults
14 } // namespace opencl
15 } // namespace jb
16 
18  : device_name(
19  desc("device-name")
20  .help(
21  "When selecting an OpenCL device, prefer those matching this "
22  "name. If the name is empty (or no device by that name is "
23  "matched) select the GPU device with the largest number of "
24  "compute units. "
25  "If no GPU device is available, select a CPU device."),
26  this, defaults::device_name) {
27 }
Define defaults for program parameters.
std::string device_name(JB_DEFAULT_device_name)
#define JB_DEFAULT_device_name
Definition: config.cpp:8
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7