Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
TransformerEngine
Commits
f7608d89
Unverified
Commit
f7608d89
authored
May 09, 2023
by
Tim Moon
Committed by
GitHub
May 09, 2023
Browse files
Add instructions in cuDNN error message for cuDNN error logging (#204)
Signed-off-by:
Tim Moon
<
tmoon@nvidia.com
>
parent
83911ddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
transformer_engine/common/include/transformer_engine/logging.h
...former_engine/common/include/transformer_engine/logging.h
+9
-1
No files found.
transformer_engine/common/include/transformer_engine/logging.h
View file @
f7608d89
...
@@ -42,7 +42,15 @@ inline void check_cublas_(cublasStatus_t status) {
...
@@ -42,7 +42,15 @@ inline void check_cublas_(cublasStatus_t status) {
inline
void
check_cudnn_
(
cudnnStatus_t
status
)
{
inline
void
check_cudnn_
(
cudnnStatus_t
status
)
{
if
(
status
!=
CUDNN_STATUS_SUCCESS
)
{
if
(
status
!=
CUDNN_STATUS_SUCCESS
)
{
NVTE_ERROR
(
"CUDNN Error: "
+
std
::
string
(
cudnnGetErrorString
(
status
)));
std
::
string
message
;
message
.
reserve
(
1024
);
message
+=
"CUDNN Error: "
;
message
+=
cudnnGetErrorString
(
status
);
message
+=
(
". "
"For more information, enable cuDNN error logging "
"by setting CUDNN_LOGERR_DBG=1 and "
"CUDNN_LOGDEST_DBG=stderr in the environment."
);
NVTE_ERROR
(
message
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment