diff --git a/src/vt/objgroup/proxy/proxy_objgroup.impl.h b/src/vt/objgroup/proxy/proxy_objgroup.impl.h index e188bf0fe6..46cf20ad69 100644 --- a/src/vt/objgroup/proxy/proxy_objgroup.impl.h +++ b/src/vt/objgroup/proxy/proxy_objgroup.impl.h @@ -102,6 +102,9 @@ Proxy::broadcast(Params&&... params) const { auto msg = makeMessage(std::forward(params)...); return broadcastMsg(msg); } + + // Silence nvcc warning (no longer needed for CUDA 11.7 and up) + return typename Proxy::PendingSendType{std::nullptr_t{}}; } template diff --git a/src/vt/objgroup/proxy/proxy_objgroup_elm.impl.h b/src/vt/objgroup/proxy/proxy_objgroup_elm.impl.h index 9ff699b67f..dccd7b4f09 100644 --- a/src/vt/objgroup/proxy/proxy_objgroup_elm.impl.h +++ b/src/vt/objgroup/proxy/proxy_objgroup_elm.impl.h @@ -95,6 +95,9 @@ ProxyElm::send(Params&&... params) const { auto msg = makeMessage(std::forward(params)...); return sendMsg(msg); } + + // Silence nvcc warning (no longer needed for CUDA 11.7 and up) + return ProxyElm::PendingSendType{std::nullptr_t{}}; } template diff --git a/src/vt/vrt/collection/broadcast/broadcastable.impl.h b/src/vt/vrt/collection/broadcast/broadcastable.impl.h index 51f2e17d05..f48672da5e 100644 --- a/src/vt/vrt/collection/broadcast/broadcastable.impl.h +++ b/src/vt/vrt/collection/broadcast/broadcastable.impl.h @@ -197,6 +197,9 @@ Broadcastable::broadcast(Params&&... params) const { auto msg = makeMessage(std::forward(params)...); return broadcastMsg(msg); } + + // Silence nvcc warning (no longer needed for CUDA 11.7 and up) + return messaging::PendingSend{std::nullptr_t{}}; } template @@ -220,6 +223,9 @@ Broadcastable::broadcastCollective(Params&&... params) auto msg = makeMessage(std::forward(params)...); return broadcastCollectiveMsg(msg); } + + // Silence nvcc warning (no longer needed for CUDA 11.7 and up) + return messaging::PendingSend{std::nullptr_t{}}; } template diff --git a/src/vt/vrt/collection/send/sendable.impl.h b/src/vt/vrt/collection/send/sendable.impl.h index 9ae9cecb78..9118a84884 100644 --- a/src/vt/vrt/collection/send/sendable.impl.h +++ b/src/vt/vrt/collection/send/sendable.impl.h @@ -153,6 +153,9 @@ messaging::PendingSend Sendable::send(Params&&... params auto msg = makeMessage(std::forward(params)...); return sendMsg(msg); } + + // Silence nvcc warning (no longer needed for CUDA 11.7 and up) + return messaging::PendingSend{std::nullptr_t{}}; }