grid interface available when on gpu
More...
|
| __device__ unsigned int | size () const |
| | Return the size of the vector. More...
|
| |
| __device__ unsigned int | capacity () const |
| | return the maximum capacity of the vector before reallocation More...
|
| |
| __device__ auto | at (size_t id) const -> decltype(base.template get< 0 >(0)) |
| | Get an element of the vector. More...
|
| |
| __device__ auto | at (size_t id) -> decltype(base.template get< 0 >(0)) |
| | Get an element of the vector. More...
|
| |
| __device__ auto | get (size_t id) const -> decltype(base.template get< 0 >(0)) |
| | Get an element of the vector. More...
|
| |
| __device__ auto | get (size_t id) -> decltype(base.template get< 0 >(0)) |
| | Get an element of the vector. More...
|
| |
| __device__ __host__ void * | getPointer () |
| | Return the pointer to the chunk of memory. More...
|
| |
| __device__ __host__ const void * | getPointer () const |
| | Return the pointer to the chunk of memory. More...
|
| |
|
| vector_custd_ker (int v_size, const vector_gpu_ker< T_, layout_base > &cpy) |
| |
|
| unsigned int | v_size |
| |
|
vector_gpu_ker< T_, layout_base > | base |
| | 1-D static grid
|
| |
template<typename T, template< typename > class layout_base>
struct vector_custd_ker< T, layout_base >
grid interface available when on gpu
- Template Parameters
-
| n_buf | number of template buffers |
Definition at line 19 of file map_vector_std_cuda_ker.cuh.
◆ at() [1/2]
template<typename T , template< typename > class layout_base>
| __device__ auto vector_custd_ker< T, layout_base >::at |
( |
size_t |
id | ) |
-> decltype(base.template get<0>(0))
|
|
inline |
Get an element of the vector.
Get an element of the vector
- Template Parameters
-
- Parameters
-
- Returns
- the element value requested
Definition at line 94 of file map_vector_std_cuda_ker.cuh.
◆ at() [2/2]
template<typename T , template< typename > class layout_base>
| __device__ auto vector_custd_ker< T, layout_base >::at |
( |
size_t |
id | ) |
const -> decltype(base.template get<0>(0))
|
|
inline |
Get an element of the vector.
Get an element of the vector
- Template Parameters
-
- Parameters
-
- Returns
- the element value requested
Definition at line 79 of file map_vector_std_cuda_ker.cuh.
◆ capacity()
template<typename T , template< typename > class layout_base>
return the maximum capacity of the vector before reallocation
- Returns
- the capacity of the vector
Definition at line 64 of file map_vector_std_cuda_ker.cuh.
◆ get() [1/2]
template<typename T , template< typename > class layout_base>
| __device__ auto vector_custd_ker< T, layout_base >::get |
( |
size_t |
id | ) |
-> decltype(base.template get<0>(0))
|
|
inline |
Get an element of the vector.
Get an element of the vector
- Template Parameters
-
- Parameters
-
- Returns
- the element value requested
Definition at line 124 of file map_vector_std_cuda_ker.cuh.
◆ get() [2/2]
template<typename T , template< typename > class layout_base>
| __device__ auto vector_custd_ker< T, layout_base >::get |
( |
size_t |
id | ) |
const -> decltype(base.template get<0>(0))
|
|
inline |
Get an element of the vector.
Get an element of the vector
- Template Parameters
-
- Parameters
-
- Returns
- the element value requested
Definition at line 109 of file map_vector_std_cuda_ker.cuh.
◆ getPointer() [1/2]
template<typename T , template< typename > class layout_base>
◆ getPointer() [2/2]
template<typename T , template< typename > class layout_base>
| __device__ __host__ const void* vector_custd_ker< T, layout_base >::getPointer |
( |
| ) |
const |
|
inline |
◆ size()
template<typename T , template< typename > class layout_base>
◆ v_size
template<typename T , template< typename > class layout_base>
Actual size of the vector, warning: it is not the space allocated in grid grid size increase by a fixed amount every time we need a vector bigger than the actually allocated space
Definition at line 28 of file map_vector_std_cuda_ker.cuh.
The documentation for this struct was generated from the following file: