Skip to content

Commit c8f54f9

Browse files
authored
[Bugfix, CuDNN] fix segfault when cudnnDestroy called with destroyed cuda context (#8267)
* fix: cudnnDestroy called after cuda context is over * refact: rename global var with `g_` * clang-format * refact: let cudnn handlers leak
1 parent b803bab commit c8f54f9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/runtime/contrib/cudnn/cudnn_utils.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,7 @@ CuDNNThreadEntry::CuDNNThreadEntry() {
115115
conv_entry.cuda_api = cuda_api;
116116
}
117117

118-
CuDNNThreadEntry::~CuDNNThreadEntry() {
119-
if (handle) {
120-
CUDNN_CALL(cudnnDestroy(handle));
121-
}
122-
}
118+
CuDNNThreadEntry::~CuDNNThreadEntry() {}
123119

124120
typedef dmlc::ThreadLocalStore<CuDNNThreadEntry> CuDNNThreadStore;
125121

0 commit comments

Comments
 (0)