Coder Social home page Coder Social logo

xmr-stak-nvidia's Introduction

XMR-Stak is now supporting CPU, AMD and NVIDIA GPUs in a unified miner.

Our new repository is https://github.com/fireice-uk/xmr-stak.

Please use our new miner, the old version is retired and unsupported.

xmr-stak-nvidia's People

Contributors

fireice-uk avatar psychocrypt avatar wseng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xmr-stak-nvidia's Issues

"No Cuda Device Found"

Hi,

Compile went fine, but it can't seem to find GPU? -

`XMR-Stak-NVIDIA mining software, NVIDIA Version.
NVIDIA mining code was written by KlausT and psychocrypt.
Brought to you by fireice_uk under GPLv3.

Configurable dev donation level is set to 1 %

You can use following keys to display reports
'h' - hashrate
'r' - results
'c' - connection


[2017-03-24 00:27:58] : Connecting to pool pool.supportxmr.com:3333 ...
No CUDA device found!
[2017-03-24 00:27:58] : Setup failed for GPU 0. Exitting.
`
This would be Linux x86_64, Nvidia GT760. Any thoughts?

Best,

constant compute errorsq

2x GTX1070fe

Error details:
| Count | Error text | Last seen |
| 233 | [GPU COMPUTE ERROR] | 2017-07-01 18:37:07 |

"gpu_threads_conf" : [
{ "index" : 0,
"threads" : 64, "blocks" : 45,
"bfactor" : 0, "bsleep" : 0,
"affine_to_cpu" : false,
},
{ "index" : 1,
"threads" : 64, "blocks" : 45,
"bfactor" : 0, "bsleep" : 0,
"affine_to_cpu" : false,
},
],

is this config issue what changes would fix this?

AutoConfig Improvements

Instead of just displaying to the user the recommend settings the miner should auto apply it without the requirement to change the file and restart the miner.
There could be a option "recommend_settings" that will always ignore the values on the config file and in the case that this option is set to false it will just use the values on the file.

Can't figure out how to build on windows

I've installed Visual Studio and even the CUDA runtime, and still I'm getting all sorts of dependency errors. Some better documentation on how to build this on Windows would be nice. I've tried using cmake on windows to generate the project and it just gives me this "module machine type 'x64' conflicts with target machine type 'X86'" error I can't figure out. I've set every possible thing to X64. So that avenue is a bust.

Another error with cuda 7.5

@psychocrypt I also get errors while building (dry system without a card)

fireice@LAP440:~/xmr-stak-nvidia$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
fireice@LAP440:~/xmr-stak-nvidia$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
fireice@LAP440:~/xmr-stak-nvidia/build$ cmake -DCUDA_ARCH=50 ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fireice/xmr-stak-nvidia/build
fireice@LAP440:~/xmr-stak-nvidia/build$ make
[  4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
   return (char *) memcpy (__dest, __src, __n) + __n;
                                          ^
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_core.cu.o.cmake:266 (message):
  Error generating file
  /home/fireice/xmr-stak-nvidia/build/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_core.cu.o


CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:205: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o' failed
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

The problem when I compiled on Fedora 25

I have installed the kernel-devel dkms-nvidia nvidia-driver-cuda cuda-devel cuda-cudnn-devel.
But I have CUDA 8.0, and GCC 6, so I tried to use clang to compile it.

export CC=/usr/bin/clang-3.9

export CXX=/usr/bin/clang-3.9

cmake .

-- The C compiler identification is Clang 3.9.1
-- The CXX compiler identification is Clang 3.9.1
-- Check for working C compiler: /usr/bin/clang-3.9
-- Check for working C compiler: /usr/bin/clang-3.9 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang-3.9
-- Check for working CXX compiler: /usr/bin/clang-3.9 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr (found suitable version "8.0", minimum required is "7.5")
-- Found OpenSSL: /usr/lib64/libssl.so (found version "1.0.2k")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/xmr-stak-nvidia

make install

[ 4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal : The version ('30901') of the host compiler ('clang') is not supported
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
Error generating
/root/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o

CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:70: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o' failed
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

How can I fix that? thanks!

Error GPU 0 Cuda_extra.cu 229

When running the dev branch for windows i have this error :
[CUDA] Error gpu 0: <C:/xmr-stak-dep/xmr-stak-nvidia-dev/nvcc_code/cuda_extra.cu>:229

GPU : Nvidia Quadro K2200

Config:
"gpu_threads_conf" : [ { "index" : 0, "threads" : 32, "blocks" : 15, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false, }, ],

build :
cmake -G "Visual Studio 15 2017 Win64" -DOpenSSL_ENABLE=OFF -DHWLOC_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF -DMICROHTTPD_REQUIRED=OFF -T v140,host=x64 ..

only using 1 gpu

Hello all.

slight problem. i've got 4 gpus (nvidia gtx750ti's) and recently found out about xmr-stak.

compiling it went pretty smooth, but can't seem to figure out how to utilize all 4 of my gpus.

its currently mining, but only with 1 gpu. here is my gpu thread conf setup.

"gpu_threads_conf" :
[
{"index" : 3, "threads" : 4, "blocks" : 60, "bfactor" : 8, "bsleep" : 100, "affine_to_cpu" : false},
],

any help would be greatly appreciated, because until i can figure this out i'm gonna have to go back to ccminer

Pool Socket Errors

Hi,

I've tried a handful of different pools, but keep coming up with the below:

`XMR-Stak-NVIDIA mining software, NVIDIA Version.
NVIDIA mining code was written by KlausT and psychocrypt.
Brought to you by fireice_uk under GPLv3.

Configurable dev donation level is set to 1.0

You can use following keys to display reports
'h' - hashrate
'r' - results
'c' - connection

[2017-03-26 16:40:27] : Connecting to pool mine.moneropool.com:3333 ...
[2017-03-26 16:42:38] : SOCKET ERROR - 139762887194232:error:0200206E:system library:connect:Connection timed out:bss_conn.c:246:host=mine.moneropool.com:3333
139762887194232:error:20073067:BIO routines:CONN_STATE:connect error:bss_conn.c:249:`

Any thoughts on this? Thanks for your time!

Best,

Clang build fails with "nvcc fatal : Unsupported gpu architecture 'compute_60'"

Hi There,

I got this running on windows using the .exe provided on my previous dumb question as a POC but now I'm looking to move it to Ubuntu linux. I'm able to pull the code down, install all the required packages, and get to the cmake . call where it fails. Here's the output for what I'm seeing.

-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr (found suitable version "7.5", minimum required is "7.5")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g")
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/xmr-stak-nvidia
[  4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_60'
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_core.cu.o.cmake:207 (message):
  Error generating
  /usr/src/xmr-stak-nvidia/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_core.cu.o


CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:70: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o' failed
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

From what I'm able to find online it's a compatibility issue between CUDA drivers and the GPU (K80 in this case) but I don't know if I'm right about that or if so how to get around it.

Thanks again for any help you can provide.

Working installation instructions

I realize the title is generic but I tried at least 5 combinations of software and suggestions of yours but to no avail.

Here's my current stack. Please let me know how to get to a working miner:

  • Ubuntu 17.04
  • GCC 6
  • Clang 3.8 and 4.0
  • Cuda 8
  • NVCC 8.
  • GTX 1060 card.
  • nvidida 381 driver.

I'd really appreciate having 5-6 steps that just work, Thanks.

Setup in new version gets illegal memory access

Hi,
I was using prelast release with no problems.
This was my setup:

"gpu_threads_conf" : [ 
	{ "index" : 0, "threads" : 7, "blocks" : 40, "bfactor" : 0, "bsleep" :  0, "affine_to_cpu" : false},
],

I've got avereage 190h/s with GTX 860m, I've read that maximum for this gpu is about 200h/s with OC. I've OC mine gpu too, but maybe not that high, so I suppose my setup is good enough.

With the newest version I'm getting error on recommended setup.

GPU 0: an illegal memory access was encountered
C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 246

This is the recommended setup. Even when I'm using my setup I'm getting the same error.

"gpu_threads_conf" : [
  { "index" : 0,
    "threads" : 32, "blocks" : 15,
    "bfactor" : 6, "bsleep" :  25,
    "affine_to_cpu" : false,
  },
],

Can you help me please? Thank you.

Program Failure after connect

Hey,

GPU 0: unspecified launch failure
C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 245

Unresolved externals

1>minethd.obj : error LNK2001: unresolved external symbol cryptonight_core_cpu_hash
1>minethd.obj : error LNK2001: unresolved external symbol cryptonight_extra_cpu_set_data
1>minethd.obj : error LNK2001: unresolved external symbol cryptonight_extra_cpu_final
1>minethd.obj : error LNK2001: unresolved external symbol cryptonight_extra_cpu_init
1>minethd.obj : error LNK2001: unresolved external symbol cryptonight_extra_cpu_prepare

How to resolve this ?

correct config for GeFORCE GT 630M

Hi,

Im getting

GPU 0: unknown error
C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvi
dia/nvcc_code/cuda_extra.cu line 246

what config should I try? Currently

"gpu_threads_conf" :
[
{ "index" : 0, "threads" : 24, "blocks" : 39, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false},
],

Thanks

v1.1.0-1.4.0 not working on GT 740M

Laptop with integrated Intel HD 4600 and secondary GeForce GT 740M.

Version v1.0.1-1.3.1 works fine with:
{ "index" : 0, "threads" : 48, "blocks" : 8, "bfactor" : 8, "bsleep" : 0, "affine_to_cpu" : false}

Version v1.1.0-1.4.0 with same specs gives error:
GPU 0: an illegal memory access was encountered
C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 246

/usr/bin/ld: cannot find -lcudart_static

Hello,
I get a linker error at the end of the compilation on Arch Linux.
Any idea's what i'm doing wrong?
Thanks!


$ export CC=/usr/bin/clang

$ export CXX=/usr/bin/clang++

$ cmake . -DCUDA_COMPILER=clang -DMICROHTTPD_REQUIRED=OFF
-- The C compiler identification is Clang 4.0.0
-- The CXX compiler identification is Clang 4.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /opt/cuda (found suitable version "8.0", minimum required is "7.5")
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.0f")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/source/xmr-stak-nvidia
$

$ make
Scanning dependencies of target xmr-stak-nvidiaCrypto
[ 4%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256.c.o
[ 9%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c.o
[ 14%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o
[ 19%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c.o
[ 23%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o
[ 28%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o
[ 33%] Linking C static library libxmr-stak-nvidiaCrypto.a
[ 33%] Built target xmr-stak-nvidiaCrypto
Scanning dependencies of target xmr-stak-nvidiaCuda
[ 38%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o
[ 42%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_extra.cu.o
[ 47%] Linking CXX static library libxmr-stak-nvidiaCuda.a
[ 47%] Built target xmr-stak-nvidiaCuda
Scanning dependencies of target xmr-stak-nvidia
[ 52%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/cli-miner.cpp.o
[ 57%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/console.cpp.o
[ 61%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/executor.cpp.o
[ 66%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/httpd.cpp.o
[ 71%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/jconf.cpp.o
[ 76%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/jpsock.cpp.o
[ 80%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/minethd.cpp.o
[ 85%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/socket.cpp.o
[ 90%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/webdesign.cpp.o
[ 95%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/crypto/cryptonight_common.cpp.o
[100%] Linking CXX executable bin/xmr-stak-nvidia
/usr/bin/ld: cannot find -lcudart_static
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/xmr-stak-nvidia.dir/build.make:340: bin/xmr-stak-nvidia] Error 1
make[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/xmr-stak-nvidia.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
$

Optimise CPU side code?

Hey,

so I've noticed that this app is using ridiculous amounts of CPU (7% total, ~46% of one core).

Meanwhile Claymores AMD miner is using <1% CPU

Expected Hashrate of GTX 980

Does anyone have an idea what the expected hashrate for a GTX 980 is using xmr-stak-nvidia? I'm only getting about 150 H/s from each card (I have two 980 OC editions on the system), and changing the config settings from what was suggested at first run doesn't seem to result in any meaningful increase. This hashrate is really low compared to other gpu miners like ccminer I've used for running these cards, whereas other cards I've seen a big increase with xmr-stak over ccminer.

Any advice on settings or expectations would be awesome.

It's probably just me, but there's no .exe file in the most recent release

I downloaded the original release just to see if there was something going on my computer, and the original package downloads w/ .exe fine and runs for the most part.

I'm running a Core i5 and an Nvidia GeForce 970, so I would expect to get a H/s of at least 100-500 at least, but I'm only getting 30. It's too slow to finish in time before the next block about half the time, usually. Almost seems like it's running on my CPU instead.

I spent the last hour and a half trying to figure out what I'm doing wrong. Not sure. Talked with someone in the chat channel who suggested my BitDefender was quarantining it, but I can't see any notifications in BD about it.

Not sure what to do next for now. Got any ideas? I'm not savvy enough to build from the files without the .exe, yet. I know a little JavaScript, CSS, Html, but just enough to muck about and cause trouble. :)

[Question] Trouble building on Windows

Hey guys!
I am new to CMake for Windows, and am having a lot of trouble compiling this miner. I want to compile it myself in order to customize it. (Btw I am going to leave the donation amount where it is by default).

So far I have been able to CMake the project using the "Visual Studio 14" builder using the following command:
cmake C:\Users\MyName\Google_Drive\Programming_Projects\xmr-stak-nvidia -DCMAKE_INSTALL_PREFIX="C:\Users\Clayton\Desktop\build" -DCMAKE_BUILD_TYPE=Release -DMICROHTTPD_REQUIRED=OFF -DOpenSSL_REQUIRED=OFF -G"Visual Studio 14"

However I have run into two issues. First issue is that CMake is targeting the wrong platform and I am unsure how to change it. Secondly Visual Studio doesn't seem to recognize CUDA at all. I did add CUDA as a build dependency is Visual Studio, so not sure what is up with that.

Any help with this would be appreciated.

CPU miner lowers GPU hashrate

Hello! I have an i5 and a gtx 970 in my pc, and when turning on both miners (nvidia and cpu), my gtx hashes at 100H/s and my i5 at 130H/s. This is very low for the 970, as mining with it without the cpu I get 420H/s. Even using affine_to_cpu: 0, I only manage to get 180H/s out of the 970. Please suggest a way to fix this. Thanks a lot!

Build issues with Cuda 8 and Clang 3.9.1

First, thanks for your continuous improvements to this project.

I'm trying to build master branch using clang on Linux but I'm getting too many errors:

Code revision:

xmr-stak-nvidia $ git lg | head -1
* ad4b1b0 - (HEAD -> master, tag: v1.1.0-1.4.0, origin/master, origin/dev, origin/HEAD) Release tag (16 hours ago) <fireice-uk>

GPU:

xmr-stak-nvidia $ sudo lshw -numeric -C display
  *-display                 
       description: VGA compatible controller
       product: GM107 [GeForce GTX 750 Ti] [10DE:1380]
       vendor: NVIDIA Corporation [10DE]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:35 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff

cmake . -DCUDA_COMPILER=clang

xmr-stak-nvidia $ echo $CC
/usr/bin/clang

xmr-stak-nvidia $ echo $CXX
/usr/bin/clang++

xmr-stak-nvidia $ cmake . -DCUDA_COMPILER=clang
-- The C compiler identification is Clang 3.9.1
-- The CXX compiler identification is Clang 3.9.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /opt/cuda (found suitable version "8.0", minimum required is "7.5") 
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k") 
-- Configuring done
-- Generating done
-- Build files have been written to: [path-to]/xmr-stak-nvidia

make install

xmr-stak-nvidia $ make install
Scanning dependencies of target xmr-stak-nvidiaCuda
[  4%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o
In file included from <built-in>:1:
/usr/bin/../lib/clang/3.9.1/include/__clang_cuda_runtime_wrapper.h:66:2: error: "Unsupported CUDA version!"
#error "Unsupported CUDA version!"
 ^
In file included from <built-in>:1:
In file included from /usr/bin/../lib/clang/3.9.1/include/__clang_cuda_runtime_wrapper.h:144:
/opt/cuda/include/device_functions.hpp:1469:7: error: use of undeclared identifier '__USE_FAST_MATH__'
  if (__USE_FAST_MATH__ && !__CUDA_PREC_DIV) {
      ^
/opt/cuda/include/device_functions.hpp:1469:29: error: use of undeclared identifier '__CUDA_PREC_DIV'
  if (__USE_FAST_MATH__ && !__CUDA_PREC_DIV) {
                            ^
/opt/cuda/include/device_functions.hpp:1551:10: error: use of undeclared identifier '__nvvm_atom_cta_add_gen_i'; did you mean
      '__nvvm_atom_add_gen_i'?
  return __nvvm_atom_cta_add_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1544:10: note: '__nvvm_atom_add_gen_i' declared here
  return __nvvm_atom_add_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1557:10: error: use of undeclared identifier '__nvvm_atom_sys_add_gen_i'; did you mean
      '__nvvm_atom_add_gen_i'?
  return __nvvm_atom_sys_add_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1544:10: note: '__nvvm_atom_add_gen_i' declared here
  return __nvvm_atom_add_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1571:10: error: use of undeclared identifier '__nvvm_atom_cta_add_gen_i'; did you mean
      '__nvvm_atom_add_gen_i'?
  return __nvvm_atom_cta_add_gen_i((volatile int *)p, (int)val);
         ^
/opt/cuda/include/device_functions.hpp:1544:10: note: '__nvvm_atom_add_gen_i' declared here
  return __nvvm_atom_add_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1577:10: error: use of undeclared identifier '__nvvm_atom_sys_add_gen_i'; did you mean
      '__nvvm_atom_add_gen_i'?
  return __nvvm_atom_sys_add_gen_i((volatile int *)p, (int)val);
         ^
/opt/cuda/include/device_functions.hpp:1544:10: note: '__nvvm_atom_add_gen_i' declared here
  return __nvvm_atom_add_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1591:10: error: use of undeclared identifier '__nvvm_atom_cta_add_gen_ll'; did you mean
      '__nvvm_atom_add_gen_ll'?
  return __nvvm_atom_cta_add_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1584:10: note: '__nvvm_atom_add_gen_ll' declared here
  return __nvvm_atom_add_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1597:10: error: use of undeclared identifier '__nvvm_atom_sys_add_gen_ll'; did you mean
      '__nvvm_atom_add_gen_ll'?
  return __nvvm_atom_sys_add_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1584:10: note: '__nvvm_atom_add_gen_ll' declared here
  return __nvvm_atom_add_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1611:10: error: use of undeclared identifier '__nvvm_atom_cta_add_gen_f'; did you mean
      '__nvvm_atom_add_gen_f'?
  return __nvvm_atom_cta_add_gen_f((volatile float *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1604:10: note: '__nvvm_atom_add_gen_f' declared here
  return __nvvm_atom_add_gen_f((volatile float *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1617:10: error: use of undeclared identifier '__nvvm_atom_sys_add_gen_f'; did you mean
      '__nvvm_atom_add_gen_f'?
  return __nvvm_atom_sys_add_gen_f((volatile float *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1604:10: note: '__nvvm_atom_add_gen_f' declared here
  return __nvvm_atom_add_gen_f((volatile float *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1629:10: error: use of undeclared identifier '__nvvm_atom_cta_add_gen_d'; did you mean
      '__nvvm_atom_add_gen_d'?
  return __nvvm_atom_cta_add_gen_d((volatile double *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1623:10: note: '__nvvm_atom_add_gen_d' declared here
  return __nvvm_atom_add_gen_d((volatile double *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1635:10: error: use of undeclared identifier '__nvvm_atom_sys_add_gen_d'; did you mean
      '__nvvm_atom_add_gen_d'?
  return __nvvm_atom_sys_add_gen_d((volatile double *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1623:10: note: '__nvvm_atom_add_gen_d' declared here
  return __nvvm_atom_add_gen_d((volatile double *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1650:10: error: use of undeclared identifier '__nvvm_atom_cta_xchg_gen_i'; did you mean
      '__nvvm_atom_xchg_gen_i'?
  return __nvvm_atom_cta_xchg_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1643:10: note: '__nvvm_atom_xchg_gen_i' declared here
  return __nvvm_atom_xchg_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1656:10: error: use of undeclared identifier '__nvvm_atom_sys_xchg_gen_i'; did you mean
      '__nvvm_atom_xchg_gen_i'?
  return __nvvm_atom_sys_xchg_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1643:10: note: '__nvvm_atom_xchg_gen_i' declared here
  return __nvvm_atom_xchg_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1670:10: error: use of undeclared identifier '__nvvm_atom_cta_xchg_gen_i'; did you mean
      '__nvvm_atom_xchg_gen_i'?
  return __nvvm_atom_cta_xchg_gen_i((volatile int *)p, (int)val);
         ^
/opt/cuda/include/device_functions.hpp:1643:10: note: '__nvvm_atom_xchg_gen_i' declared here
  return __nvvm_atom_xchg_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1676:10: error: use of undeclared identifier '__nvvm_atom_sys_xchg_gen_i'; did you mean
      '__nvvm_atom_xchg_gen_i'?
  return __nvvm_atom_sys_xchg_gen_i((volatile int *)p, (int)val);
         ^
/opt/cuda/include/device_functions.hpp:1643:10: note: '__nvvm_atom_xchg_gen_i' declared here
  return __nvvm_atom_xchg_gen_i((volatile int *)p, val);
         ^
/opt/cuda/include/device_functions.hpp:1691:10: error: use of undeclared identifier '__nvvm_atom_cta_xchg_gen_ll'; did you mean
      '__nvvm_atom_xchg_gen_ll'?
  return __nvvm_atom_cta_xchg_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1684:10: note: '__nvvm_atom_xchg_gen_ll' declared here
  return __nvvm_atom_xchg_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1697:10: error: use of undeclared identifier '__nvvm_atom_sys_xchg_gen_ll'; did you mean
      '__nvvm_atom_xchg_gen_ll'?
  return __nvvm_atom_sys_xchg_gen_ll((volatile long long *)p, (long long)val);
         ^
/opt/cuda/include/device_functions.hpp:1684:10: note: '__nvvm_atom_xchg_gen_ll' declared here
  return __nvvm_atom_xchg_gen_ll((volatile long long *)p, (long long)val);
         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:63: CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_core.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
make: *** [Makefile:128: all] Error 2

Happy to provide more info if needed. Thanks!

Threads not calculated correctly with multiple graphics cards

Hello,

I have noticed today when installing an extra graphics card (550ti) alongside my GTX 950, the autoconfigure reports

**************** Copy&Paste ****************

"gpu_threads_conf" : [
{ "index" : 0,
"threads" : 32, "blocks" : 18,
"bfactor" : 6, "bsleep" : 25,
"affine_to_cpu" : false,
},
{ "index" : 1,
"threads" : 64, "blocks" : 8,
"bfactor" : 6, "bsleep" : 25,
"affine_to_cpu" : false,
},
],

Where index 1 is the GTX550ti, which does not have the capability to run 64 threads. Using that config results in a CUDA lack of memory error, and no mining at all.

When the 950 is disabled, the autoconfigure reports correctly for the 550ti:
"gpu_threads_conf" : [
{ "index" : 0,
"threads" : 32, "blocks" : 8,
"bfactor" : 6, "bsleep" : 25,
"affine_to_cpu" : false,
},
],

And can mine on just the 550ti.

Merging the two configs does allow mining but this isn't the desired result of the autoconfig.

cmd closed after ~30 minutes of mining no error log just program closed

I dont know what happend I am mining with 1x 1070 and 6x rx 460, rx with claymore and nvidia with gtx 1070, both programs run good but this nvidia just closed after 30 minutes all wite. testes with nolts - same.
its my config autocreated from autoconfig.
"gpu_threads_conf" : [
{ "index" : 0,
"threads" : 64, "blocks" : 45,
"bfactor" : 6, "bsleep" : 25,
"affine_to_cpu" : false,
},
need technical assistans please

Multi-Profile Errors: No CUDA device found!

Experimenting with small time pool mining on my desktop with both AMD R9 275X and Nvidia GTX 285 graphics cards installed. Have CPU and AMD miners installed and running with no problems, this miner is giving me problems. I have a suspicion that it needs a "platform_index" parameter, just like the AMD miner's config uses to specify which platform is the Nvidia device. Thoughts? I installed the Nvidia card to avoid the lag while working on the machine, but now I want to see a few more H/s just to see what this cobbled together rig will produce with everything running!

I downloaded the latest binary release (v1.1.1-1.4.0), and it produces the following error:

C:\Tools\Miners\xmr-stak-nvidia>xmr-stak-nvidia.exe
No CUDA device found!

My config.txt is the generic config with my pool information filled in, null gpu_threads_conf, attempting to determine GPU config per config comments.

My clinfo.exe output is as follows:

Number of platforms:				 3
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 1.2 
  Platform Name:				 Intel(R) OpenCL
  Platform Vendor:				 Intel(R) Corporation
  Platform Extensions:				 cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_intel_exec_by_local_thread cl_khr_depth_images cl_khr_3d_image_writes cl_khr_fp64 cl_intel_dx9_media_sharing cl_khr_dx9_media_sharing cl_khr_d3d11_sharing cl_khr_gl_sharing
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 1.1 CUDA 6.5.51
  Platform Name:				 NVIDIA CUDA
  Platform Vendor:				 NVIDIA Corporation
  Platform Extensions:				 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d9_sharing cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts 
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 2.0 AMD-APP (2348.3)
  Platform Name:				 AMD Accelerated Parallel Processing
  Platform Vendor:				 Advanced Micro Devices, Inc.
  Platform Extensions:				 cl_khr_icd cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_amd_event_callback cl_amd_offline_devices 


  Platform Name:				 Intel(R) OpenCL
Number of devices:				 1
  Device Type:					 CL_DEVICE_TYPE_CPU
  Vendor ID:					 8086h
  Max compute units:				 8
  Max work items dimensions:			 3
    Max work items[0]:				 8192
    Max work items[1]:				 8192
    Max work items[2]:				 8192
  Max work group size:				 8192
  Preferred vector width char:			 1
  Preferred vector width short:			 1
  Preferred vector width int:			 1
  Preferred vector width long:			 1
  Preferred vector width float:			 1
  Preferred vector width double:		 1
  Native vector width char:			 32
  Native vector width short:			 16
  Native vector width int:			 8
  Native vector width long:			 4
  Native vector width float:			 8
  Native vector width double:			 4
  Max clock frequency:				 4000Mhz
  Address bits:					 64
  Max memory allocation:			 8576559104
  Image support:				 Yes
  Max number of images read arguments:		 480
  Max number of images write arguments:		 480
  Max image 2D width:				 16384
  Max image 2D height:				 16384
  Max image 3D width:				 2048
  Max image 3D height:				 2048
  Max image 3D depth:				 2048
  Max samplers within kernel:			 480
  Max size of kernel argument:			 3840
  Alignment (bits) of base address:		 1024
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 Yes
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 No
    Round to +ve and infinity:			 No
    IEEE754-2008 fused multiply-add:		 No
  Cache type:					 Read/Write
  Cache line size:				 64
  Cache size:					 262144
  Global memory size:				 34306236416
  Constant buffer size:				 131072
  Max number of constant args:			 480
  Local memory type:				 Global
  Local memory size:				 32768
  Kernel Preferred work group size multiple:	 128
  Error correction support:			 0
  Unified memory for Host and Device:		 1
  Profiling timer resolution:			 255
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:				 
    Execute OpenCL kernels:			 Yes
    Execute native function:			 Yes
  Queue on Host properties:				 
    Out-of-Order:				 Yes
    Profiling :					 Yes
  Platform ID:					 0000000000366500
  Name:						 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  Vendor:					 Intel(R) Corporation
  Device OpenCL C version:			 OpenCL C 1.2 
  Driver version:				 4.2.0.148
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 1.2 (Build 148)
  Extensions:					 cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_intel_exec_by_local_thread cl_khr_depth_images cl_khr_3d_image_writes cl_khr_fp64 cl_intel_dx9_media_sharing cl_khr_dx9_media_sharing cl_khr_d3d11_sharing cl_khr_gl_sharing 


  Platform Name:				 NVIDIA CUDA
Number of devices:				 1
  Device Type:					 CL_DEVICE_TYPE_GPU
  Vendor ID:					 10deh
  Max compute units:				 30
  Max work items dimensions:			 3
    Max work items[0]:				 512
    Max work items[1]:				 512
    Max work items[2]:				 64
  Max work group size:				 512
  Preferred vector width char:			 1
  Preferred vector width short:			 1
  Preferred vector width int:			 1
  Preferred vector width long:			 1
  Preferred vector width float:			 1
  Preferred vector width double:		 1
  Native vector width char:			 1
  Native vector width short:			 1
  Native vector width int:			 1
  Native vector width long:			 1
  Native vector width float:			 1
  Native vector width double:			 1
  Max clock frequency:				 1476Mhz
  Address bits:					 32
  Max memory allocation:			 268435456
  Image support:				 Yes
  Max number of images read arguments:		 128
  Max number of images write arguments:		 8
  Max image 2D width:				 4096
  Max image 2D height:				 16383
  Max image 3D width:				 2048
  Max image 3D height:				 2048
  Max image 3D depth:				 2048
  Max samplers within kernel:			 16
  Max size of kernel argument:			 4352
  Alignment (bits) of base address:		 2048
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 No
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 Yes
    Round to +ve and infinity:			 Yes
    IEEE754-2008 fused multiply-add:		 Yes
  Cache type:					 None
  Cache line size:				 0
  Cache size:					 0
  Global memory size:				 1073741824
  Constant buffer size:				 65536
  Max number of constant args:			 9
  Local memory type:				 Scratchpad
  Local memory size:				 16384
  Kernel Preferred work group size multiple:	 32
  Error correction support:			 0
  Unified memory for Host and Device:		 0
  Profiling timer resolution:			 1000
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:				 
    Execute OpenCL kernels:			 Yes
    Execute native function:			 No
  Queue on Host properties:				 
    Out-of-Order:				 Yes
    Profiling :					 Yes
  Platform ID:					 0000000002498F50
  Name:						 GeForce GTX 285
  Vendor:					 NVIDIA Corporation
  Device OpenCL C version:			 OpenCL C 1.1 
  Driver version:				 342.01
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 1.0 CUDA
  Extensions:					 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d9_sharing cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts  cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 


  Platform Name:				 AMD Accelerated Parallel Processing
Number of devices:				 2
  Device Type:					 CL_DEVICE_TYPE_GPU
  Vendor ID:					 1002h
  Board name:					 AMD Radeon R9 200 Series
  Device Topology:				 PCI[ B#2, D#0, F#0 ]
  Max compute units:				 44
  Max work items dimensions:			 3
    Max work items[0]:				 256
    Max work items[1]:				 256
    Max work items[2]:				 256
  Max work group size:				 256
  Preferred vector width char:			 4
  Preferred vector width short:			 2
  Preferred vector width int:			 1
  Preferred vector width long:			 1
  Preferred vector width float:			 1
  Preferred vector width double:		 1
  Native vector width char:			 4
  Native vector width short:			 2
  Native vector width int:			 1
  Native vector width long:			 1
  Native vector width float:			 1
  Native vector width double:			 1
  Max clock frequency:				 1000Mhz
  Address bits:					 64
  Max memory allocation:			 3019898880
  Image support:				 Yes
  Max number of images read arguments:		 128
  Max number of images write arguments:		 64
  Max image 2D width:				 16384
  Max image 2D height:				 16384
  Max image 3D width:				 2048
  Max image 3D height:				 2048
  Max image 3D depth:				 2048
  Max samplers within kernel:			 16
  Max size of kernel argument:			 1024
  Alignment (bits) of base address:		 2048
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 No
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 Yes
    Round to +ve and infinity:			 Yes
    IEEE754-2008 fused multiply-add:		 Yes
  Cache type:					 Read/Write
  Cache line size:				 64
  Cache size:					 16384
  Global memory size:				 4294967296
  Constant buffer size:				 3019898880
  Max number of constant args:			 8
  Local memory type:				 Scratchpad
  Local memory size:				 32768
  Max pipe arguments:				 16
  Max pipe active reservations:			 16
  Max pipe packet size:				 3019898880
  Max global variable size:			 2717908992
  Max global variable preferred total size:	 4294967296
  Max read/write image args:			 64
  Max on device events:				 1024
  Queue on device max size:			 8388608
  Max on device queues:				 1
  Queue on device preferred size:		 262144
  SVM capabilities:				 
    Coarse grain buffer:			 Yes
    Fine grain buffer:				 Yes
    Fine grain system:				 No
    Atomics:					 No
  Preferred platform atomic alignment:		 0
  Preferred global atomic alignment:		 0
  Preferred local atomic alignment:		 0
  Kernel Preferred work group size multiple:	 64
  Error correction support:			 0
  Unified memory for Host and Device:		 0
  Profiling timer resolution:			 1
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:				 
    Execute OpenCL kernels:			 Yes
    Execute native function:			 No
  Queue on Host properties:				 
    Out-of-Order:				 No
    Profiling :					 Yes
  Queue on Device properties:				 
    Out-of-Order:				 Yes
    Profiling :					 Yes
  Platform ID:					 000007FED6C90188
  Name:						 Hawaii
  Vendor:					 Advanced Micro Devices, Inc.
  Device OpenCL C version:			 OpenCL C 2.0 
  Driver version:				 2348.3
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 2.0 AMD-APP (2348.3)
  Extensions:					 cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_liquid_flash 


  Device Type:					 CL_DEVICE_TYPE_CPU
  Vendor ID:					 1002h
  Board name:					 
  Max compute units:				 8
  Max work items dimensions:			 3
    Max work items[0]:				 1024
    Max work items[1]:				 1024
    Max work items[2]:				 1024
  Max work group size:				 1024
  Preferred vector width char:			 16
  Preferred vector width short:			 8
  Preferred vector width int:			 4
  Preferred vector width long:			 2
  Preferred vector width float:			 8
  Preferred vector width double:		 4
  Native vector width char:			 16
  Native vector width short:			 8
  Native vector width int:			 4
  Native vector width long:			 2
  Native vector width float:			 8
  Native vector width double:			 4
  Max clock frequency:				 4000Mhz
  Address bits:					 64
  Max memory allocation:			 8576559104
  Image support:				 Yes
  Max number of images read arguments:		 128
  Max number of images write arguments:		 64
  Max image 2D width:				 8192
  Max image 2D height:				 8192
  Max image 3D width:				 2048
  Max image 3D height:				 2048
  Max image 3D depth:				 2048
  Max samplers within kernel:			 16
  Max size of kernel argument:			 4096
  Alignment (bits) of base address:		 1024
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 Yes
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 Yes
    Round to +ve and infinity:			 Yes
    IEEE754-2008 fused multiply-add:		 Yes
  Cache type:					 Read/Write
  Cache line size:				 64
  Cache size:					 32768
  Global memory size:				 34306236416
  Constant buffer size:				 65536
  Max number of constant args:			 8
  Local memory type:				 Global
  Local memory size:				 32768
  Max pipe arguments:				 16
  Max pipe active reservations:			 16
  Max pipe packet size:				 4281591808
  Max global variable size:			 1879048192
  Max global variable preferred total size:	 1879048192
  Max read/write image args:			 64
  Max on device events:				 0
  Queue on device max size:			 0
  Max on device queues:				 0
  Queue on device preferred size:		 0
  SVM capabilities:				 
    Coarse grain buffer:			 No
    Fine grain buffer:				 No
    Fine grain system:				 No
    Atomics:					 No
  Preferred platform atomic alignment:		 0
  Preferred global atomic alignment:		 0
  Preferred local atomic alignment:		 0
  Kernel Preferred work group size multiple:	 1
  Error correction support:			 0
  Unified memory for Host and Device:		 1
  Profiling timer resolution:			 255
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:				 
    Execute OpenCL kernels:			 Yes
    Execute native function:			 Yes
  Queue on Host properties:				 
    Out-of-Order:				 No
    Profiling :					 Yes
  Queue on Device properties:				 
    Out-of-Order:				 No
    Profiling :					 No
  Platform ID:					 000007FED6C90188
  Name:						 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  Vendor:					 GenuineIntel
  Device OpenCL C version:			 OpenCL C 1.2 
  Driver version:				 2348.3 (sse2,avx)
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 1.2 AMD-APP (2348.3)
  Extensions:					 cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_khr_spir cl_khr_gl_event 

Not compatible with nicehash

I've build xmr-stak-nvidia from latest source available.
All results are rejected by cryptonight.eu.nicehash.com:3355 pool, with error message:
Invalid nonce; is miner not comp

CPU xmr-stak-cpu miner works without problems.

Config problem :(

Hi Guys Im new hire Im rying to config miner but Im doing something wrong and it doestn wont to start, can somebody post right setup for GTX 1060 6gb, but full file how it looks like . I have error JSON config parse error<ofset 1236>: Missing a coma or'>' after object member. Propably I mised something small and I can not find it olease help :)

Can't get to build on Ubuntu 16.04

I can't seem to get nvidia to build and I'm not quite figuring out why. It always comes back to compute_6* (sm_6*) being the issue.

tim@home-rig1:~/xmr-stak-nvidia-master$ cmake .
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr (found suitable version "7.5", minimum required is "7.5")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tim/xmr-stak-nvidia-master
tim@home-rig1:~/xmr-stak-nvidia-master$ make install
[  4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_60'
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_core.cu.o.cmake:207 (message):
  Error generating
  /home/tim/xmr-stak-nvidia-master/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_core.cu.o


CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:70: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o' failed
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
tim@home-rig1:~/xmr-stak-nvidia-master$  export CC=/usr/bin/clang
tim@home-rig1:~/xmr-stak-nvidia-master$     export CXX=/usr/bin/clang++
tim@home-rig1:~/xmr-stak-nvidia-master$ rm CMakeFiles/ -rf
tim@home-rig1:~/xmr-stak-nvidia-master$ rm CMakeCache.txt
tim@home-rig1:~/xmr-stak-nvidia-master$ cmake . -DCUDA_COMPILER=clang
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr (found suitable version "7.5", minimum required is "7.5")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tim/xmr-stak-nvidia-master
tim@home-rig1:~/xmr-stak-nvidia-master$ make install
Scanning dependencies of target xmr-stak-nvidiaCuda
[  4%] Building CXX object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_extra.cu.o
clang: error: Unsupported CUDA gpu architecture: sm_60
clang: error: Unsupported CUDA gpu architecture: sm_61
clang: error: Unsupported CUDA gpu architecture: sm_62
CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:62: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_extra.cu.o' failed
make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/cuda_extra.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmr-stak-nvidiaCuda.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
tim@home-rig1:~/xmr-stak-nvidia-master$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

"No CUDA device found!" - miner doesn't suggest basic configuration

Running the miner for the first time (after filling in the mining pool and my address only, leaving gpu_threads_conf as null) outputs "No CUDA device found!" and quits. The config.txt file says "On the first run the miner will look at your system and suggest a basic configuration that will work", but doesn't look like this is happening.

Settings for GTX 1060?

Hi there,

is there a proposal for blocks/threads settings for a GTX1060. The formula described for Maxwell seems to be irrelevant as Pascal GPUs can use up to 16GB of memory, but what values should I use for GTX 1060 to get max hashrate?

Best regards

Stefan

Suggested config is not working

The problem from issue #28 is resolved for me, but the suggested config is not working for me. With my previous config file it's working great. I'm getting 237H/s instead of 211H/s in previous update. Is it possible to be 10% more powerful or is my setting just bad and the results are fake?

Suggested config:
"gpu_threads_conf" : [ { "index" : 0, "threads" : 32, "blocks" : 15, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false, }, ],

My config:
"gpu_threads_conf" : [ { "index" : 0, "threads" : 20, "blocks" : 15, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false}, ],
I have GTX 860M 2GB Maxwell
Console always close pretty fast so I could make screenshot only. It's not in log file.
error

Thank you guys for resolving the previous problem.

How to auto start on Ubuntu server?

Hello there, followed the tutorial to the letter and got everything running on an Ubuntu 16.04 minimal server.

Now, since I leave this rig somewhere in the room without a monitor or any other input device attached to it (I manage the server via Putty from Windows), how to make the application auto start at boot?

Stupid question but not very obvious for the Linux's novices out there.

Thank you in advance,
Arky

Compile error

Hello, trying to compile on Manjaro 17.0.1

Here's what I got when I tried the first way shown in the readme:
[michael@REXXYTHESEXXY2 xmr-stak-nvidia-master]$ cmake .
-- The C compiler identification is GNU 7.1.1
-- The CXX compiler identification is GNU 7.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /opt/cuda (found suitable version "8.0", minimum required is "7.5")
-- Found OpenSSL: /usr/lib/libssl.so (found version "1.1.0f")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michael/xmr-stak-nvidia-master
[michael@REXXYTHESEXXY2 xmr-stak-nvidia-master]$ make install
Scanning dependencies of target xmr-stak-nvidiaCrypto
[ 4%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256.c.o
[ 9%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c.o
[ 14%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o
[ 19%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c.o
[ 23%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o
[ 28%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o
[ 33%] Linking C static library libxmr-stak-nvidiaCrypto.a
[ 33%] Built target xmr-stak-nvidiaCrypto
[ 38%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /opt/cuda/include/cuda_runtime.h:78:0,
from :0:
/opt/cuda/include/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
^~~~~
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
Error generating
/home/michael/xmr-stak-nvidia-master/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o

make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:72: CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Then since that didn't work I figured I'd try deleting everything, re-extracting the .zip file and trying it with clang instead:
[michael@REXXYTHESEXXY2 xmr-stak-nvidia-master]$ export CC=/usr/bin/clang
[michael@REXXYTHESEXXY2 xmr-stak-nvidia-master]$ export CXX=/usr/bin/clang++
[michael@REXXYTHESEXXY2 xmr-stak-nvidia-master]$ cmake .
-- The C compiler identification is Clang 4.0.0
-- The CXX compiler identification is Clang 4.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /opt/cuda (found suitable version "8.0", minimum required is "7.5")
-- Found OpenSSL: /usr/lib/libssl.so (found version "1.1.0f")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michael/xmr-stak-nvidia-master
[michael@REXXYTHESEXXY2 xmr-stak-nvidia-master]$ make install
Scanning dependencies of target xmr-stak-nvidiaCrypto
[ 4%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256.c.o
[ 9%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c.o
[ 14%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o
[ 19%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c.o
[ 23%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o
[ 28%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o
[ 33%] Linking C static library libxmr-stak-nvidiaCrypto.a
[ 33%] Built target xmr-stak-nvidiaCrypto
[ 38%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal : The version ('40000') of the host compiler ('clang') is not supported
CMake Error at xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
Error generating
/home/michael/xmr-stak-nvidia-master/CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/./xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o

make[2]: *** [CMakeFiles/xmr-stak-nvidiaCuda.dir/build.make:72: CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/xmr-stak-nvidiaCuda.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Sorry I'm totally new at this, any help would be appreciated.

Is it possible to compile with CUDA 7.5?

Hi~ My server only has CUDA Toolkit 7.5. If I compile xmr-stak-nvidia with CUDA 8.0 on another machine and run the binary on the server, it gives an error:

./xmr-stak-nvidia: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory

And if I change the version of CUDA on the compiling machine from 8.0 to 7.5 (keep other things the same), I get errors from make:

[ 11%] [ 11%] Building NVCC (Device) object CMakeFiles/cuda_code.dir/nvcc_code/./cuda_code_generated_cuda_core.cu.o
Building NVCC (Device) object CMakeFiles/cuda_code.dir/nvcc_code/./cuda_code_generated_cuda_extra.cu.o
CMake Error at cuda_code_generated_cuda_extra.cu.o.cmake:206 (message):
Error generating
/home/george/Documents/xmr-stak-nvidia-1.0.1/CMakeFiles/cuda_code.dir/nvcc_code/./cuda_code_generated_cuda_extra.cu.o

CMake Error at cuda_code_generated_cuda_core.cu.o.cmake:206 (message):
Error generating
/home/george/Documents/xmr-stak-nvidia-1.0.1/CMakeFiles/cuda_code.dir/nvcc_code/./cuda_code_generated_cuda_core.cu.o

make[2]: *** [CMakeFiles/cuda_code.dir/nvcc_code/./cuda_code_generated_cuda_extra.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/cuda_code.dir/nvcc_code/./cuda_code_generated_cuda_core.cu.o] Error 1
make[1]: *** [CMakeFiles/cuda_code.dir/all] Error 2
make: *** [all] Error 2

How to solve this problem?

Trying to build and run this in ubuntu (16.04 LTS)

I think I got the build part happening but I'm not sure how to get the application running : P .

Also, in my flailing attempts, I might have altered the default gpu setting (to the k80 GPU because I did get the "nvcc fatal : Unsupported gpu architecture 'compute_60'" error and uncritically followed that response before I thought better of it (my card is a GeForce GTX 1080 from what I've been able to determine).

After I use the ccmake program it configures and generates with no evident output. Now what though? How do I actually get this application to run (and specifically with the card that would make it functional/optimal).

I would appreciate anyone's expertise on this; out of gratitude I'd strongly consider throwing some XMR or other CryptoNote currency your way if I can get this functioning and mining. ^_^ Thanks

Can't find referenced .exe file

Hi Guys,

Aplogies if this is a total noob question but the only 2 instructions provided for Windows are to update the config file (which I did) and then click on the .exe file to run.

However, I have looked through the entire project and can't find a .exe file. I'm wondering if I need to do some sort of build as that's mentioned for linux but I don't know if that's relevant for windows.

Thanks for any help you can provide.

Windows build size and performance

I built Windows version use this instruction WINCOMPILE.md without microhttpd and openssl and get 11 MB exe it close to 2x bigger that version from releases.

Also version from releases can use more aggressive settings and achieved better hashrate.
For example NVIDIA 1050 Ti 4GB suggested config:

"gpu_threads_conf" : [
  { "index" : 0,
    "threads" : 64, "blocks" : 18,
    "bfactor" : 6, "bsleep" :  25,
    "affine_to_cpu" : false,
  },
],

Both versions 307 H/s

Old version:

"gpu_threads_conf" : [
  { "index" : 0,
    "threads" : 64, "blocks" : 24,
    "bfactor" : 6, "bsleep" :  25,
    "affine_to_cpu" : false,
  },
],

321 H/s work stable, blocks can increased to 26, but hashrate drops to 312.

New version crashed with same settings:
[CUDA] Error gpu 0: <C:/monero/xmr-stak-nvidia/nvcc_code/cuda_extra.cu>:230

Works only with "blocks" : 22 316 H/s.

Thank you.

New to mining logging in error: SOCKET ERROR - PARSE error: Unsupported server method mining.notify

Hi All,

I'm totaly new to mining. Now I created an account and worker on stratum.decredpool.org:3333.
In the config file I tried 2 to log in with username.worker and with only username but with both options I'm getting an error:

"pool_address" : "stratum.decredpool.org:3333",
"wallet_address" : "username.workername",
"pool_password" : "WORKERPASSWORD",

When I run XMR Stak I get the following error:
[2017-04-20 09:44:53] : Connecting to pool stratum.decredpool.org:3333 ...
[2017-04-20 09:44:53] : Connected. Logging in...
[2017-04-20 09:45:00] : SOCKET ERROR - PARSE error: Unsupported server method mining.notify

I also tried pool user name only:

"pool_address" : "stratum.decredpool.org:3333",
"wallet_address" : "username",
"pool_password" : "POOLLOGINPASSWORD",

When I run XMR Stak I get the following error:
[2017-04-20 09:55:08] : Connecting to pool stratum.decredpool.org:3333 ...
[2017-04-20 09:55:08] : Connected. Logging in...
[2017-04-20 09:55:10] : SOCKET ERROR - PARSE error: Unsupported server method mining.notify

Does anybody know what I'm doing wrong? My pool is stratum so should be supported right?
Thanks in advance!
Cheers!

[linux] openssl issues

Using gcc 5.1 on Debian 6 I get these two errors:

socket.cpp:196:26: error: invalid conversion from 'const SSL_METHOD* {aka const ssl_method_st*}' to 'SSL_METHOD* {aka ssl_method_st*}' [-fpermissive

socket.cpp:202:82: error: 'SSL_OP_NO_COMPRESSION' was not declared in this scope

To fix this I simply removed const and the SSL_OP_NO_COMPRESSION from the respective lines.
Maybe my libssl is too old:
Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "0.9.8o")

My workaround does not seem to break anything.

"the launch timed out and was terminated" error on line 246

When running this, I get an error on line 246 and windows 8.1 tells me my display driver "stopped responding and has recovered". Details:

Here's my gpu_threads_conf:

"gpu_threads_conf" : [{ "index" : 0, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" :  0, "affine_to_cpu" : false}]
[2017-05-22 00:22:10] : Connecting to pool pool.usxmrpool.com:3333 ...
[2017-05-22 00:22:10] : Connected. Logging in...
[2017-05-22 00:22:10] : Difficulty changed. Now: 3000.
[2017-05-22 00:22:10] : New block detected.

GPU 0: the launch timed out and was terminated
C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvi
dia/nvcc_code/cuda_extra.cu line 246

I have an NVIDIA GeForce GTX 870M and just updated to the latest driver for it (after it told me my driver didn't support CUDA 8.0 API)

Clang 3.8 not supported?

Hi,
I tryed to compile xmr-stak-nvidia on ubuntu 16.04 with a K80 GPU but i got following error:

make install
[ 4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o
nvcc fatal : The version ('30800') of the host compiler ('clang') is not supported

How can i handle this problem?

Thanks!

gt 610 config

Hi, i have gt610 , can i use xmr stak nvidia?
Its compatible for cuda 2.1

GPU 0: invalid device function

Hi !
I have this error when I run bin/xmr-stack-nvidia

-------------------------------------------------------------------
XMR-Stak-NVIDIA mining software, NVIDIA Version.
NVIDIA mining code was written by KlausT and psychocrypt.
Brought to you by fireice_uk under GPLv3.

Configurable dev donation level is set to 1.0 %

You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
[2017-07-01 15:57:39] : Connecting to pool pool.supportxmr.com:3333 ...
[2017-07-01 15:57:39] : Connected. Logging in...
[2017-07-01 15:57:39] : Difficulty changed. Now: 1000.
[2017-07-01 15:57:39] : New block detected.

GPU 0: invalid device function
/home/axel/Gits/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 226

I tried to modify few settings with nvidia-settings but I don't know what to do, I don't know how GPU config works.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.