public void AttachContext(CUcontext ctx, CUCtxFlags flags) { //this.LastError = CUDADriver.cuCtxAttach(ref this.curCtx, (uint) flags); this.LastError = CUDADriver.cuCtxAttach(ref ctx, (uint)flags); }