* \brief Explicitly frees the context's resources. * Warning: use with care! All future calls on this context will fail * and the context can't be created again. * Use only if you shut down the CUDA driver before the normal program * termination. */
| 187 | * termination. |
| 188 | */ |
| 189 | void destroy() |
| 190 | { |
| 191 | if (stream_ != nullptr) |
| 192 | { |
| 193 | CUMAT_SAFE_CALL(cudaStreamDestroy(stream_)); |
| 194 | stream_ = nullptr; |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * \brief Returns the context of the current thread. |
nothing calls this directly
no outgoing calls
no test coverage detected