Merge pull request #5 from turtlecoin/dev

Dev
This commit is contained in:
Haifa Bogdan Adnan 2019-09-02 12:30:00 +03:00 committed by GitHub
commit 9d7b6ebbf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -12,7 +12,7 @@ In order to support development, this miner has 1-5% configurable dev fee - 1-5
## Releases
There are binaries compiled for Windows 10 and Linux/HiveOS. Just pick the one matching your OS and skip to usage information. If for some reason the binaries don't work for you or you want the cutting edge version of this software you can try building it yourself using below instructions (build instructions are only provided for Ubuntu, you will need to adapt them accordingly for other distribution).
You can get the binaries from here:
https://github.com/bogdanadnan/ninjarig/releases
https://github.com/turtlecoin/ninjarig/releases
## Build it yourself - Linux
What you need:
@ -36,7 +36,7 @@ $ export CC=gcc-8
$ export CXX=g++-8
# Clone Repository
$ git clone http://github.com/bogdanadnan/ninjarig.git && cd ninjarig
$ git clone https://github.com/turtlecoin/ninjarig.git && cd ninjarig
# Make Build Repository
$ mkdir build && cd build
@ -71,11 +71,11 @@ So, if you really really really want to do that, these are the basic steps you w
- in the CMD window opened, navigate to ninja folder.
- type the following commands:
```sh
$ git clone http://github.com/bogdanadnan/ninjarig.git
$ git clone https://github.com/turtlecoin/ninjarig.git
$ cd build_clang
$ set CC=clang-cl
$ set CXX=clang-cl
$ cmake ../ninjarig -DCMAKE_BUILD_TYPE=Release -WITH_CUDA=OFF -G "MinGW Makefiles"
$ cmake ../ninjarig -DCMAKE_BUILD_TYPE=Release -DWITH_CUDA=OFF -G "MinGW Makefiles"
$ cd ../build_vc
$ cmake ../ninjarig -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 15 2017 Win64"
$ cd ../build_clang

View file

@ -274,6 +274,7 @@ bool CudaHasher::buildThreadData() {
thread_data.threadId = threadId;
cudaStream_t stream;
cudaSetDevice(device->cudaIndex);
device->error = cudaStreamCreate(&stream);
if(device->error != cudaSuccess) {
LOG("Error running kernel: (" + to_string(device->error) + ") cannot create cuda stream.");