Hi Nsight Systems team,
We are investigating a NCCL communicator initialization failure when launching a two-node GB300 application under Nsight Systems injection. The failure occurs with deferred collection, before any nsys start.
We have also reported this to the NCCL team: [Issue]: NCCL init fails under Nsight Systems on GB300 aarch64/MNNVL (2.30.7 stack; CUDA error 400) · Issue #2502 · NVIDIA/nccl · GitHub
Environment
-
Two GB300 nodes, four GPUs per node, eight ranks total.
-
Grace-Blackwell, Linux aarch64, containerized deployment.
-
Cross-node NVLink via MNNVL; IMEX daemon reported READY.
-
NVIDIA driver: 580.159.03.
-
Application: Kimi-K3 served by SGLang, TP8.
| Application stack | PyTorch | Reported NCCL version | Result under Nsight injection |
|---|---|---|---|
| SGLang 0.5.22 image | 2.14.1+cu130 | 2.30.7 | NCCL initialization fails |
| SGLang 0.5.21 image | 2.13.0+cu130 | 2.29.7 | Full capture succeeds and produces a usable report |
Both Nsight Systems versions below reproduce the failure on the newer stack:
-
2026.4.1.191, bundled with the image.
-
2026.5.1.161, aarch64 CLI package
nsight-systems-cli-2026.5.1_2026.5.1.161-1_arm64.deb.
The newer application stack can initialize without Nsight injection. However, the comparison between the two images changes PyTorch and other dependencies as well as NCCL, so we have not isolated an NCCL-only regression.
Failure
Launching the distributed service under nsys launch with deferred collection produces:
transport/p2p.cc:293 (ncclP2pImportShareableBuffer) NCCL WARN
Cuda failure 400 'invalid resource handle'
transport/p2p.cc:382 (p2pMap) -> 1
transport.cc:246 (ncclTransportP2pSetup) -> 1
RuntimeError: NCCL error: unhandled cuda error
In the public NCCL v2.30.7-1 source, the reported line corresponds to:
CUCHECK(cuMemImportFromShareableHandle(&handle, cuDesc, type));
Source: nccl/src/transport/p2p.cc at v2.30.7-1 · NVIDIA/nccl · GitHub
NCCL’s MNNVL initialization selects FABRIC handles, making this import path a candidate for investigation. We have not captured the actual handle arguments at failure or established whether the fault lies in NCCL, Nsight/CUPTI, the CUDA driver, or another stack difference.
Controls and attempted settings
-
A single-node, four-GPU all-reduce toy under injection does not reproduce the failure.
-
A two-process PyTorch CUDA-IPC toy passes both without injection and under injection on the newer stack.
-
Attempts with
NCCL_CUMEM_ENABLE=0,NCCL_P2P_DISABLE=1, orNCCL_NVLS_ENABLE=0did not avoid failure in our runs.
The NCCL_CUMEM_ENABLE=0 attempt reportedly produced the same source-line warning. This conflicts with the public source’s branch behavior, so effective per-rank settings and runtime-loaded library paths need revalidation. We are not treating that result as proof that the setting is ignored.
NCCL 2.29.7 already contains the same shareable-handle import branch; we are not claiming that FABRIC import was newly introduced in 2.30.
Additional profiler-session symptom
In some other runs, the application initialized, but the deferred profiler session became unavailable after CUDA/NCCL initialization. Later collection/finalization reported “No deferred collections to finalize.”
We do not yet know whether this has the same root cause as the explicit import failure.
Questions
Is this a known interaction involving Nsight Systems injection and NCCL/MNNVL initialization on GB300 aarch64?
Are there recommended trace options, diagnostic logs, or diagnostic builds to distinguish CUDA tracing/injection behavior from NCCL or driver initialization?
The failure is currently reproduced with the full two-node service; a standalone reproducer is not available yet. Would a two-node nccl-tests reproducer or a direct CUDA FABRIC export/import test be more useful?
The linked NCCL issue contains the current environment matrix and source references. Happy to run targeted diagnostics and provide additional results. Thanks!