MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / destroy

Method destroy

extensions/include/cuMat/src/Context.h:189–196  ·  view source on GitHub ↗

* \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. */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected