Skip to content

nvtx: fix missing .get() on shared_ptr cast in RECV_SEGMENT_COMPLETE tracepoint#1221

Open
bibrakc wants to merge 1 commit intoaws:masterfrom
bibrakc:fix/nvtx-shared-ptr-cast
Open

nvtx: fix missing .get() on shared_ptr cast in RECV_SEGMENT_COMPLETE tracepoint#1221
bibrakc wants to merge 1 commit intoaws:masterfrom
bibrakc:fix/nvtx-shared-ptr-cast

Conversation

@bibrakc
Copy link
Copy Markdown
Contributor

@bibrakc bibrakc commented May 4, 2026

Description of changes:

One macro in include/tracing_impl/nvtx.h
(NCCL_OFI_TRACE_RECV_SEGMENT_COMPLETE_NVTX) casts request->comm->ep
directly, but since PR #1193 (shared_ptr refactor), ep is a
std::shared_ptr rather than a raw pointer. The cast fails to
compile with --with-nvtx=....

Add the missing .get() call. Every other similar cast in this
file already does this correctly; this single line was missed.

This went undetected because the CI matrix does not include an
--with-nvtx build. Adding NVTX to CI is a separate follow-up so
these kinds of regressions get caught before merge.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

NCCL_OFI_TRACE_RECV_SEGMENT_COMPLETE_NVTX cast request->comm->ep
directly, but since PR aws#1193 ep is a std::shared_ptr rather than a
raw pointer.  The cast fails to compile.  Add the missing .get()
call so NVTX builds succeed.

This went undetected because CI does not build with
--with-nvtx=...; a follow-up commit adds NVTX to the CI matrix
so regressions like this are caught before merge.

Signed-off-by: Bibrak Qamar Chandio <bibracha@amazon.com>
@bibrakc bibrakc requested a review from a team as a code owner May 4, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants