yacx-YetAnotherCudaExecutor  0.6.2
wrapper to easily compile and execute cuda kernels
Public Member Functions | List of all members
yacx::Options Class Reference

Options for compiling a Program. More...

#include <Options.hpp>

Inheritance diagram for yacx::Options:
yacx::JNIHandle

Public Member Functions

 Options ()
 empty Options constructor
 
template<typename T >
 Options (const T &t)
 
template<typename T , typename... TS>
 Options (const T &t, const TS &... ts)
 
void insert (const std::string &op)
 
void insert (const std::string &name, const std::string &value)
 
template<typename T >
void insertOptions (const T &t)
 
template<typename T , typename... TS>
void insertOptions (const T &t, const TS &... ts)
 
const char ** content () const
 
auto numOptions () const
 

Detailed Description

Options for compiling a Program.

Examples
example_gauss.cpp, example_matrix_multiply.cpp, example_program.cpp, and example_template.cpp.

Constructor & Destructor Documentation

◆ Options() [1/2]

template<typename T >
yacx::Options::Options ( const T &  t)

construct Options with one Option

Template Parameters
Toptiontype, e.g. FMAD
Parameters
toption

◆ Options() [2/2]

template<typename T , typename... TS>
yacx::Options::Options ( const T &  t,
const TS &...  ts 
)

construct Options with multiple Option

Template Parameters
Toptiontype, e.g. FMAD
TSOption
Parameters
toptiontype, e.g. FMAD
tsOption

Member Function Documentation

◆ content()

const char ** Options::content ( ) const
Returns
c-style string array with all options

◆ insert() [1/2]

void Options::insert ( const std::string &  name,
const std::string &  value 
)

insert Option

Parameters
namee.g. "--fmad"
valuee.g. "false"

◆ insert() [2/2]

void Options::insert ( const std::string &  op)

insert Option

Parameters
ope.g. "--device-debug"

◆ insertOptions() [1/2]

template<typename T >
void yacx::Options::insertOptions ( const T &  t)

insert Option

Template Parameters
Toptiontype, e.g. FMAD
Parameters
tOption

◆ insertOptions() [2/2]

template<typename T , typename... TS>
void yacx::Options::insertOptions ( const T &  t,
const TS &...  ts 
)

insert multiple Options with multiple Option

Template Parameters
Toptiontype, e.g. FMAD
TSOption
Parameters
toptiontype, e.g. FMAD
tsOption

◆ numOptions()

auto yacx::Options::numOptions ( ) const
inline
Returns
number of Options

The documentation for this class was generated from the following files: