Commit f166d18
authored
Reset CUDA error after cudaFuncSetAttribute (#504)
This PR fixes a bug which occures when `cudaFuncSetAttribute` is used to
conditionally check if there's enough shmem available to fit the HLL
sketch in. If it doesn't fit then the CUDA error returned by the
function is sticky and may resurface in downstream calls, e.g., Thrust.
The fix consists of flushing the CUDA error after the call to
`cudaFuncSetAttribute`.
Big thanks to @gevtushenko for tracking down this bug.1 parent 03304a3 commit f166d18
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
556 | 559 | | |
557 | 560 | | |
558 | 561 | | |
| |||
0 commit comments