Open
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.