Skip to content

Commit 1e32f72

Browse files
authored
v0.8.1 release (#43)
[Minor Enhancement] Added missing enum handling code which allows forward compatibility to cudnn version. Co-authored-by: Anerudhan Gopal <[email protected]>
1 parent 8f488bd commit 1e32f72

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

include/cudnn_frontend_Operation.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@ class OperationBuilder_v8 {
563563
case CUDNN_POINTWISE_IDENTITY:
564564
m_operation.operationTag = "Identity";
565565
break;
566+
#endif
567+
#ifndef NO_DEFAULT_IN_SWITCH
568+
default:
569+
m_operation.operationTag = "UNKNOWN_POINTWISE_OPERATION";
570+
break;
566571
#endif
567572
}
568573

include/cudnn_frontend_PointWiseDesc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ class PointWiseDesc_v8 : public BackendDescriptor {
130130
#if (CUDNN_VERSION >= 8400)
131131
case CUDNN_POINTWISE_BINARY_SELECT:
132132
return 4;
133+
#endif
134+
#ifndef NO_DEFAULT_IN_SWITCH
135+
default:
136+
return -1;
133137
#endif
134138
}
135139
return -1;

0 commit comments

Comments
 (0)