| 1769 | namespace cuda { |
| 1770 | |
| 1771 | CUcontext CurrentContextOrDie() { |
| 1772 | CUcontext current = nullptr; |
| 1773 | FAIL_IF_CUDA_RES_ERROR(cuCtxGetCurrent(¤t), |
| 1774 | "Failed to query current context"); |
| 1775 | return current; |
| 1776 | } |
| 1777 | |
| 1778 | } // namespace cuda |
| 1779 | } // namespace stream_executor |
no outgoing calls
no test coverage detected