Skip to content

Commit

Permalink
initial push
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan Ozsoy committed Sep 26, 2013
1 parent 63208ad commit 85c6aa8
Show file tree
Hide file tree
Showing 13 changed files with 2,773 additions and 2 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
main: main.c culzss gpu_compress deculzss gpu_decompress decompression
gcc -g -L /usr/local/cuda/lib64/ -lcudart -lpthread -o main main.c culzss.o gpu_compress.o deculzss.o gpu_decompress.o decompression.o

decompression: decompression.c decompression.h
gcc -g -c -lpthread -o decompression.o decompression.c

culzss: culzss.c culzss.h
gcc -g -c -lpthread -o culzss.o culzss.c

gpu_compress: gpu_compress.cu gpu_compress.h
nvcc -O3 -g -c -arch sm_20 -lpthread -o gpu_compress.o gpu_compress.cu

deculzss: deculzss.c deculzss.h
gcc -g -c -lpthread -o deculzss.o deculzss.c

gpu_decompress: gpu_decompress.cu gpu_decompress.h
nvcc -c -g -lpthread -o gpu_decompress.o gpu_decompress.cu

clean:
rm *.o

17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
CUDA_Compression
================
CUDA_Compression_tool
=====================

To compile, simply
$ make
Usage for compression: ./main -i {inputfile} -o {outputfile}

Usage for decompression: ./main -d 1 -i {inputfile} -o {outputfile}

---
Default buffer size for the GPU pipeline is set to at the top of the main.c file.
Change BUFSIZE macro to change that variable.
MINSIZE defines the minimum size required to make use of the GPU processing. Setting this
variable to a lower value can lead program to indefinite behaviour.

Loading

0 comments on commit 85c6aa8

Please sign in to comment.