NVIDIA / NVIDIA/cuda-python

Support the driver error logging system

Open
#671 1 comment 0 reactions 1 assignee View on GitHub

@lijinf2 is already working on this.

Since May 28, 2026.

cuda.core feature P1
Dominant language
Cython
Stars
3.4k
Forks
329
Avg merge
1d 23h
Merged PRs (30d)
116

Description

xref: https://docs.nvidia.com/cuda/cuda-c-programming-guide/#error-log-management

Current thinking:

  • Prioritize for in-memory logging access (the file-based access can already be turned on easily by setting CUDA_LOG_FILE so only a very sophisticated logging API on the Python side would add value)
  • Provide a hook to a custom Python logger
  • Allow users to opt in via an API in cuda.core.utils, say, cuda.core.utils.{enable,disable}_logging(). This is a global logging at the driver level, so scoped logging (ex: context manager) does not seem to make much sense.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.