cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
A RAII-based mechanism for pushing a context onto the context stack for what remains of the current (C++ language) scope - making it the current context - then popping it back when exiting the scope - restoring the stack and the current context to what they had been previously. More...
#include <current_context.hpp>
Public Member Functions | |
scoped_override_t (device::primary_context_t &&primary_context) | |
scoped_override_t (const context_t &context) | |
scoped_override_t (context_t &&context) | |
A RAII-based mechanism for pushing a context onto the context stack for what remains of the current (C++ language) scope - making it the current context - then popping it back when exiting the scope - restoring the stack and the current context to what they had been previously.