From bda613f86a2196a3de2550c22d6771403db8fa9c Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Fri, 3 Nov 2023 19:34:27 +0100 Subject: [PATCH] #2094: Fix compile issues --- examples/hello_world/objgroup.cc | 4 ++-- src/vt/objgroup/proxy/proxy_objgroup.h | 2 +- src/vt/objgroup/proxy/proxy_objgroup.impl.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/hello_world/objgroup.cc b/examples/hello_world/objgroup.cc index 538f90f2f0..d2ea40225c 100644 --- a/examples/hello_world/objgroup.cc +++ b/examples/hello_world/objgroup.cc @@ -75,8 +75,8 @@ int main(int argc, char** argv) { if (this_node == 0) { using namespace ::vt::group::region; - List list(List::ListType{0, 2, 4}); - proxy.broadcastToNodes<&MyObjGroup::handler>(std::move(list), 20, 40, 60); + Region::RegionUPtrType list = std::make_unique(List::ListType{0, 2, 4}); + proxy.broadcastToNodes<&MyObjGroup::handler>(std::move(list), 20, 40); } vt::theCollective()->barrier(); diff --git a/src/vt/objgroup/proxy/proxy_objgroup.h b/src/vt/objgroup/proxy/proxy_objgroup.h index 83a10e898e..bf57df9ac7 100644 --- a/src/vt/objgroup/proxy/proxy_objgroup.h +++ b/src/vt/objgroup/proxy/proxy_objgroup.h @@ -164,7 +164,7 @@ struct Proxy { PendingSendType broadcastToGroup(GroupType type, Args&&... args) const; template - PendingSendType broadcastToNodes(group::region::List&& nodes, Args&&... args) const; + PendingSendType broadcastToNodes(group::region::Region::RegionUPtrType&& nodes, Args&&... args) const; /** * \brief All-reduce back to this objgroup. Performs a reduction using diff --git a/src/vt/objgroup/proxy/proxy_objgroup.impl.h b/src/vt/objgroup/proxy/proxy_objgroup.impl.h index 8510be4a48..cd9acc6cb0 100644 --- a/src/vt/objgroup/proxy/proxy_objgroup.impl.h +++ b/src/vt/objgroup/proxy/proxy_objgroup.impl.h @@ -139,7 +139,7 @@ Proxy::broadcastToGroup(GroupType type, Params&&... params) const{ template template typename Proxy::PendingSendType -Proxy::broadcastToNodes(group::region::List&& nodes, Params&&... params) const{ +Proxy::broadcastToNodes(group::region::Region::RegionUPtrType&& nodes, Params&&... params) const{ // TODO: Should we cache it? const auto groupType = theGroup()->newGroup(std::move(nodes), [](GroupType type){}); return broadcastToGroup(groupType, std::forward(params)...);