AI Slop Code RIsk Monitor

NVIDIA/nccl

Optimized primitives for collective multi-GPU communication

8.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for NVIDIA/nccl, a C++ project with 5,152 GitHub stars. SynthScan examined 222,503 lines of code across 896 source files, recording 1262 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 8.8 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

8.8
Adjusted Signal
8.8
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
5.2K
Stars
C++
Language
222.5K
Lines of Code
896
Files
1.3K
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 830 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

Are imports declared and package/API names verified? 125 finding(s).

Agent Over-Engineering Ratio 21.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 464 finding(s).

PR Review Velocity Impact 36.3/100 · MEDIUM

Which changes need focused human review? 1262 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 57MEDIUM 231LOW 974

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1262 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators210 hits · 693 pts
SeverityFileLineSnippetContext
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py26 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py28 # =========================================================================COMMENT
MEDIUM⚡…_point_to_point/01_ring_pattern/python/ring_pattern.py43 # =========================================================================COMMENT
MEDIUM⚡…_point_to_point/01_ring_pattern/python/ring_pattern.py45 # =========================================================================COMMENT
MEDIUM⚡…_point_to_point/01_ring_pattern/python/ring_pattern.py54 # =========================================================================COMMENT
MEDIUM⚡…_point_to_point/01_ring_pattern/python/ring_pattern.py56 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py79 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py81 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py94 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py96 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py116 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py118 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py142 # =========================================================================COMMENT
MEDIUM…_point_to_point/01_ring_pattern/python/ring_pattern.py144 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py42 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py44 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py59 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py61 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py83 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py85 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py99 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py101 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py117 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py119 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py131 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py133 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py146 # =========================================================================COMMENT
MEDIUM…uffer_registration/01_allreduce/python/allreduce_ub.py148 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py26 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py28 # =========================================================================COMMENT
MEDIUM⚡…amples/03_collectives/01_allreduce/python/allreduce.py39 # =========================================================================COMMENT
MEDIUM⚡…amples/03_collectives/01_allreduce/python/allreduce.py41 # =========================================================================COMMENT
MEDIUM⚡…amples/03_collectives/01_allreduce/python/allreduce.py50 # =========================================================================COMMENT
MEDIUM⚡…amples/03_collectives/01_allreduce/python/allreduce.py52 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py72 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py74 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py86 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py88 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py107 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py109 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py125 # =========================================================================COMMENT
MEDIUM…amples/03_collectives/01_allreduce/python/allreduce.py127 # =========================================================================COMMENT
MEDIUM…ngle_process/python/multiple_devices_single_process.py26 # =========================================================================COMMENT
MEDIUM…ngle_process/python/multiple_devices_single_process.py28 # =========================================================================COMMENT
MEDIUM⚡…ngle_process/python/multiple_devices_single_process.py51 # =========================================================================COMMENT
MEDIUM⚡…ngle_process/python/multiple_devices_single_process.py53 # =========================================================================COMMENT
MEDIUM⚡…ngle_process/python/multiple_devices_single_process.py62 # =========================================================================COMMENT
MEDIUM⚡…ngle_process/python/multiple_devices_single_process.py64 # =========================================================================COMMENT
MEDIUM…ngle_process/python/multiple_devices_single_process.py89 # =========================================================================COMMENT
MEDIUM…ngle_process/python/multiple_devices_single_process.py91 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py40 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py42 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py57 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py59 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py82 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py84 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py98 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py100 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py112 # =========================================================================COMMENT
MEDIUM…e_per_process_mpi/python/one_device_per_process_mpi.py114 # =========================================================================COMMENT
150 more matches not shown…
Over-Commented Block551 hits · 476 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt181 # /Zc:preprocessor enables conformant preprocessor for proper variadic macro handling (needed for NVTX)COMMENT
LOWplugins/tuner/example/plugin.c1/*************************************************************************COMMENT
LOWplugins/tuner/example/plugin.c21#define CONFIG_FIELD_ALGORITHM 3COMMENT
LOWplugins/tuner/example/nccl/tuner.h41#define NCCL_PROTO_UNDEF -1COMMENT
LOWplugins/tuner/example/nccl/tuner.h81COMMENT
LOWplugins/tuner/example/nccl/tuner.h101 // Gets info (algo, protocol, number of ctas and threads) for a given collective.COMMENT
LOWplugins/tuner/example/nccl/tuner.h141 // Inputs:COMMENT
LOWplugins/tuner/example/nccl/tuner.h161 // - numProto: number of protocols in collCostTableCOMMENT
LOWplugins/tuner/example/nccl/tuner.h181 // context: tuner context objectCOMMENT
LOWplugins/tuner/basic/nccl/tuner.h41#define NCCL_PROTO_UNDEF -1COMMENT
LOWplugins/tuner/basic/nccl/tuner.h61COMMENT
LOWplugins/net/CMakeLists.txt1# Since all the plugins generate binary with the same name, build only one of themCOMMENT
LOWplugins/net/README.md81 // Connect to a handle and return a sending comm object for that peer.COMMENT
LOWplugins/net/example/nccl/net.h21COMMENT
LOWplugins/net/example/nccl/net_v6.h21 int maxRecvs; // Maximum number of grouped receives.COMMENT
LOWplugins/net/example/nccl/net_v6.h41 ncclResult_t (*connect)(int dev, void* handle, void** sendComm);COMMENT
LOWplugins/net/example/nccl/net_v2.h21 // as data from the current GPU. Supported types should be composed withCOMMENT
LOWplugins/net/example/nccl/net_v8.h41 // This call must not block for the connection to be established, and insteadCOMMENT
LOWplugins/net/example/nccl/net_v10.h41 size_t maxCollBytes; // Max transfer size for collective operationsCOMMENT
LOWplugins/net/example/nccl/net_v10.h61 // If *sendDevComm points to a valid object, then NCCL is requesting device offload for this connectionCOMMENT
LOWplugins/net/example/nccl/net_v5.h21 // Create a receiving object and provide a handle to connect to it. TheCOMMENT
LOWplugins/net/example/nccl/net_v4.h41 ncclResult_t (*accept)(void* listenComm, void** recvComm);COMMENT
LOWplugins/net/example/nccl/net_v11.h61COMMENT
LOWplugins/net/example/nccl/net_v11.h81 // Finalize connection establishment after remote peer has called connect.COMMENT
LOWplugins/net/example/nccl/net_v7.h41 // should return successfully with sendComm == NULL with the expectation thatCOMMENT
LOWplugins/net/example/nccl/net_v12.h81 // it will be called again until sendComm != NULL.COMMENT
LOWplugins/net/example/nccl/net_v9.h41 // Return the number of adapters.COMMENT
LOWplugins/net/example/nccl/net_v9.h61 // Register/Deregister memory. Comm can be either a sendComm or a recvComm.COMMENT
LOWplugins/net/example/nccl/net_v3.h21 // Get various device properties.COMMENT
LOWplugins/profiler/README.md61 // InputCOMMENT
LOWplugins/profiler/README.md81 // stopEvent - stop/finalize an event inside and event setCOMMENT
LOWplugins/profiler/inspector/inspector_ring.h1#ifndef INSPECTOR_INSPECTOR_RING_H_COMMENT
LOWplugins/profiler/inspector/nccl/profiler_v4.h81 struct {COMMENT
LOWplugins/profiler/inspector/nccl/profiler_v4.h101COMMENT
LOWplugins/profiler/inspector/nccl/profiler_v3.h81typedef struct {COMMENT
LOWplugins/profiler/inspector/nccl/profiler_v3.h101 // - eHandle: handle to event objectCOMMENT
LOWplugins/profiler/inspector/nccl/profiler_v2.h81 ncclResult_t (*init)(void** context, int* eActivationMask);COMMENT
LOWplugins/profiler/inspector/nccl/profiler_v1.h81 // InputCOMMENT
LOWplugins/profiler/inspector/nccl/profiler_v1.h101 // InputCOMMENT
LOWplugins/profiler/inspector/nccl/profiler_v5.h121 // - logfn : logger functionCOMMENT
LOWplugins/profiler/inspector/nccl/profiler_v5.h141 // - eHandle : handle to event object created through startEventCOMMENT
LOWplugins/profiler/example/event.h1/*************************************************************************COMMENT
LOWplugins/profiler/example/nccl/profiler_v4.h81COMMENT
LOWplugins/profiler/example/nccl/profiler_v4.h101 // - eDescr : pointer to ncclProfilerEventDescr_t objectCOMMENT
LOWplugins/profiler/example/nccl/profiler_v3.h81COMMENT
LOWplugins/profiler/example/nccl/profiler_v3.h101COMMENT
LOWplugins/profiler/example/nccl/profiler_v2.h81 // startEvent - initialize and start a new event for the supplied event descriptor inside the eventsetCOMMENT
LOWplugins/profiler/example/nccl/profiler_v1.h81 // - eActivationMask: bitmask of active events set by the pluginCOMMENT
LOWplugins/profiler/example/nccl/profiler_v5.h121 // - rank : rank identifier in communicatorCOMMENT
LOWplugins/profiler/example/nccl/profiler_v5.h141 // InputCOMMENT
LOWplugins/gin/example/nccl/gin_v13.h21typedef struct {COMMENT
LOWplugins/rma/example/nccl/rma_v14.h21 const char* name;COMMENT
LOW…rks/DeepEPv2_Analysis_Part1/DeepEPv2_Analysis_Part1.md1261agrs_buffer_slot_idx += 1;COMMENT
LOWdocs/examples/common/include/utils.h1/*************************************************************************COMMENT
LOWcontrib/nccl4rust/crates/nccl/src/types.rs141#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]COMMENT
LOWcontrib/nccl4rust/crates/nccl/src/types.rs221COMMENT
LOWcontrib/nccl4rust/crates/nccl/src/group.rs141 break;COMMENT
LOWcontrib/nccl4rust/crates/nccl/src/communicator.rs41///COMMENT
LOWcontrib/nccl4rust/crates/nccl-device/src/lib.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWcontrib/nccl4rust/crates/nccl-device/src/lib.rs261/// Translate a registered window offset for an LSA-local peer.COMMENT
491 more matches not shown…
Docstring Block Structure33 hits · 165 pts
SeverityFileLineSnippetContext
HIGHbindings/nccl4py/nccl/core/communicator.py970Initializes a new NCCL communicator. Creates a communicator that connects multiple ranks. This is a colSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py998Initializes multiple NCCL communicators for single-process multi-GPU operations. Creates an array of NCCL commuSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py1101Splits this communicator into sub-communicators based on color values. Ranks that pass the same ``color`` valueSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py1153Creates a new communicator by removing specified ranks from this one. Ranks listed in ``exclude_ranks`` are excSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py1233Grows the communicator by adding new ranks. Creates a new communicator that includes both existing ranks from STRING
HIGHbindings/nccl4py/nccl/core/communicator.py1700Maps a rank within ``team`` to its rank in this communicator. ``team`` is anchored at this rank, so ``team.rankSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py1722Maps a rank within ``team`` to its rank in the LSA team. The LSA-relative counterpart of :py:meth:`team_rank_toSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py2474Registers a buffer with this communicator for zero-copy communication. Registered buffers can enable performancSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py2512Collectively registers a local buffer into an NCCL window. This is a collective call: every rank in the communiSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py2564Creates a PreMulSum custom reduction operator. Performs ``output = scalar * sum(inputs)`` and is useful for STRING
HIGHbindings/nccl4py/nccl/core/communicator.py2674Creates a device communicator for device-side NCCL operations. This is a collective call: every rank in the comSTRING
HIGHbindings/nccl4py/nccl/core/communicator.py2799Queries communicator memory statistics. Args: stat: The memory statistic to query. ReturnsSTRING
HIGHbindings/nccl4py/nccl/core/cuda.py82Resolves a stream specification to a cuda.core.Stream. Args: stream: A Stream instance, an integer stream hSTRING
HIGHbindings/nccl4py/nccl/core/cuda.py112Resolves a CUDA stream specification to an integer ``cudaStream_t`` handle. Args: stream: A ``cuda.core.StrSTRING
HIGHbindings/nccl4py/nccl/core/cuda.py137Resolves a CUDA event specification to an integer ``cudaEvent_t`` handle. Args: event: A ``cuda.core.Event`STRING
HIGHbindings/nccl4py/nccl/core/resources.py319Returns the LSA multicast device pointer for this window. Returns a device pointer suitable for multicast operaSTRING
HIGHbindings/nccl4py/nccl/core/resources.py339Returns the multicast device pointer for this window and ``multimem``. Unlike :meth:`get_lsa_multimem_device_poSTRING
HIGHbindings/nccl4py/nccl/core/resources.py361Returns the LSA device pointer for a peer within the LSA team. Returns a device pointer to the peer's window buSTRING
HIGHbindings/nccl4py/nccl/core/resources.py380Returns a device pointer to a peer's window buffer by world rank. If the peer is not reachable via LSA, returnsSTRING
HIGHbindings/nccl4py/nccl/core/resources.py403Returns the multicast logical endpoint address for this window and offset. Args: offset: Byte offseSTRING
HIGHbindings/nccl4py/nccl/core/resources.py426Returns the logical endpoint address for a peer within ``cft_team``. Args: peer_cft: Rank within ``STRING
HIGHbindings/nccl4py/nccl/core/resources.py451Returns the logical endpoint address for a peer by world rank. Args: peer: World rank of the peer. STRING
HIGHbindings/nccl4py/nccl/core/resources.py650Returns the multimem handle requested for ``team``. The returned handle references storage owned by this resourSTRING
HIGHbindings/nccl4py/nccl/core/typing.py321Maps a NumPy dtype to its NCCL equivalent. Args: dtype: A NumPy dtype. Mapped first by name (for ``STRING
HIGHbindings/nccl4py/nccl/core/interop/cupy.py32Converts a CuPy dtype to NcclDataType. CuPy dtypes are NumPy dtype objects, so resolution is delegated to :py:mSTRING
HIGHbindings/nccl4py/nccl/core/interop/cupy.py67Allocates an NCCL-backed CuPy array on the current device. Args: shape: Shape of the array. dtype: STRING
HIGHbindings/nccl4py/nccl/core/interop/cupy.py98Creates an uninitialized CuPy array backed by NCCL-allocated memory. Returns an array filled with uninitialized datSTRING
HIGHbindings/nccl4py/nccl/core/interop/cupy.py150Resolves a CuPy array to its NCCL buffer descriptor. Args: array: CuPy array to resolve. Returns: STRING
HIGHbindings/nccl4py/nccl/core/interop/torch.py32Converts a PyTorch dtype to NcclDataType. torch.bool is mapped to UINT8 for convenience. float8_e4m3fn and floaSTRING
HIGHbindings/nccl4py/nccl/core/interop/torch.py84Parses a device specification into a CUDA device index. Args: device: Device specification (torch.device, iSTRING
HIGHbindings/nccl4py/nccl/core/interop/torch.py120Allocates an NCCL-backed PyTorch tensor. Args: shape: Shape of the tensor. dtype: PyTorch data typeSTRING
HIGHbindings/nccl4py/nccl/core/interop/torch.py166Creates an uninitialized PyTorch tensor backed by NCCL-allocated memory. Returns a tensor filled with uninitializedSTRING
HIGHbindings/nccl4py/nccl/core/interop/torch.py225Resolves a PyTorch tensor to its NCCL buffer descriptor. Args: tensor: PyTorch tensor to resolve. RetuSTRING
Hyper-Verbose Identifiers150 hits · 159 pts
SeverityFileLineSnippetContext
LOWplugins/tuner/example/scripts/optimize_config.py104 def auto_determine_size_ranges(self, data: List[PerformanceData]) -> Dict[Tuple[int, int], List[Tuple[int, int]]]:CODE
LOWplugins/tuner/example/scripts/optimize_config.py262 def combine_sequential_ranges(self, configs: List[Dict]) -> List[Dict]:CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py46def get_log_files_and_output_dir():CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py127def microseconds_to_human_readable(microseconds):CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py206def create_per_node_parquet_files(files, output_dir):CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py244def generate_combined_scatter_plot(df, comm_type, coll_type, output_file, max_cols=3):CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py356def summarize_data_per_comm_coll_type(output_root, comm_type, coll_type, output_dir_name):CODE
LOW⚡contrib/nccl_checkpoint/python/tests/test_unittest.py271def synchronize_multidevice_or_timeout(comms, timeout_s: float = 5.0) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py219def _expect_restore_unsafe_prepare_failure(request: pytest.FixtureRequest) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py324def _finalize_and_destroy_many(comms) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py350def test_empty_checkpointrestore(request: pytest.FixtureRequest, kvs_fixture, rank_info) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py469def test_restore_unsafe_window_user_ptr_prepare_fails(request: pytest.FixtureRequest, kvs_fixture, rank_info) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py493def test_restore_unsafe_custom_redop_prepare_fails(request: pytest.FixtureRequest, kvs_fixture, rank_info) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py510def test_restore_unsafe_dev_comm_prepare_fails(request: pytest.FixtureRequest, kvs_fixture, rank_info) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py583def test_even_ranks_two_gpus_same_process(request: pytest.FixtureRequest, kvs_fixture, comm_blocking: bool, rank_info) -CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py669def test_split_shared_resources_nocolor(request: pytest.FixtureRequest, kvs_fixture, comm_blocking: bool, rank_info) -> CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py702def test_shrink_shared_resources_excluded(request: pytest.FixtureRequest, kvs_fixture, comm_blocking: bool, rank_info) -CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py798def test_grow_preserves_parent(request: pytest.FixtureRequest, kvs_fixture, comm_blocking: bool, rank_info) -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_kv_store.py176def test_kv_set_get_round_trip() -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_kv_store.py184def test_kv_missing_key_timeout_is_quiet_until_timeout() -> None:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_kv_store.py196def test_kv_connect_timeout_is_reported_once() -> None:CODE
LOWcontrib/pace/test/test_sg.py80def _run_strided_validator_checks():CODE
LOWcontrib/pace/test/utils.py218def quant_per_token_cast_back(qopt, x_fp8: torch.Tensor, x_scales: torch.Tensor):CODE
LOWcontrib/nccl_ubx/bench/tests/test_smoke.py16 def test_parse_size_case_insensitive(self):CODE
LOWcontrib/nccl_ubx/bench/tests/test_smoke.py21 def test_bench_config_defaults(self):CODE
LOW⚡contrib/nccl_ubx/bench/tests/test_smoke.py35 def test_size_sweep_multiplicative(self):CODE
LOW⚡contrib/nccl_ubx/bench/tests/test_smoke.py41 def test_backends_to_test_all(self):CODE
LOW⚡contrib/nccl_ubx/bench/tests/test_smoke.py46 def test_backends_to_test_single(self):CODE
LOW⚡contrib/nccl_ubx/bench/tests/test_smoke.py51 def test_backends_to_test_comma_separated(self):CODE
LOW⚡contrib/nccl_ubx/bench/tests/test_smoke.py60 def test_compute_bandwidth_allreduce(self):CODE
LOW⚡contrib/nccl_ubx/bench/tests/test_smoke.py66 def test_compute_bandwidth_zero_time(self):CODE
LOWcontrib/nccl_ubx/tests/conftest.py8def pytest_collection_modifyitems(config, items):CODE
LOWcontrib/nccl_ubx/tests/test_symm_tensor.py118 def test_view_size_mismatch_raises(self, mock_pool, cuda_device):CODE
LOWcontrib/nccl_ubx/tests/test_symm_tensor.py127 def test_view_multiple_minus_one_raises(self, mock_pool, cuda_device):CODE
LOWcontrib/nccl_ubx/tests/test_symm_tensor.py183 def test_wrong_pool_dtype_raises(self, cuda_device):CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py192def test_query_api_no_params_returns_ok():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py266def test_query_supported_hw_global_aggregate():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py277def test_query_supported_hw_per_api():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py285def test_query_supported_hw_unknown_api_returns_error():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py291def test_query_supported_hw_aggregate_is_immutable():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py309def test_replay_param_added_optional():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py319def test_replay_param_added_required():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py329def test_replay_param_removed():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py339def test_replay_param_renamed():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py391def test_replay_sm_min_changed():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py399def test_replay_api_removed_sets_removed_in():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py407def test_replay_api_renamed_carries_spec_to_new_name():CODE
LOW⚡contrib/nccl_ubx/tests/test_api_registry.py447def test_query_api_advises_when_param_was_removed():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py136def test_get_version_matches_constant():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py140def test_api_log_is_a_list_of_events():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py213def test_query_api_unknown_name_returns_not_found(bogus_name):CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py221def test_query_api_unknown_param_returns_params_changed():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py238def test_query_api_multiple_unknown_params_listed_sorted():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py248def test_query_api_extra_optional_params_are_ok():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py352def test_replay_param_made_optional():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py362def test_replay_param_made_required():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py419def test_replay_description_changed():CODE
LOWcontrib/nccl_ubx/tests/test_api_registry.py429def test_replay_unknown_kind_is_ignored_forward_compat():CODE
LOWcontrib/nccl_ubx/tests/test_backend_detection.py27 def test_get_cuda_sm_version_no_crash(self):CODE
LOWcontrib/nccl_ubx/tests/test_backend_detection.py49 def test_allocator_symbol_is_bound(self, nccl_backend):CODE
90 more matches not shown…
Unused Imports118 hits · 116 pts
SeverityFileLineSnippetContext
LOWplugins/tuner/example/scripts/optimize_config.py45CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py18CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py24CODE
LOWcontrib/nccl_checkpoint/gen_shim.py24CODE
LOWcontrib/nccl_checkpoint/gen_shim.py25CODE
LOW…nccl_checkpoint/python/nccl_checkpoint/nccl_wrapper.py6CODE
LOW…rib/nccl_checkpoint/python/nccl_checkpoint/__init__.py4CODE
LOW…rib/nccl_checkpoint/python/nccl_checkpoint/__init__.py5CODE
LOW…rib/nccl_checkpoint/python/nccl_checkpoint/__init__.py5CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py4CODE
LOWcontrib/nccl_checkpoint/python/tests/test_kv_store.py4CODE
LOWcontrib/pace/setup.py4CODE
LOWcontrib/pace/setup.py6CODE
LOWcontrib/pace/test/test_sg.py1CODE
LOWcontrib/pace/test/test_sg.py9CODE
LOWcontrib/pace/test/test_ag.py1CODE
LOWcontrib/pace/test/test_ag.py9CODE
LOWcontrib/pace/test/test_ag.py11CODE
LOWcontrib/pace/test/test_ag.py12CODE
LOWcontrib/pace/test/test_rs.py1CODE
LOWcontrib/pace/test/test_rs.py9CODE
LOWcontrib/pace/test/test_rs.py12CODE
LOWcontrib/pace/pace/__init__.py1CODE
LOWcontrib/pace/pace/__init__.py5CODE
LOWcontrib/pace/pace/__init__.py5CODE
LOWcontrib/pace/pace/__init__.py6CODE
LOWcontrib/pace/pace/__init__.py6CODE
LOWcontrib/pace/pace/__init__.py6CODE
LOWcontrib/pace/pace/rs/__init__.py1CODE
LOWcontrib/pace/pace/rs/__init__.py2CODE
LOWcontrib/pace/pace/sg/__init__.py1CODE
LOWcontrib/pace/pace/sg/__init__.py2CODE
LOWcontrib/pace/pace/sg/sgcomm.py3CODE
LOWcontrib/pace/pace/ag/__init__.py1CODE
LOWcontrib/pace/pace/ag/__init__.py2CODE
LOWcontrib/pace/scripts/gen_rs_inst.py34CODE
LOWcontrib/pace/scripts/gen_sg_inst.py38CODE
LOWcontrib/nccl_ep/ep_test.py21CODE
LOWcontrib/nccl_ubx/setup.py4CODE
LOWcontrib/nccl_ubx/bench/tests/test_smoke.py3CODE
LOWcontrib/nccl_ubx/bench/ubx_bench/runner.py3CODE
LOWcontrib/nccl_ubx/bench/ubx_bench/configs.py3CODE
LOWcontrib/nccl_ubx/bench/ubx_bench/__main__.py7CODE
LOWcontrib/nccl_ubx/bench/ubx_bench/report.py3CODE
LOWcontrib/nccl_ubx/bench/ubx_bench/report.py7CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_reduce.py3CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_reduce.py10CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_gather.py3CODE
LOW…ubx/bench/ubx_bench/collectives/a2av_token_dispatch.py21CODE
LOW…trib/nccl_ubx/bench/ubx_bench/collectives/alltoallv.py3CODE
LOW…trib/nccl_ubx/bench/ubx_bench/collectives/alltoallv.py5CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_to_all.py3CODE
LOW…nccl_ubx/bench/ubx_bench/collectives/reduce_scatter.py3CODE
LOW…b/nccl_ubx/bench/ubx_bench/collectives/a2av_combine.py14CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/a2av_mxfp8.py3CODE
LOWcontrib/nccl_ubx/tests/conftest.py5CODE
LOWcontrib/nccl_ubx/tests/test_allocator_pool.py8CODE
LOWcontrib/nccl_ubx/tests/test_allocator_pool.py10CODE
LOWcontrib/nccl_ubx/tests/test_allocator_pool.py10CODE
LOW…nccl_ubx/tests/distributed/_workers/_run_a2av_mxfp8.py19CODE
58 more matches not shown…
Excessive Try-Catch Wrapping54 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUM⚡plugins/tuner/example/scripts/optimize_config.py179 print(f"Error: File {csv_file} not found")CODE
LOW⚡plugins/tuner/example/scripts/optimize_config.py181 except Exception as e:CODE
MEDIUM⚡plugins/tuner/example/scripts/optimize_config.py182 print(f"Error reading {csv_file}: {e}")CODE
MEDIUM⚡plugins/tuner/example/scripts/optimize_config.py367 print(f"Error: Permission denied writing to {config_file}")CODE
MEDIUM⚡plugins/tuner/example/scripts/optimize_config.py371 print(f"Error: Cannot create/write to {config_file}: {e}")CODE
LOW⚡plugins/tuner/example/scripts/optimize_config.py374 except Exception as e:CODE
MEDIUMplugins/tuner/example/scripts/optimize_config.py409 print("Error: Invalid size ranges format. Use 'min1-max1,min2-max2,...'")CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py193 except Exception as e:CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py388 except Exception as e:CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py422 except Exception as e:STRING
MEDIUMcontrib/nccl_checkpoint/python/tests/test_unittest.py30def _pick_local_port() -> int:CODE
LOW⚡contrib/nccl_checkpoint/python/tests/test_unittest.py263 except Exception:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py174 except Exception as err:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py297 except Exception:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py338 except Exception:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py587 except Exception as err:CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py610 except Exception as err:CODE
MEDIUM⚡contrib/pace/setup.py36 print(f"Error calling ncclGetVersion, return code: {result}")CODE
LOW⚡contrib/pace/setup.py46 except Exception as e:CODE
MEDIUM⚡contrib/pace/setup.py47 print(f"Error loading NCCL library: {e}")CODE
MEDIUMcontrib/pace/test/utils.py183 print(f'Error: {kernel_name} durations len {len(durations)} not divided by {num_kernels_per_period[kerneCODE
LOWcontrib/pace/pace/sg/sgcomm.py46 except Exception:CODE
MEDIUM⚡contrib/nccl_ep/ep_test.py189 print("Error: nRanks must be 2, 4 or multiple of 8 for this test")CODE
MEDIUM⚡contrib/nccl_ep/ep_test.py195 print("Error: -m is only applicable to HT mode (-a ht)")CODE
MEDIUM⚡contrib/nccl_ep/ep_test.py197 print("Error: -m (NCCL_EP_AUTO for max_dispatch_tokens_per_rank) is not yet supported.\n"CODE
MEDIUMcontrib/nccl_ep/ep_test.py210 print(f"Error: num_experts ({num_experts}) must be divisible by nRanks ({n_ranks})")CODE
MEDIUMcontrib/nccl_ep/ep_test.py214 print(f"Error: top_k ({top_k}) must be <= num_local_experts ({num_local_experts})")CODE
LOW…ubx/bench/ubx_bench/collectives/a2av_token_dispatch.py661 except Exception as e: # noqa: BLE001CODE
LOW…b/nccl_ubx/bench/ubx_bench/collectives/a2av_combine.py529 except Exception:CODE
LOW…/nccl_ubx/tests/distributed/_workers/_run_ubx_fused.py100 except Exception as e:CODE
LOW…/nccl_ubx/tests/distributed/_workers/_run_ubx_fused.py164 except Exception as e:CODE
LOW…/nccl_ubx/tests/distributed/_workers/_run_ubx_fused.py231 except Exception as e:CODE
LOW…/nccl_ubx/tests/distributed/_workers/_run_ubx_graph.py97 except Exception as e:CODE
LOW…/nccl_ubx/tests/distributed/_workers/_run_ubx_graph.py152 except Exception as e:CODE
LOW…ubx/tests/distributed/_workers/_run_ubx_convenience.py122 except Exception as e:CODE
LOW…rib/nccl_ubx/tests/distributed/_workers/_run_ubx_op.py132 except Exception as e:CODE
LOW…sts/distributed/_workers/_run_alltoall_lamport_hang.py183 except Exception as e:CODE
LOW…sts/distributed/_workers/_run_alltoall_lamport_hang.py198 except Exception as e:CODE
LOW…nccl_ubx/tests/distributed/_workers/_run_large_pool.py174 except Exception as e:CODE
LOW…nccl_ubx/tests/distributed/_workers/_run_large_pool.py186 except Exception as e:CODE
LOWcontrib/nccl_ubx/ubx/_nccl_backend.py42except Exception as _e: # pragma: no cover - depends on environmentCODE
LOW⚡contrib/nccl_ubx/ubx/_nccl_backend.py94 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/_nccl_backend.py111 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/_nccl_backend.py398 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/_nccl_backend.py404 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/_nccl_backend.py422 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/_nccl_backend.py431 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/allocator.py186 except Exception as _e:CODE
LOWcontrib/nccl_ubx/ubx/allocator.py339 except Exception:CODE
LOWcontrib/nccl_ubx/ubx/allocator.py347 except Exception:CODE
MEDIUMcontrib/nccl_ubx/ubx/allocator.py344def __del__(self):CODE
LOWbindings/nccl4py/nccl/core/communicator.py2749 except Exception:CODE
LOWsrc/misc/generate_git_version.py34 except Exception:CODE
MEDIUMsrc/misc/generate_git_version.py30def run_git(cmd, fallback="unknown"):CODE
Empty Error Handlers13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHcontrib/nccl_checkpoint/python/tests/test_unittest.py263except Exception:CODE
HIGHcontrib/nccl_checkpoint/python/tests/test_unittest.py297except Exception:CODE
HIGHcontrib/nccl_ubx/ubx/_nccl_backend.py431except Exception:CODE
HIGHcontrib/nccl_ubx/ubx/_nccl_backend.py398except Exception:CODE
HIGHcontrib/nccl_ubx/ubx/_nccl_backend.py404except Exception:CODE
HIGHcontrib/nccl_ubx/ubx/_nccl_backend.py422except Exception:CODE
HIGHcontrib/nccl_ubx/ubx/allocator.py347except Exception:CODE
HIGHcontrib/nccl_ubx/ubx/allocator.py339except Exception:CODE
HIGHbindings/nccl4py/nccl/core/communicator.py2749except Exception:CODE
HIGHbindings/nccl4py/nccl/core/utils.py111except (OSError, ValueError):CODE
HIGHbindings/nccl4py/nccl/core/utils.py123except (ImportError, RuntimeError, _nccl_bindings.NCCLError):CODE
HIGHbindings/nccl4py/nccl/core/buffer.py118except (ImportError, ModuleNotFoundError, NcclInvalid):CODE
HIGHbindings/nccl4py/nccl/core/buffer.py126except (ImportError, ModuleNotFoundError, NcclInvalid):CODE
Deep Nesting48 hits · 44 pts
SeverityFileLineSnippetContext
LOWplugins/tuner/example/scripts/optimize_config.py104CODE
LOWplugins/tuner/example/scripts/optimize_config.py167CODE
LOWplugins/tuner/example/scripts/optimize_config.py206CODE
LOWplugins/tuner/example/scripts/optimize_config.py262CODE
LOW…er/inspector/exporter/example/perf_summary_exporter.py146CODE
LOWcontrib/nccl_checkpoint/gen_shim.py247CODE
LOWcontrib/nccl_checkpoint/gen_shim.py263CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py60CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py247CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py271CODE
LOWcontrib/nccl_checkpoint/python/tests/test_unittest.py583CODE
LOWcontrib/nccl_checkpoint/python/tests/test_kv_store.py82CODE
LOWcontrib/pace/setup.py51CODE
LOWcontrib/pace/test/test_sg.py117CODE
LOWcontrib/pace/test/test_sg.py148CODE
LOWcontrib/pace/test/utils.py111CODE
LOWcontrib/pace/scripts/gen_rs_inst.py141CODE
LOWcontrib/pace/scripts/gen_sg_inst.py156CODE
LOWcontrib/nccl_ep/ep_test.py162CODE
LOWcontrib/nccl_ubx/bench/ubx_bench/runner.py52CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_reduce.py75CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_gather.py14CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_gather.py78CODE
LOW…ubx/bench/ubx_bench/collectives/a2av_token_dispatch.py130CODE
LOW…ubx/bench/ubx_bench/collectives/a2av_token_dispatch.py240CODE
LOW…ubx/bench/ubx_bench/collectives/a2av_token_dispatch.py443CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_to_all.py14CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/all_to_all.py82CODE
LOW…nccl_ubx/bench/ubx_bench/collectives/reduce_scatter.py13CODE
LOW…b/nccl_ubx/bench/ubx_bench/collectives/a2av_combine.py48CODE
LOW…b/nccl_ubx/bench/ubx_bench/collectives/a2av_combine.py263CODE
LOW…rib/nccl_ubx/bench/ubx_bench/collectives/a2av_mxfp8.py32CODE
LOWcontrib/nccl_ubx/tests/test_routing.py94CODE
LOW…ib/nccl_ubx/tests/distributed/_workers/_run_combine.py97CODE
LOW…rib/nccl_ubx/tests/distributed/_workers/_run_ubx_op.py65CODE
LOW…cl_ubx/tests/distributed/_workers/_run_alltoall_e2e.py48CODE
LOW…sts/distributed/_workers/_run_alltoall_lamport_hang.py134CODE
LOWcontrib/nccl_ubx/ubx/_api_registry.py367CODE
LOWcontrib/nccl_ubx/ubx/tensor.py112CODE
LOWcontrib/nccl_ubx/ubx/allocator.py350CODE
LOWcontrib/nccl_ubx/ubx/allocator.py376CODE
LOWcontrib/nccl_ubx/ubx/allocator.py1016CODE
LOWbindings/nccl4py/nccl/core/communicator.py802CODE
LOWbindings/nccl4py/nccl/core/communicator.py2559CODE
LOWbindings/nccl4py/nccl/core/resources.py678CODE
LOWbindings/nccl4py/nccl/core/interop/torch.py83CODE
LOWsrc/device/generate.py186CODE
LOWsrc/device/symmetric/generate.py99CODE
Modern Structural Boilerplate26 hits · 27 pts
SeverityFileLineSnippetContext
LOW…rib/nccl_checkpoint/python/nccl_checkpoint/__init__.py34__all__ = [CODE
LOWcontrib/nccl_ubx/ubx/__init__.py35__all__ = [CODE
LOWbindings/nccl4py/nccl/core/params.py18__all__ = ["params", "dump_params"]CODE
LOWbindings/nccl4py/nccl/core/memory.py25__all__ = ["NcclMemoryResource", "get_memory_resource"]CODE
LOWbindings/nccl4py/nccl/core/constants.py15__all__ = [CODE
LOWbindings/nccl4py/nccl/core/__init__.py43__all__ = [ # noqa: RUF022CODE
LOWbindings/nccl4py/nccl/core/team.py16__all__ = ["NCCLTeam"]CODE
LOWbindings/nccl4py/nccl/core/_binding_helpers.py28__all__ = ["PassBy", "Field", "LowppSpec", "LowppView"]CODE
LOWbindings/nccl4py/nccl/core/communicator.py64__all__ = [CODE
LOWbindings/nccl4py/nccl/core/utils.py26__all__ = [CODE
LOWbindings/nccl4py/nccl/core/buffer.py30__all__ = ["mem_alloc", "mem_free"]CODE
LOWbindings/nccl4py/nccl/core/group.py24__all__ = ["GroupSimInfo", "group_start", "group_end", "group"]CODE
LOWbindings/nccl4py/nccl/core/resources.py24__all__ = [CODE
LOWbindings/nccl4py/nccl/core/typing.py23__all__ = [CODE
LOWbindings/nccl4py/nccl/core/interop/cupy.py20__all__ = ["empty", "resolve_array"]CODE
LOWbindings/nccl4py/nccl/core/interop/torch.py20__all__ = ["empty", "resolve_tensor"]CODE
LOWbindings/nccl4py/nccl/core/device/cute/reduce_copy.py127__all__ = [CODE
LOWbindings/nccl4py/nccl/core/device/cute/coop.py123__all__ = [CODE
LOW⚡bindings/nccl4py/nccl/core/device/cute/handles.py170__all__ = [CODE
LOWbindings/nccl4py/nccl/core/device/cute/window.py243__all__ = ["Window"]CODE
LOWbindings/nccl4py/nccl/core/device/cute/comm.py397__all__ = [CODE
LOWbindings/nccl4py/nccl/core/device/cute/barrier.py429__all__ = [CODE
LOWbindings/nccl4py/nccl/core/device/cute/__init__.py40__all__ = [CODE
LOWbindings/nccl4py/nccl/core/device/cute/types.py107__all__ = [CODE
LOW⚡bindings/nccl4py/nccl/core/device/cute/runtime.py126__all__ = [CODE
LOWbindings/nccl4py/nccl/core/device/cute/gin.py414__all__ = [CODE
Cross-Language Confusion7 hits · 25 pts
SeverityFileLineSnippetContext
HIGH⚡contrib/nccl_checkpoint/python/tests/test_unittest.py276 event.record(cp.cuda.Stream.null)CODE
HIGHcontrib/nccl_checkpoint/python/tests/test_unittest.py249 event.record(cp.cuda.Stream.null)CODE
HIGH…ntrib/nccl_ubx/tests/distributed/test_ubx_fused_ops.py3These test the fused paths where gamma/residual_in are non-null,STRING
HIGH…/nccl_ubx/tests/distributed/_workers/_run_ubx_fused.py3Tests the fused paths where residual_in and/or gamma are non-null,STRING
HIGHbindings/nccl4py/nccl/core/communicator.py1422 """Integer value of the underlying :c:type:`ncclComm_t` (0 if destroyed or null)."""STRING
HIGHbindings/nccl4py/nccl/core/communicator.py1427 """Whether the communicator is valid (not destroyed or null)."""STRING
HIGHbindings/nccl4py/nccl/core/resources.py295 """Whether the window is still registered (not closed, handle non-null)."""STRING
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGH…uffer_registration/01_allreduce/python/allreduce_ub.py0determine the local rank of this process on its physical node. uses mpi_comm_split_type with mpi_comm_type_shared to splSTRING
HIGH…e_per_process_mpi/python/one_device_per_process_mpi.py0determine the local rank of this process on its physical node. uses mpi_comm_split_type with mpi_comm_type_shared to splSTRING
HIGH…5_symmetric_memory/02_allgather/python/allgather_ce.py0determine the local rank of this process on its physical node. uses mpi_comm_split_type with mpi_comm_type_shared to splSTRING
HIGH…5_symmetric_memory/01_allreduce/python/allreduce_sm.py0determine the local rank of this process on its physical node. uses mpi_comm_split_type with mpi_comm_type_shared to splSTRING
Redundant / Tautological Comments13 hits · 20 pts
SeverityFileLineSnippetContext
LOWplugins/tuner/example/scripts/optimize_config.py298 # Check if ranges are adjacent or overlappingCOMMENT
LOWplugins/tuner/example/scripts/optimize_config.py337 # Check if file exists and has contentCOMMENT
LOW…er/inspector/exporter/example/perf_summary_exporter.py150 # Check if parquet file exists and is newer than source fileCOMMENT
LOW…er/inspector/exporter/example/perf_summary_exporter.py160 # Check if file is empty or too smallCOMMENT
LOW…er/inspector/exporter/example/perf_summary_exporter.py360 # Check if there are any parquet filesCOMMENT
LOW…er/inspector/exporter/example/perf_summary_exporter.py393 # Check if any valid files remainCOMMENT
LOWdocs/userguide/build_docs.sh19# Check if doc directory existsCOMMENT
LOWdocs/userguide/build_docs.sh25# Check if requirements.txt existsCOMMENT
LOWdocs/userguide/build_docs.sh92# Check if build was successfulCOMMENT
LOWcontrib/niin/test/compat/run_nvshmem_tests.sh159 # Check if it's a known missing symbolCOMMENT
LOWcontrib/nccl_ubx/bench/ubx_bench/runner.py296 # Output results (rank 0 only)COMMENT
LOWbindings/nccl4py/examples/01_basic/01_allreduce.py45 # Assign GPU to each processCOMMENT
LOWbindings/nccl4py/examples/01_basic/02_send_recv.py51 # Assign GPU to each processCOMMENT
Structural Annotation Overuse9 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡…er/inspector/exporter/example/perf_summary_exporter.py515 # Step 1: Summarize data per communication and collective typeCOMMENT
LOW⚡…er/inspector/exporter/example/perf_summary_exporter.py518 # Step 2: Generate visualizations if data existsCOMMENT
LOWcontrib/nccl_ep/README.md238### Step 1: Build NCCL with Device API SupportCOMMENT
LOWcontrib/nccl_ep/README.md249### Step 2: Build NCCL EP Library and TestCOMMENT
LOW…ib/nccl_ubx/tests/distributed/_workers/_run_combine.py160 # Step 1: dispatch (bf16 wire) so expert_outputs are populated symmetrically.COMMENT
LOW…ib/nccl_ubx/tests/distributed/_workers/_run_combine.py171 # Step 2: combine.COMMENT
LOW⚡src/include/nccl_device/impl/reduce_copy__impl.h302 // Step 1: Process scalar prefix to achieve alignment (if needed)COMMENT
LOW⚡src/include/nccl_device/impl/reduce_copy__impl.h311 // Step 2: Process aligned bulk - match all_reduce.cuh strategy: check relative alignment and try pack sizesCOMMENT
LOWsrc/include/nccl_device/impl/reduce_copy__impl.h393 // Step 3: Scalar remainderCOMMENT
Verbosity Indicators8 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡…er/inspector/exporter/example/perf_summary_exporter.py515 # Step 1: Summarize data per communication and collective typeCOMMENT
LOW⚡…er/inspector/exporter/example/perf_summary_exporter.py518 # Step 2: Generate visualizations if data existsCOMMENT
LOW…ib/nccl_ubx/tests/distributed/_workers/_run_combine.py160 # Step 1: dispatch (bf16 wire) so expert_outputs are populated symmetrically.COMMENT
LOW…ib/nccl_ubx/tests/distributed/_workers/_run_combine.py171 # Step 2: combine.COMMENT
LOW⚡src/include/nccl_device/impl/reduce_copy__impl.h302 // Step 1: Process scalar prefix to achieve alignment (if needed)COMMENT
LOW⚡src/include/nccl_device/impl/reduce_copy__impl.h311 // Step 2: Process aligned bulk - match all_reduce.cuh strategy: check relative alignment and try pack sizesCOMMENT
LOWsrc/include/nccl_device/impl/reduce_copy__impl.h393 // Step 3: Scalar remainderCOMMENT
LOWsrc/include/nvtx3/nvtx3.hpp26/* This section handles the decision of whether to provide unversioned symbols.COMMENT
Self-Referential Comments4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMplugins/tuner/example/test/test_plugin.c569 fprintf(f, "# This file contains many configurations to test memory allocation\n");CODE
MEDIUMcontrib/pace/setup.py25 # Define the function prototypeCOMMENT
MEDIUMcontrib/nccl_ubx/tests/test_symm_tensor.py157 # Create a view — new SymmTensor at same offsetCOMMENT
MEDIUMbindings/nccl4py/nccl/core/communicator.py2660 # Create the custom reduction operatorCOMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWcontrib/nccl_m2n/tests/run_basic_api_tests.sh8# Usage:COMMENT
LOWcontrib/niin/test/run_all.sh6# Usage:COMMENT
LOWcontrib/niin/test/compat/run_nvshmem_tests.sh5# Usage:COMMENT
LOWcontrib/nccl_ep/tests/run_tests.sh9# Usage:COMMENT
LOWmaint/run-clang-format.sh12# Usage:COMMENT
AI Structural Patterns7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcontrib/pace/test/utils.py302CODE
LOWcontrib/nccl_ubx/tests/distributed/conftest.py93CODE
LOWcontrib/nccl_ubx/ubx/allocator.py479CODE
LOWcontrib/nccl_ubx/ubx/allocator.py526CODE
LOWcontrib/nccl_ubx/ubx/allocator.py573CODE
LOWbindings/nccl4py/nccl/core/device/cute/gin.py33CODE
LOWbindings/nccl4py/nccl/core/device/cute/gin.py105CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/niin/test/run_all.sh3# NIIN comprehensive test suite — functional + performance.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/include/collectives.h888 // Don't forget to receive at least once even if we don't send afterwardsCOMMENT