Skip to content

Commit

Permalink
doc to compile project
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxgear committed Mar 27, 2019
1 parent f68b6b4 commit 29b58ab
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Documentation

### Links

- [Download datasets](download-datasets.md)
- [Compile the project](compile-project.md)
- [Run speedup analysis notebooks](./speedup_analysis)
55 changes: 55 additions & 0 deletions doc/compile-project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
| Executables | Description |
|:------------|:--------------------------------------|
| `bwtzip` | Original sequential version of bwtzip |
| `bwtunzip` | Decompressor |
| `pbwtzip` | Parallel version (3-stage pipeline) |
| `pbwtzip2` | Parallel version (2-stage pipeline) |
| `tests` | Test to check pbwtzip and pbwtzip2 |


# Compile project

## Debug build

Fast way:

```bash
$ chmod +x ./script/*

$ ./script/build_debug.sh
```

Manually:

```bash
$ mkdir cmake-build-debug

$ cd cmake-build-debug

$ cmake -DCMAKE_BUILD_TYPE=Debug ..

$ make -j4
```

## Release build

Fast way:

```bash
$ chmod +x ./script/*

$ ./script/build_release.sh
```

Manually:

```bash
$ mkdir cmake-build-release

$ cd cmake-build-release

$ cmake -DCMAKE_BUILD_TYPE=Release ..

$ make -j4
```

46 changes: 46 additions & 0 deletions doc/speedup_analysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Speedup analysis of pbwtzip and pbwtzip2

- [pbwtzip_speedup_analysis.ipynb](./pbwtzip_speedup_analysis.ipynb)
- [pbwtzip2_speedup_analysis.ipynb](./pbwtzip2_speedup_analysis.ipynb)


## Run the notebooks

1. Install Python virtualenv

```bash
$ pip install virtualenv
```

2. Create a new virtual env inside the doc/speedup_analysis folder

```bash
$ cd doc/speedup_analysis
$ python3 -m venv ./venv
```

3. Install Python dependencies

```bash
# activate virtual env
$ source venv/bin/activate

# first upgrade pip
(venv) $ pip install --upgrade pip

(venv) $ pip install --upgrade -r requirements.txt

# deactivate virtual env
$ deactivate
```


4. Activate virtualenv and run Jupiter Notebook

```bash
$ source venv/bin/activate

(venv) $ jupyter notebook .
```

A new page on your browser should open with Jupyter running.

0 comments on commit 29b58ab

Please sign in to comment.