Circular Buffer

Circular Buffer

From time to time,there is a need for dynamic buffer usage inside an application. One of the simple methods is just allocating and deallocating memory. This is however time consuming and leads to heap fragmentation, which continuously degrades performance. A good...
CUDA Unified Memory Sample

CUDA Unified Memory Sample

Old CUDA programmers (Like me) are used to use the cudaMemcpy() functions to transfer data to and from the GPU. Copying the data over PCI-Express is a necessary operation during each computation. I have written countless of functions and algorithms, that include some...