Update README.md
This commit is contained in:
parent
7506462840
commit
4c27065343
1 changed files with 26 additions and 6 deletions
32
README.md
32
README.md
|
@ -25,13 +25,33 @@ What you need:
|
||||||
- OpenSSL, libuv and microhttpd libraries and headers
|
- OpenSSL, libuv and microhttpd libraries and headers
|
||||||
|
|
||||||
Instructions:
|
Instructions:
|
||||||
- run the following snippet:
|
- run the following snippet taking the parts specific for your system (Ubuntu 16.04 or 18.04):
|
||||||
```sh
|
```sh
|
||||||
$ git clone http://github.com/bogdanadnan/ninjarig.git
|
# Install dependences 16.04/ Stretch
|
||||||
$ cd ninjarig
|
$ sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev
|
||||||
$ mkdir build
|
|
||||||
$ cd build
|
# 18.04/ Buster
|
||||||
$ cmake .. -DCMAKE_BUILD_TYPE=Release
|
$ sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev gcc-8 g++-8
|
||||||
|
$ export CC=gcc-8
|
||||||
|
$ export CXX=g++-8
|
||||||
|
|
||||||
|
# Clone Repository
|
||||||
|
$ git clone http://github.com/bogdanadnan/ninjarig.git && cd ninjarig
|
||||||
|
|
||||||
|
# Make Build Repository
|
||||||
|
$ mkdir build && cd build
|
||||||
|
|
||||||
|
# For CPU Only
|
||||||
|
$ cmake -DWITH_CUDA=OFF -DWITH_OPENCL=OFF .. -DCMAKE_BUILD_TYPE=RELEASE
|
||||||
|
|
||||||
|
# For CPU and OpenCL
|
||||||
|
$ cmake -DWITH_CUDA=OFF .. -DCMAKE_BUILD_TYPE=RELEASE
|
||||||
|
|
||||||
|
# For CPU and CUDA
|
||||||
|
$ cmake -DWITH_OPENCL=OFF .. -DCMAKE_BUILD_TYPE=RELEASE
|
||||||
|
|
||||||
|
# For CPU, OpenCL, and CUDA
|
||||||
|
$ cmake .. -DCMAKE_BUILD_TYPE=RELEASE
|
||||||
$ make
|
$ make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue