Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure device context before launching kernel (#3731)
If a kernel is launched on a thread which has not initialized a CUDA context (as can happen in the linked issue), it will throw an error. A simple fix is to call `cudaFree(0)` to establish a device context. Fixes #3729
- Loading branch information