I am stuck. I have an application that uses Optix (currently on 6.0.0) to render some pictures. Sometimes, I get a failure to launch for one reason or another. Maybe I ran out of GPU memory, or maybe I wrote a bug in the kernal, etc.
The point is, I want to be able to recover from rare failures that I haven’t seen yet by deleting my context and rebuilding it. But it seems like once a launch fails, there is no recovering. Any attempt to destroy the context or anything attached to it throws an exception.
How can I destroy my context??? I figure this should be possible.