diff --git a/src/TC/src/NppCommon.cpp b/src/TC/src/NppCommon.cpp index 3727ad79..ee08dc9d 100644 --- a/src/TC/src/NppCommon.cpp +++ b/src/TC/src/NppCommon.cpp @@ -1,4 +1,5 @@ #include "NppCommon.hpp" +#include "MemoryInterfaces.hpp" #include #include #include @@ -12,7 +13,7 @@ void SetupNppContext(CUcontext context, CUstream stream, memset(&nppCtx, 0, sizeof(nppCtx)); lock_guard lock(gNppMutex); - cuCtxPushCurrent(context); + CudaCtxPush ctxPush(context); CUdevice device; auto res = cuCtxGetDevice(&device);