clDNN
cldnn::engine_configuration Struct Reference

Configuration parameters for created engine. More...

#include <engine.hpp>

Public Member Functions

 engine_configuration (bool profiling=false, bool decorate_kernel_names=false, bool dump_custom_program=false, const std::string &options=std::string(), const std::string &single_kernel=std::string(), bool primitives_parallelisation=false, const std::string &engine_log=std::string(), const std::string &sources_dumps_dir=std::string(), uint32_t priority_mode=0)
 Constructs engine configuration with specified options. More...
 
 engine_configuration (const cldnn_engine_configuration &c_conf)
 
 operator::cldnn_engine_configuration () const
 Implicit conversion to C API cldnn_engine_configuration.
 

Public Attributes

const bool enable_profiling
 Enable per-primitive profiling.
 
const bool meaningful_kernels_names
 Generate meaniful names fo OpenCL kernels.
 
const bool dump_custom_program
 Dump the user OpenCL programs to files.
 
const std::string compiler_options
 OpenCL compiler options string.
 
const std::string single_kernel_name
 If provided, runs specific layer.
 
const bool enable_parallelisation
 Enables parallel execution of primitives which don't depend on each other. Disabled by default.
 
const std::string engine_log
 Specifies a file to which engine log should be dumped. Empty by default (means no logging).
 
const std::string sources_dumps_dir
 Specifies a directory where sources of cldnn::program objects should be dumped. Empty by default (means no dumping).
 
const uint32_t priority_mode
 Placeholder for priority mode (support of priority hints in command queue). Currently ignored.
 

Detailed Description

Configuration parameters for created engine.

Definition at line 37 of file engine.hpp.

Constructor & Destructor Documentation

◆ engine_configuration()

cldnn::engine_configuration::engine_configuration ( bool  profiling = false,
bool  decorate_kernel_names = false,
bool  dump_custom_program = false,
const std::string &  options = std::string(),
const std::string &  single_kernel = std::string(),
bool  primitives_parallelisation = false,
const std::string &  engine_log = std::string(),
const std::string &  sources_dumps_dir = std::string(),
uint32_t  priority_mode = 0 
)
inline

Constructs engine configuration with specified options.

Parameters
profilingEnable per-primitive profiling.
decorate_kernel_namesGenerate meaniful names fo OpenCL kernels.
dump_custom_programDump the custom OpenCL programs to files
optionsOpenCL compiler options string.
single_kernelIf provided, runs specific layer.

Definition at line 55 of file engine.hpp.


The documentation for this struct was generated from the following file: