Commit a217c3b
committed
_get_arguments_info mustn't treat all error code as equal
As `arg_pos` is being incremented, eventually `CUDA_ERROR_INVALID_VALUE`
is expected when `arg_pos` exceeds the number of kernel arguments.
But other errors like CUDA_ERROR_INVALID_CONTEXT are possible, and they
should be treated as errors.
Failure to do that was behind the unintuitive behavior I reported in the PR.1 parent 9193901 commit a217c3b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| |||
0 commit comments