grid interface available when on gpu More...
grid interface available when on gpu
n_buf | number of template buffers |
Definition at line 149 of file map_grid_cuda_ker.cuh.
Public Types | |
typedef int | yes_i_am_grid |
it define that it is a grid | |
typedef T | value_type |
Type of the value the vector is storing. | |
Public Member Functions | |
__device__ __host__ | grid_gpu_ker (const linearizer &g1) |
__device__ __host__ | grid_gpu_ker (const grid_gpu_ker &cpy) |
__device__ __host__ void | constructor_impl (const grid_gpu_ker &cpy) |
__device__ __host__ void | constructor_impl (const grid_gpu_ker_ref< dim, T, layout_base, linearizer > &cpy) |
__device__ __host__ const grid_sm< dim, void > & | getGrid () const |
Return the internal grid information. | |
template<unsigned int p, typename ids_type , typename r_type = decltype(layout_base<T_>::template get<p>(data_,g1,grid_key_dx<dim>()))> | |
__device__ __host__ r_type | get (const grid_key_dx< dim, ids_type > &v1) |
Get the reference of the selected element. | |
template<unsigned int p, typename ids_type , typename r_type = decltype(layout_base<T_>::template get<p>(data_,g1,grid_key_dx<dim>()))> | |
__device__ __host__ r_type | get_debug (const grid_key_dx< dim, ids_type > &v1) const |
Get the const reference of the selected element. | |
template<unsigned int p, typename ids_type , typename r_type = decltype(layout_base<T_>::template get<p>(data_,g1,grid_key_dx<dim>()))> | |
__device__ __host__ r_type | get (const grid_key_dx< dim, ids_type > &v1) const |
Get the const reference of the selected element. | |
template<unsigned int p, typename r_type = decltype(layout_base<T_>::template get_lin<p>(data_,g1,0))> | |
__device__ __host__ r_type | get (const size_t lin_id) |
Get the reference of the selected element. | |
template<unsigned int p, typename r_type = decltype(layout_base<T_>::template get_lin<p>(data_,g1,0))> | |
__device__ __host__ const r_type | get (size_t lin_id) const |
Get the const reference of the selected element. | |
template<typename Tk > | |
__device__ encapc< dim, T_, layout > | get_o (const grid_key_dx< dim, Tk > &v1) |
Get the of the selected element as a boost::fusion::vector. | |
template<typename Tk > | |
__device__ const encapc< dim, T_, layout > | get_o (const grid_key_dx< dim, Tk > &v1) const |
Get the of the selected element as a boost::fusion::vector. | |
__device__ void | set (const grid_key_dx< dim > &key1, const grid_gpu_ker< dim, T_, layout_base, linearizer > &g, const grid_key_dx< dim > &key2) |
template<unsigned int ... prp> | |
__device__ void | set (const grid_key_dx< dim > &key1, const grid_gpu_ker< dim, T_, layout_base, linearizer > &g, const grid_key_dx< dim > &key2) |
template<typename Memory > | |
__device__ void | set (grid_key_dx< dim > key1, const encapc< 1, T, Memory > &obj) |
set an element of the grid | |
template<unsigned int p> | |
__device__ __host__ void * | getPointer () |
Get the pointer for the property p. | |
template<unsigned int p> | |
__device__ __host__ const void * | getPointer () const |
Get the pointer for the property p. | |
grid_gpu_ker< dim, T_, layout_base, linearizer > & | operator= (const grid_gpu_ker< dim, T_, layout_base, linearizer > &g) |
operator= this operator absorb the pointers, consider that this object wrap device pointers | |
struct ite_gpu< dim > | getGPUIterator (grid_key_dx< dim > &key1, grid_key_dx< dim > &key2, size_t n_thr=default_kernel_wg_threads_) const |
Get an iterator for the GPU. | |
__device__ __host__ layout & | get_data_ () |
Get the internal data_ structure. | |
__device__ __host__ const layout & | get_data_ () const |
Get the internal data_ structure. | |
Private Types | |
typedef apply_transform< layout_base, T >::type | T_ |
Type T. | |
typedef layout_base< T_ >::type | layout |
type of layout of the structure | |
Private Member Functions | |
template<typename ids_type > | |
__device__ __host__ bool | check_bound (const grid_key_dx< dim, ids_type > &v1) const |
Check that the key is inside the grid. | |
__device__ __host__ bool | check_bound (size_t v1) const |
Check that the key is inside the grid. | |
Private Attributes | |
linearizer | g1 |
grid information | |
layout | data_ |
layout data | |
|
private |
type of layout of the structure
Definition at line 158 of file map_grid_cuda_ker.cuh.
|
private |
Type T.
Definition at line 152 of file map_grid_cuda_ker.cuh.
typedef T grid_gpu_ker< dim, T, layout_base, linearizer >::value_type |
Type of the value the vector is storing.
Definition at line 202 of file map_grid_cuda_ker.cuh.
typedef int grid_gpu_ker< dim, T, layout_base, linearizer >::yes_i_am_grid |
it define that it is a grid
Definition at line 199 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 204 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 207 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 212 of file map_grid_cuda_ker.cuh.
|
inlineprivate |
Check that the key is inside the grid.
key |
Definition at line 172 of file map_grid_cuda_ker.cuh.
|
inlineprivate |
Check that the key is inside the grid.
key |
Definition at line 191 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 218 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 224 of file map_grid_cuda_ker.cuh.
|
inline |
Get the reference of the selected element.
v1 | grid_key that identify the element in the grid |
Definition at line 250 of file map_grid_cuda_ker.cuh.
|
inline |
Get the const reference of the selected element.
v1 | grid_key that identify the element in the grid |
Definition at line 286 of file map_grid_cuda_ker.cuh.
|
inline |
Get the reference of the selected element.
lin_id | linearized element that identify the element in the grid |
Definition at line 303 of file map_grid_cuda_ker.cuh.
|
inline |
Get the const reference of the selected element.
lin_id | linearized element that identify the element in the grid |
Definition at line 320 of file map_grid_cuda_ker.cuh.
|
inline |
Get the internal data_ structure.
Definition at line 473 of file map_grid_cuda_ker.cuh.
|
inline |
Get the internal data_ structure.
Definition at line 483 of file map_grid_cuda_ker.cuh.
|
inline |
Get the const reference of the selected element.
v1 | grid_key that identify the element in the grid |
Definition at line 268 of file map_grid_cuda_ker.cuh.
|
inline |
Get the of the selected element as a boost::fusion::vector.
Get the selected element as a boost::fusion::vector
v1 | grid_key that identify the element in the grid |
Definition at line 341 of file map_grid_cuda_ker.cuh.
|
inline |
Get the of the selected element as a boost::fusion::vector.
Get the selected element as a boost::fusion::vector
v1 | grid_key that identify the element in the grid |
Definition at line 362 of file map_grid_cuda_ker.cuh.
|
inline |
Get an iterator for the GPU.
start | starting point |
stop | end point |
Definition at line 463 of file map_grid_cuda_ker.cuh.
|
inline |
Return the internal grid information.
Return the internal grid information
Definition at line 237 of file map_grid_cuda_ker.cuh.
|
inline |
Get the pointer for the property p.
property | p |
Definition at line 428 of file map_grid_cuda_ker.cuh.
|
inline |
Get the pointer for the property p.
property | p |
Definition at line 438 of file map_grid_cuda_ker.cuh.
|
inline |
operator= this operator absorb the pointers, consider that this object wrap device pointers
object | to copy |
Definition at line 448 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 372 of file map_grid_cuda_ker.cuh.
|
inline |
Definition at line 386 of file map_grid_cuda_ker.cuh.
|
inline |
set an element of the grid
set an element of the grid
dx | is the grid key or the position to set |
obj | value to set |
Definition at line 413 of file map_grid_cuda_ker.cuh.
|
mutableprivate |
layout data
Definition at line 161 of file map_grid_cuda_ker.cuh.
|
private |
grid information
Definition at line 155 of file map_grid_cuda_ker.cuh.