ViennaCL - The Vienna Computing Library  1.5.1
Namespaces | Functions
viennacl/traits/handle.hpp File Reference

Extracts the underlying OpenCL handle from a vector, a matrix, an expression etc. More...

#include <string>
#include <fstream>
#include <sstream>
#include "viennacl/forwards.h"
#include "viennacl/backend/mem_handle.hpp"

Go to the source code of this file.

Namespaces

namespace  viennacl
 

Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.


namespace  viennacl::traits
 

Namespace providing traits-information as well as generic wrappers to common routines for vectors and matrices such as size() or clear()


Functions

template<typename T >
viennacl::backend::mem_handlehandle (T &obj)
 Returns the generic memory handle of an object. Non-const version.
template<typename T >
viennacl::backend::mem_handle
const & 
handle (T const &obj)
 Returns the generic memory handle of an object. Const-version.
template<typename T >
viennacl::backend::mem_handle::ram_handle_typeram_handle (T &obj)
 Generic helper routine for extracting the RAM handle of a ViennaCL object. Non-const version.
template<typename T >
viennacl::backend::mem_handle::ram_handle_type
const & 
ram_handle (T const &obj)
 Generic helper routine for extracting the RAM handle of a ViennaCL object. Const version.
template<typename T >
viennacl::memory_types active_handle_id (T const &obj)
 Returns an ID for the currently active memory domain of an object.

Detailed Description

Extracts the underlying OpenCL handle from a vector, a matrix, an expression etc.