GFC v1.1/v2.1


GFC is a GPU-based compressor/decompressor written in CUDA C for binary IEEE 754 64-bit double-precision floating-point data.

Click on GFC_11.cu or GFC_21.cu to download the source code. A description of GFC is available here. Sample little-endian datasets are available here. Note that GFC is protected by this License and that by downloading GFC you agree to the terms and conditions set forth in this license.

Important notice: The provided code is not meant to be used as is. (While it should work correctly, it is slow due to sequential data transfers.) Rather, it is meant as an example of how to call the parallel compression and decompression routines from your own code.

The source code can be compiled into an executable called GFC as follows:

v1.1 (compute capability 1.x)

nvcc -O3 GFC_11.cu -o GFC

v2.1 (compute capability 2.0)

nvcc -O3 -arch=sm_20 GFC_21.cu -o GFC

The executable compresses/decompresses the data set using x blocks and y warps/block, as well as an optional z parameter, which specifies the dimensionality of the data set (and which defaults, when not specified, to z=1). Data is compressed/decompressed from standard input and written to standard output. For best performance, x*y is recommended to be the maximum number of warps resident on the target GPU.

To compress the file file.in using 28 blocks and 18 warps/block with a dimensionality of 2 and store the result in a file called file.gfc, enter:

./GFC 28 18 2 < file.in > file.gfc

To decompress the file file.gfc and store the result in file file.out, enter:

./GFC < file.gfc > file.out

Note that the raw data file has to be a multiple of 8 bytes long and should contain nothing but binary double-precision values. Only little-endian systems are currently supported.


Publications

M. A. O'Neil and M. Burtscher. "Floating-Point Data Compression at 75 Gb/s on a GPU." Fourth Workshop on General Purpose Processing on Graphics Processing Units. March 2011. [pdf] [pptx]

Official Texas State University Disclaimer