From 4c270653439ec5c017aac13e1f3213bbc3c4ef5d Mon Sep 17 00:00:00 2001 From: Haifa Bogdan Adnan Date: Fri, 30 Aug 2019 20:51:43 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 302d0359..82754717 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,33 @@ What you need: - OpenSSL, libuv and microhttpd libraries and headers Instructions: -- run the following snippet: +- run the following snippet taking the parts specific for your system (Ubuntu 16.04 or 18.04): ```sh -$ git clone http://github.com/bogdanadnan/ninjarig.git -$ cd ninjarig -$ mkdir build -$ cd build -$ cmake .. -DCMAKE_BUILD_TYPE=Release +# Install dependences 16.04/ Stretch +$ sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev + +# 18.04/ Buster +$ 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 ``` From d77b64a1cdf35049d6fefec6f40dd4ed92f1cc52 Mon Sep 17 00:00:00 2001 From: Haifa Bogdan Adnan Date: Fri, 30 Aug 2019 20:59:37 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 82754717..03763cfb 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ What you need: - CMake 3 - GCC & G++ version 7 or higher or LLVM/Clang 7 or higher. Provided binaries are compiled with Clang 8, it seems to give a slightly higher hashrate for CPU mining. - CUDA developer toolkit 9 or higher. Provided binaries are compiled with CUDA 10.1. Follow instructions from NVidia site to get the latest version up and running: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html (be careful that CUDA might have specific requirements for compiler version as well) -- OpenCL libraries and headers +- OpenCL libraries and headers (package ocl-icd-opencl-dev in Ubuntu/Debian) - OpenSSL, libuv and microhttpd libraries and headers Instructions: