在创建时压入 CUDA 上下文,在销毁时弹出。 更多...
#include <utils.hpp>
公有成员函数 | |
PushAndPopContext (CUcontext ctx) | |
PushAndPopContext (PushAndPopContext const &)=delete | |
PushAndPopContext & | operator= (PushAndPopContext const &)=delete |
PushAndPopContext (PushAndPopContext &&)=delete | |
PushAndPopContext && | operator= (PushAndPopContext &&)=delete |