-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adnan Ozsoy
committed
Sep 26, 2013
1 parent
63208ad
commit 85c6aa8
Showing
13 changed files
with
2,773 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
Oops, something went wrong.