Skip to content

Commit

Permalink
#2063: Update void* to std::byte*
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable authored and cwschilly committed Sep 20, 2024
1 parent ed38fdd commit 9f2defc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/vt/messaging/active.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,16 @@ EventType ActiveMessenger::sendMsgBytesWithPut(
verbose, active,
"sendMsgBytesWithPut: (put) put_ptr={}, size:[msg={},put={},rem={}],"
"dest={}, max_pack_size={}, direct_buf_pack={}\n",
put_ptr, base.size(), put_size, rem_size, dest, max_pack_direct_size,
print_ptr(put_ptr), base.size(), put_size, rem_size, dest, max_pack_direct_size,
print_bool(direct_buf_pack)
);
}
if (direct_buf_pack) {
new_msg_size = packMsg(msg, base.size(), reinterpret_cast<std::byte*>(put_ptr), put_size);
new_msg_size = packMsg(msg, base.size(), put_ptr, put_size);
} else {
auto const& env_tag = envelopeGetPutTag(msg->env);
auto const& ret = sendData(
PtrLenPairType{reinterpret_cast<std::byte*>(put_ptr),put_size}, dest, env_tag
PtrLenPairType{put_ptr,put_size}, dest, env_tag
);
auto const& ret_tag = ret.getTag();
if (ret_tag != env_tag) {
Expand Down
4 changes: 2 additions & 2 deletions src/vt/pipe/callback/cb_union/cb_raw_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct CallbackRawBaseSingle {
CallbackRawBaseSingle(
RawSendColDirTagType, PipeType const& in_pipe,
HandlerType const in_handler, AutoHandlerType const in_vrt_handler,
void* index_bits
std::byte* index_bits
);
CallbackRawBaseSingle(
RawBcastObjGrpTagType, PipeType in_pipe, HandlerType in_handler,
Expand Down Expand Up @@ -198,7 +198,7 @@ struct CallbackTyped : CallbackRawBaseSingle {
CallbackTyped(
RawSendColDirTagType, PipeType const& in_pipe,
HandlerType const in_handler, AutoHandlerType const in_vrt_handler,
void* index_bits
std::byte* index_bits
) : CallbackRawBaseSingle(
RawSendColDirTag,in_pipe,in_handler,in_vrt_handler,index_bits
)
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/greedylb/greedylb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void GreedyLB::transferObjs(std::vector<GreedyProc>&& in_load) {
max_recs, max_bytes
);
theCollective()->scatter<GreedyLBTypes::ObjIDType,recvObjsHan>(
max_bytes*load.size(),max_bytes,nullptr,[&](NodeType node, void* ptr){
max_bytes*load.size(),max_bytes,nullptr,[&](NodeType node, std::byte* ptr){
auto ptr_out = reinterpret_cast<GreedyLBTypes::ObjIDType*>(ptr);
auto const& proc = node_transfer[node];
auto const& rec_size = proc.size();
Expand Down

0 comments on commit 9f2defc

Please sign in to comment.