Namespaces | Functions

/data/development/ViennaCL/dev/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 <CL/cl.h>

Go to the source code of this file.

Namespaces

namespace  viennacl
namespace  viennacl::traits

Functions

template<typename T >
viennacl::ocl::handle< cl_mem > handle (T &obj)
template<typename T >
viennacl::ocl::handle< cl_mem > handle (viennacl::vector_range< T > &obj)
template<typename T >
viennacl::ocl::handle< cl_mem > handle (viennacl::vector_range< T > const &obj)
template<typename T >
viennacl::ocl::handle< cl_mem > handle (viennacl::matrix_range< T > &obj)
template<typename T >
viennacl::ocl::handle< cl_mem > handle (viennacl::matrix_range< T > const &obj)

Detailed Description

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