Beispiel #1
0
        public CUcontext PopCurrentContext()
        {
            CUcontext pctx = new CUcontext();

            if (_version >= 4000)
            {
                this.LastError = CUDADriver.cuCtxPopCurrent_v2(ref pctx);
            }
            else
            {
                this.LastError = CUDADriver.cuCtxPopCurrent(ref pctx);
            }
            this.curCtx = pctx;
            return(pctx);
        }