This class contain a list of all tracked vector_dist_ker around. More...
This class contain a list of all tracked vector_dist_ker around.
In short suppose to do a auto vdk = vd.toKernel() vdk wrap the cuda pointer of vd. On the other hand if in vd we use instruction that produce reallocations vdk contain invalid pointers. this class contail a list of all vector_dist_kernel, such that if a reallocation happen the pointer are updated on the vector_dist_kernel
Definition at line 36 of file vector_dist_operators_list_ker.hpp.
#include <vector_dist_operators_list_ker.hpp>
Public Member Functions | |
void | add (vector_dist_ker_type &v, bool is_sorted) |
Add a new vector_dist_kernel to track. | |
void | update (const vector_dist_ker_type &v) |
Update the addresses of all vector_dist_kernels around. | |
void | update_sort (const vector_dist_ker_type &vs) |
void | remove (vector_dist_ker_type &v) |
Remove one vector_dist_kernels entry. | |
size_t | n_entry () |
Return the number of entries. | |
bool | check (const vector_dist_ker_type &v) |
Check that all the entries are aligned to the latest vector_dist_ker_type. | |
Private Attributes | |
openfpm::vector< ref_wrap< vector_dist_ker_type > > | vkers |
|
inline |
Add a new vector_dist_kernel to track.
v | vector_dist_kernel to track |
Definition at line 48 of file vector_dist_operators_list_ker.hpp.
|
inline |
Check that all the entries are aligned to the latest vector_dist_ker_type.
Definition at line 117 of file vector_dist_operators_list_ker.hpp.
|
inline |
Return the number of entries.
Definition at line 107 of file vector_dist_operators_list_ker.hpp.
|
inline |
Remove one vector_dist_kernels entry.
v | vector_dist_kernel to remove |
Definition at line 90 of file vector_dist_operators_list_ker.hpp.
|
inline |
Update the addresses of all vector_dist_kernels around.
v | vector_dist_kernel to track |
Definition at line 66 of file vector_dist_operators_list_ker.hpp.
|
inline |
Definition at line 75 of file vector_dist_operators_list_ker.hpp.
|
private |
Definition at line 38 of file vector_dist_operators_list_ker.hpp.