|
template<typename T , typename S > |
void | Grappa::memset (GlobalAddress< T > base, S value, size_t count) |
| Initialize an array of elements of generic type with a given value. More...
|
|
template<typename T , typename S > |
void | Grappa::memset (T *base, S value, size_t count) |
| Type-based memset for local arrays to match what is provided for distributed arrays. More...
|
|
template<typename T > |
void | Grappa::memcpy (GlobalAddress< T > dst, GlobalAddress< T > src, size_t nelem) |
| Memcpy over Grappa global arrays. More...
|
|
template<typename T > |
void | Grappa::memcpy (T *dst, T *src, size_t nelem) |
| Helper so we don't have to change the code if we change a Global pointer to a normal pointer (in theory). More...
|
|
template<> |
void | Grappa::memcpy< void > (void *dst, void *src, size_t nelem) |
|
template<GlobalCompletionEvent * GCE = &impl::local_gce, typename T = void> |
void | Grappa::memcpy_async (GlobalAddress< T > dst, GlobalAddress< T > src, size_t nelem) |
| Asynchronous version of memcpy, spawns only on cores with array elements. More...
|
|
template<typename T > |
void | Grappa::prefix_sum (GlobalAddress< T > array, size_t nelem) |
| not implemented yet More...
|
|
template<GlobalCompletionEvent * GCE = &impl::local_gce, typename T = void>
Asynchronous version of memcpy, spawns only on cores with array elements.
Synchronizes with given GlobalCompletionEvent, so memcpy's are known to be complete after GCE->wait(). Note: same restrictions on dst
and src
as Grappa::memcpy).
Definition at line 160 of file Array.hpp.
template<typename T , typename S >
void Grappa::memset |
( |
GlobalAddress< T > |
base, |
|
|
S |
value, |
|
|
size_t |
count |
|
) |
| |
Initialize an array of elements of generic type with a given value.
This version sends a large number of active messages, the same way as the Incoherent releaser, to set each part of a global array. In theory, this version should be able to be called from multiple locations at the same time (to initialize different regions of global memory).
- Parameters
-
base | Base address of the array to be set. |
value | Value to set every element of array to (will be copied to all the nodes) |
count | Number of elements to set, starting at the base address. |
Definition at line 60 of file Array.hpp.