Esempio n. 1
0
        public void CopyArrayToHost <T>(CUarray devArray, T[] data, uint index)
        {
            GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned);

            this.LastError = CUDADriver.cuMemcpyAtoH(handle.AddrOfPinnedObject(), devArray, index, this.GetSize <T>(data));
            handle.Free();
        }