commit
9d7b6ebbf3
2 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,7 @@ In order to support development, this miner has 1-5% configurable dev fee - 1-5
|
||||||
## Releases
|
## 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).
|
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:
|
You can get the binaries from here:
|
||||||
https://github.com/bogdanadnan/ninjarig/releases
|
https://github.com/turtlecoin/ninjarig/releases
|
||||||
|
|
||||||
## Build it yourself - Linux
|
## Build it yourself - Linux
|
||||||
What you need:
|
What you need:
|
||||||
|
@ -36,7 +36,7 @@ $ export CC=gcc-8
|
||||||
$ export CXX=g++-8
|
$ export CXX=g++-8
|
||||||
|
|
||||||
# Clone Repository
|
# 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
|
# Make Build Repository
|
||||||
$ mkdir build && cd build
|
$ 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.
|
- in the CMD window opened, navigate to ninja folder.
|
||||||
- type the following commands:
|
- type the following commands:
|
||||||
```sh
|
```sh
|
||||||
$ git clone http://github.com/bogdanadnan/ninjarig.git
|
$ git clone https://github.com/turtlecoin/ninjarig.git
|
||||||
$ cd build_clang
|
$ cd build_clang
|
||||||
$ set CC=clang-cl
|
$ set CC=clang-cl
|
||||||
$ set CXX=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
|
$ cd ../build_vc
|
||||||
$ cmake ../ninjarig -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 15 2017 Win64"
|
$ cmake ../ninjarig -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 15 2017 Win64"
|
||||||
$ cd ../build_clang
|
$ cd ../build_clang
|
||||||
|
|
|
@ -274,6 +274,7 @@ bool CudaHasher::buildThreadData() {
|
||||||
thread_data.threadId = threadId;
|
thread_data.threadId = threadId;
|
||||||
|
|
||||||
cudaStream_t stream;
|
cudaStream_t stream;
|
||||||
|
cudaSetDevice(device->cudaIndex);
|
||||||
device->error = cudaStreamCreate(&stream);
|
device->error = cudaStreamCreate(&stream);
|
||||||
if(device->error != cudaSuccess) {
|
if(device->error != cudaSuccess) {
|
||||||
LOG("Error running kernel: (" + to_string(device->error) + ") cannot create cuda stream.");
|
LOG("Error running kernel: (" + to_string(device->error) + ") cannot create cuda stream.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue