Debugging

View as Markdown

For initial debugging, we recommend turning on the cuDNN frontend logging and checking for warnings and errors. The cuDNN frontend API logging records the execution flow through the cuDNN frontend API. This functionality is disabled by default, and can be enabled through methods described in this section.

Debugging by Using Environment Variables

Environment VariablesCUDNN_FRONTEND_LOG_INFO=0CUDNN_FRONTEND_LOG_INFO=1
CUDNN_FRONTEND_LOG_FILE not setNo LoggingNo Logging
CUDNN_FRONTEND_LOG_FILE set to stdout or stderrNo LoggingLogging to cout or cerr
CUDNN_FRONTEND_LOG_FILE set to filename.txtNo LoggingLogging to the filename

Debugging by Using API Calls

Calling cudnn_frontend::isLoggingEnabled() = true|false has the same effect of setting the environment variable. Calling cudnn_frontend::getStream() = stream_name can be used to assign the output stream directly.

For further debugging, refer to the Error Reporting and API Logging to turn on the cuDNN backend logs.