public CUdevice GetContextDevice() { CUdevice device = new CUdevice(); this.LastError = CUDADriver.cuCtxGetDevice(ref device); return(device); }