Call cuCtxtSynchronize and crash if it doesn't succeed.
| 151 | |
| 152 | // Call cuCtxtSynchronize and crash if it doesn't succeed. |
| 153 | void SynchronizeOrDie() { |
| 154 | FAIL_IF_CUDA_RES_ERROR(cuCtxSynchronize(), |
| 155 | "Synchronize fail: ", port::CurrentStackTrace()); |
| 156 | } |
| 157 | |
| 158 | struct ThreadLocalData { |
| 159 | int64 id; |
no test coverage detected