randomkang commented on code in PR #3144:
URL: https://github.com/apache/brpc/pull/3144#discussion_r4513231311
##########
src/brpc/policy/baidu_rpc_protocol.cpp:
##########
@@ -823,7 +829,21 @@ void ProcessRpcRequest(InputMessageBase* msg_base) {
butil::IOBuf req_buf;
int body_without_attachment_size = req_size -
meta.attachment_size();
- msg->payload.cutn(&req_buf, body_without_attachment_size);
+#if BRPC_WITH_GDR
+ bool is_gpu_memory = msg->payload.is_gpu_memory();
+ if (is_gpu_memory) {
+ if (!FillReqBufGpu(&req_buf, msg.get(),
body_without_attachment_size)) {
Review Comment:
OKļ¼the checksum_with_attachment has been supported when gdr is open. When
gdr and checksum_with_attachment both are open, 1) the data will be copied from
gpu to cpu and the checksum will be calced in sender 2) the data also wiil be
copied from gpu to cpu and checksum will be checked in receiver.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]