ViennaCL - The Vienna Computing Library  1.5.0
Data Structures | Typedefs | Functions
viennacl::generator::profiles Namespace Reference

Namespace holding the various device-specific parameters for generating the best kernels. More...

Data Structures

struct  map_wrapper
 Helper struct for mapping a std::map<KeyType, ValueType>. Used to avoids type length explosion when using nested std::map directly. More...
struct  expression_map
 Represents expression->profile in the map hierarchy vendor->device_type->device_arch->device->expression->profile. More...
struct  device_name_map
 Represents device->expression in the map hierarchy vendor->device_type->device_arch->device->expression->profile. More...
struct  device_architecture_map
 Represents device_arch->device in the map hierarchy vendor->device_type->device_arch->device->expression->profile. More...
struct  device_type_map
 Represents device_type->device_arch in the map hierarchy vendor->device_type->device_arch->device->expression->profile. More...
struct  database_type
 Represents vendor->device_type in the map hierarchy vendor->device_type->device_arch->device->expression->profile. More...

Typedefs

typedef cl_uint vendor_id_type
typedef cl_device_type device_type
typedef std::string device_name_type
typedef
viennacl::tools::shared_ptr
< profile_base
profile_base_ptr

Functions

void set_generation_default_to (database_type &map, vendor_id_type vendor_id, viennacl::ocl::device_architecture_family family, expression_key_type expression, std::string const &device_name)
 Set a default of a generation to a particular device for a particular operation.
void set_all_generation_default_to (database_type &map, vendor_id_type vendor_id, viennacl::ocl::device_architecture_family family, std::string const &device_name)
 Set a default of a generation to a particular device for all operations.

Detailed Description

Namespace holding the various device-specific parameters for generating the best kernels.


Typedef Documentation

typedef std::string device_name_type
typedef cl_device_type device_type
typedef cl_uint vendor_id_type

Function Documentation

void viennacl::generator::profiles::set_all_generation_default_to ( database_type &  map,
vendor_id_type  vendor_id,
viennacl::ocl::device_architecture_family  family,
std::string const &  device_name 
) [inline]

Set a default of a generation to a particular device for all operations.

void viennacl::generator::profiles::set_generation_default_to ( database_type &  map,
vendor_id_type  vendor_id,
viennacl::ocl::device_architecture_family  family,
expression_key_type  expression,
std::string const &  device_name 
) [inline]

Set a default of a generation to a particular device for a particular operation.