12 #include <ucp/api/ucp.h>
14 #include <ucxx/tag_probe.h>
15 #include <ucxx/typedefs.h>
50 const decltype(
_memoryType) memoryType = UCS_MEMORY_TYPE_HOST,
64 std::shared_ptr<::ucxx::Buffer>
_buffer{
nullptr};
135 const decltype(
_length) length,
137 const decltype(
_rkey) rkey);
166 const decltype(
_length) length,
168 const decltype(
_rkey) rkey);
243 const decltype(
_length) length,
244 const decltype(
_tag) tag);
273 const decltype(
_length) length,
274 const decltype(
_tag) tag,
331 const decltype(
_length)& length,
332 const decltype(
_isCUDA)& isCUDA,
333 const decltype(
_tag) tag);
362 using RequestData = std::variant<std::monostate,
377 template <
class... Ts>
379 using Ts::operator()...;
381 template <
class... Ts>
385 RequestData getRequestData(T t)
387 return std::visit([](
auto arg) -> RequestData {
return arg; }, t);
Data for an Active Message receive.
Definition: request_data.h:62
AmReceive()
Constructor for Active Message-specific receive data.
std::shared_ptr<::ucxx::Buffer > _buffer
The AM received message buffer.
Definition: request_data.h:64
Data for an Active Message send.
Definition: request_data.h:29
const size_t _length
The length of the message.
Definition: request_data.h:32
const ucs_memory_type_t _memoryType
Memory type used on the operation.
Definition: request_data.h:33
const void *const _buffer
The raw pointer where data to be sent is stored.
Definition: request_data.h:31
AmSend(const decltype(_buffer) buffer, const decltype(_length) length, const decltype(_memoryType) memoryType=UCS_MEMORY_TYPE_HOST, const decltype(_receiverCallbackInfo) receiverCallbackInfo=std::nullopt)
Constructor for Active Message-specific send data.
const std::optional< AmReceiverCallbackInfo > _receiverCallbackInfo
Owner name and unique identifier of the receiver callback.
Definition: request_data.h:34
Data for an endpoint close operation.
Definition: request_data.h:82
EndpointClose(const decltype(_force) force)
Constructor for endpoint close-specific data.
const bool _force
Whether to force endpoint closing.
Definition: request_data.h:84
Data for a flush operation.
Definition: request_data.h:102
Flush()
Constructor for flush-specific data.
Data for a memory receive.
Definition: request_data.h:148
void * _buffer
The raw pointer where received data should be stored.
Definition: request_data.h:150
const uint64_t _remoteAddr
Remote memory address to read from.
Definition: request_data.h:152
const size_t _length
The length of the message.
Definition: request_data.h:151
const ucp_rkey_h _rkey
UCX remote key associated with the remote memory address.
Definition: request_data.h:153
MemGet(decltype(_buffer) buffer, const decltype(_length) length, const decltype(_remoteAddr) remoteAddr, const decltype(_rkey) rkey)
Constructor for memory-specific data.
Data for a memory send.
Definition: request_data.h:117
const uint64_t _remoteAddr
Remote memory address to write to.
Definition: request_data.h:121
const size_t _length
The length of the message.
Definition: request_data.h:120
const ucp_rkey_h _rkey
UCX remote key associated with the remote memory address.
Definition: request_data.h:122
const void *const _buffer
The raw pointer where data to be sent is stored.
Definition: request_data.h:119
MemPut(const decltype(_buffer) buffer, const decltype(_length) length, const decltype(_remoteAddr) remoteAddr, const decltype(_rkey) rkey)
Constructor for memory-specific data.
Data for an Stream receive.
Definition: request_data.h:203
StreamReceive(decltype(_buffer) buffer, const decltype(_length) length)
Constructor for stream-specific data.
const size_t _length
The expected messaged length.
Definition: request_data.h:206
void * _buffer
The raw pointer where received data should be stored.
Definition: request_data.h:205
size_t _lengthReceived
The actual received message length.
Definition: request_data.h:207
Data for a Stream send.
Definition: request_data.h:179
const void *const _buffer
The raw pointer where data to be sent is stored.
Definition: request_data.h:181
const size_t _length
The length of the message.
Definition: request_data.h:182
StreamSend(const decltype(_buffer) buffer, const decltype(_length) length)
Constructor for stream-specific data.
Data for a multi-buffer Tag receive.
Definition: request_data.h:344
const ::ucxx::Tag _tag
Tag to match.
Definition: request_data.h:346
TagMultiReceive(const decltype(_tag) tag, const decltype(_tagMask) tagMask)
Constructor for receive multi-buffer tag-specific data.
const ::ucxx::TagMask _tagMask
Tag mask to use.
Definition: request_data.h:347
Data for a multi-buffer Tag send.
Definition: request_data.h:313
const std::vector< const void * > _buffer
Raw pointers where data to be sent is stored.
Definition: request_data.h:315
const ::ucxx::Tag _tag
Tag to match.
Definition: request_data.h:318
TagMultiSend(const decltype(_buffer)&buffer, const decltype(_length)&length, const decltype(_isCUDA)&isCUDA, const decltype(_tag) tag)
Constructor for send multi-buffer tag-specific data.
const std::vector< int > _isCUDA
Flags indicating whether the buffer is CUDA or not.
Definition: request_data.h:317
const std::vector< size_t > _length
Lengths of messages.
Definition: request_data.h:316
Data for a Tag receive using a message handle.
Definition: request_data.h:286
TagReceiveWithHandle(decltype(_buffer) buffer, std::shared_ptr< TagProbeInfo > probeInfo)
Constructor for tag receive with handle-specific data.
void * _buffer
The raw pointer where received data should be stored.
Definition: request_data.h:288
const std::shared_ptr< TagProbeInfo > _probeInfo
TagProbeInfo containing message length and handle.
Definition: request_data.h:289
Data for a Tag receive.
Definition: request_data.h:255
const ::ucxx::Tag _tag
Tag to match.
Definition: request_data.h:259
TagReceive(decltype(_buffer) buffer, const decltype(_length) length, const decltype(_tag) tag, const decltype(_tagMask) tagMask)
Constructor for tag-specific data.
void * _buffer
The raw pointer where received data should be stored.
Definition: request_data.h:257
const size_t _length
The length of the message.
Definition: request_data.h:258
const ::ucxx::TagMask _tagMask
Tag mask to use.
Definition: request_data.h:260
Definition: request_data.h:378