Sync v13.5-public from internal repo

This commit is contained in:
cuda-samples sync
2026-11-04 20:44:00 +00:00
parent 5443602d89
commit a9315c55fb
53 changed files with 1750 additions and 183 deletions

View File

@@ -87,7 +87,12 @@ def print_driver_info() -> None:
"NVML bindings are not compatible with this driver; "
"device info will be limited."
)
print(f"Current process: {system.get_process_name(os.getpid())}")
try:
# On WSL, NVML can only name a PID that already holds a CUDA
# context, which this process doesn't have yet.
print(f"Current process: {system.get_process_name(os.getpid())}")
except system.NotFoundError as e:
print(f"Current process: unavailable ({e})")
def print_device_info(device: "system.Device") -> None: