NVSHMEM Interfaces
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(nvshmem_team_t), | public, | parameter | :: | NVSHMEM_TEAM_WORLD | = | nvshmem_team_t(0) |
Global NVSHMEM team. |
Allocates symmetric memory in the NVSHMEM heap.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_size_t), | value | :: | size |
Size of the allocation in bytes. |
Pointer to the allocated memory.
Frees symmetric memory allocated by nvshmem_malloc.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | ptr |
Pointer to the memory to free. |
Synchronizes all PEs (Processing Elements) on the specified stream.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dtfft_stream_t), | intent(in), | value | :: | stream |
CUDA stream for synchronization. |
Performs an all-to-all exchange of floating-point data on the specified stream.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(nvshmem_team_t), | intent(in), | value | :: | team |
NVSHMEM team. |
|
type(c_ptr), | value | :: | dest |
Destination buffer. |
||
type(c_ptr), | value | :: | source |
Source buffer. |
||
integer(kind=c_size_t), | intent(in), | value | :: | nelems |
Number of elements to exchange. |
|
type(dtfft_stream_t), | intent(in), | value | :: | stream |
CUDA stream for the operation. |
Completion status.
Returns a pointer to a symmetric memory location on a specified PE.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | ptr |
Local pointer to the symmetric memory. |
||
integer(kind=c_int), | value | :: | pe |
PE (Processing Element) number. |
Pointer to the symmetric memory on the specified PE.
Returns the PE (Processing Element) number of the calling thread.
PE number of the calling thread.
Completion status.
NVSHMEM team.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=c_int32_t), | public | :: | val |
Internal representation of the NVSHMEM team. |
Checks if pointer is a symmetric nvshmem allocated pointer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr) | :: | ptr |
Device pointer |
Result