diff --git a/README.md b/README.md index da8412a9..74b82cdb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/crypto/argon2_hasher/hash/gpu/cuda/CudaHasher.cpp b/src/crypto/argon2_hasher/hash/gpu/cuda/CudaHasher.cpp index 3aa8078c..60a6cbfd 100644 --- a/src/crypto/argon2_hasher/hash/gpu/cuda/CudaHasher.cpp +++ b/src/crypto/argon2_hasher/hash/gpu/cuda/CudaHasher.cpp @@ -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.");