nvidia / nccl
Code health
Hotspots average 2.9, the place fixes pay off most.
Explore this codebase
- Code health map106hotspots across 834 files
- Ownership273sole-owned files: one author, no second reader
- Architecture8modules, 13 entry points
- Decisions67recorded, of which 0 in force and 67 background
- Refactoring65open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
3 things worth doing in the week to Jun 10, the last indexed commit.
Worth planning
Address the finding in ncclDevrCommCreateInternal
src/dev_runtime.cc:1078
ncclDevrCommCreateInternal has a bumpy road finding; function changed in 14 commits; its file is imported by 8 files, changed 17 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Bumpy road
- size
- CCN 31, 204 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkAddress the finding in ncclCommMemResume
src/mem_manager.cc:527
ncclCommMemResume has a bumpy road finding; function changed in 2 commits; its file is imported by 1 file, changed 3 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Bumpy road
- size
- CCN 80, 302 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkAddress the finding in ipcHandleMultiSegmentRegistration
src/transport/p2p.cc:900
ipcHandleMultiSegmentRegistration has a bumpy road finding; function changed in 2 commits; its file is imported by 8 files, changed 8 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Bumpy road
- size
- CCN 19, 100 lines, nests 4 deep
- severity
- medium
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health2,387 open findingsCriticalUntested hotspot · src/transport.cc21 findings · 9.5 deducted
- Refactoring65 open opportunitiesMedium__init__+1.2 health, S effort · contrib/nccl_ubx/ubx/_nccl_backend.py
- Decisions0 drifting from the codeMediumcontrib/nccl_ep/nccl_ep.ccHigh-churn file with no governing decision
- Ownership273 sole-owned filesMediumbindings/nccl4py/nccl/ep/__init__.pyOne author, no second reader
- Dead code1,123LowGroupUnreachable class (89 lines)