GithubHelp home page GithubHelp logo

gddcx / cs194-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cs194-project/cs194-project

0.0 0.0 0.0 0 B

Makefile 1.55% C 69.55% Cuda 5.47% C++ 3.07% Shell 1.12% XSLT 0.39% Roff 1.11% CSS 0.05% Perl 0.18% HTML 4.95% Objective-C 0.87% CMake 0.25% SAS 0.06% CLIPS 0.17% Pascal 2.21% Ada 2.80% Assembly 4.43% C# 1.75% Batchfile 0.01% M4 0.02%

cs194-project's Introduction

CS194 Fall 2015 Project
CUDA optimization of pigz


pigz folder contains pigz
zlib folder contains zlib

in zlib folder, "make USE_ORIGIN=1" to compile origin zlib
in zlib folder, "make" to compile cuda zlib
194culzss  contains a standalone compression CUDA  program.
--------------------------------------------------------------------------------------

Oct 31 2015

1. To compile and test the code,
   In the root folder
   "make" to build the code
   "make debug" (may need to make clean first) to build the code with debugging info
   "make test" to test the code
   "make clean" to delete the compiled outputs

2. To use cuda-gdb, make sure you have run "make clean && make debug"
   ./gdb.sh [compression level(optional)] [compressed file(optional)]

3. "make corpus" to download the corpus files

4. ./benchmark.sh to run a complete benchmark on compression level 9 on corpus files.

5. The corpus files are from Silesia.
   Besides the normal files, create a file "combined" which is the combination of all the other files.

6. Add perf_zlib.txt and perf_zopfli.txt which are the perf results of pigz with -9 and -11 respectively.

Example:
./gdb.sh
    This runs "pigz/pigz -k -9 corpus/dickens" in cuda-gdb. cuda-gdb immediately runs the program and stops at the beginning of main.

./gdb.sh 11
    This runs "pigz/pigz -k -11 corpus/dickens"

./gdb.sh 11 corpus/xml"
    This runs "pigz/pigz -k -11 corpus/xml"
   
Oct 24 2015

1. Now CUDA Toolchain is required to build zlib.
   Make sure CUDA is installed under /usr/local/cuda

2. You can add .cu files into zlib folder now.
   To let cuda functions runs in zlib, write cuda related code in .cu files only.
   Write a corresponding .h file and that the zlib source code includes that .h
   and then call the cuda function in zlib function.

3. Don't add extra .cu files to zlib folder because currently Makefile compiles
   all .cu files in that folder.

4. It is not required to rebuild pigz if zlib is rebuilt

TODO:
1. New added .h files are not detected by Makefile. Therefore, if you have
   made a changes in newly added .h files only, then make, you may encounter
   "Nothing to be done for all" error. You can do "make clean" then "make -j"
   to solve this problem. 

cs194-project's People

Contributors

harry-he avatar serige avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.