ViennaCL - The Vienna Computing Library  1.5.2
Namespaces | Macros | Enumerations
device_utils.hpp File Reference

Various utility implementations for dispatching with respect to the different devices available on the market. More...

#include <CL/cl.h>
#include <stddef.h>
#include <map>
#include <string>
#include "viennacl/forwards.h"

Go to the source code of this file.

Namespaces

 viennacl
 Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
 
 viennacl::ocl
 OpenCL backend. Manages platforms, contexts, buffers, kernels, etc.
 

Macros

#define VIENNACL_OCL_MAX_DEVICE_NUM   8
 
#define VIENNACL_DEVICE_MAP(device, arch)   if(name.find(device,0)!=std::string::npos) return arch;
 

Enumerations

enum  device_architecture_family {
  Tesla, Fermi, Kepler, Evergreen,
  NorthernIslands, SouthernIslands, UNKNOWN
}
 

Detailed Description

Various utility implementations for dispatching with respect to the different devices available on the market.

Macro Definition Documentation

#define VIENNACL_DEVICE_MAP (   device,
  arch 
)    if(name.find(device,0)!=std::string::npos) return arch;
#define VIENNACL_OCL_MAX_DEVICE_NUM   8