Repository navigation
Conversation
VincentCheungKokomo
force-pushed
the
pr/gpu-nvml-inprocess-sampling
branch
2 times, most recently
from
November 13, 2026 10:36
580da6d to
362bae4
Compare
Replace the per-tick nvidia-smi subprocess and the per-device cudarc context churn with in-process NVML reads (one pass per device: utilization, memory, temperature, power — the latter two previously unfilled on CUDA). nvml-wrapper dlopens libnvidia-ml.so by default but datacenter hosts usually ship only libnvidia-ml.so.1, so init falls back through versioned/absolute names; the legacy subprocess path remains as a lazy fallback when NVML cannot initialize. Removes the fork per sample tick (1 Hz debugging mode no longer spawns a subprocess per second; on the PPO workload above, sync_weight overhead halves 3.7%→1.8%). Note: low-frequency polling cost is unchanged — see the sampling-default-off PR for the measurement.
rustls 0.23.45 -> 0.23.46 (RUSTSEC-2026-0346..0349), rustls-webpki 0.103.15 -> 0.103.16 (RUSTSEC-2026-0382), webpki-roots 1.0.8 -> 1.0.12 (RUSTSEC-2026-0381). Advisory DB entries published after master's supply-chain fix; cargo deny --workspace check is green again.
make lint-rust builds the workspace with --no-default-features, where the NVML fast path is compiled out: GpuMemoryModel becomes an unused import (denied), so move it under #[cfg(feature = "cuda")]. Also bind nvml-wrapper to the cuda feature (optional dep) so builds without CUDA no longer warn about an unused dependency; with cuda enabled, tests still pass (16/16) and in-process sampling compiles.
VincentCheungKokomo
force-pushed
the
pr/gpu-nvml-inprocess-sampling
branch
from
November 16, 2026 03:17
6f876de to
daacc23
Compare
Published after the previous triage; fixed in 6.6.1 (upgrade still tracked with the tornado bump). Gate re-verified: 17 advisories, 0 not allowlisted.
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the per-tick nvidia-smi subprocess and the per-device cudarc context churn with in-process NVML reads (one pass per device: utilization, memory, temperature, power — the latter two previously unfilled on CUDA). nvml-wrapper dlopens libnvidia-ml.so by default but datacenter hosts usually ship only libnvidia-ml.so.1, so init falls back through versioned/absolute names; the legacy subprocess path remains as a lazy fallback when NVML cannot initialize. Removes the fork per sample tick (1 Hz debugging mode no longer spawns a subprocess per second; on the PPO workload above, sync_weight overhead halves 3.7%→1.8%). Note: low-frequency polling cost is unchanged — see the sampling-default-off PR for the measurement.