Commit f7832b2
committed
Issue #4612 - add checks for error return types
cudart.cudaMemcpyAsync and cudart.cudaStreamSynchronize return a tuple
which leads to AttributeError as cudart.cudaGetErrorString(err) expects
a cudaError_t. This is solved by adding type check before passing it to
the raise function.1 parent a833f79 commit f7832b2
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments