Coder Social home page Coder Social logo

xmrig / xmrig-nvidia Goto Github PK

View Code? Open in Web Editor NEW
683.0 683.0 261.0 1.37 MB

Monero (XMR) NVIDIA miner

License: GNU General Public License v3.0

CMake 2.10% C++ 61.31% C 9.60% Cuda 6.02% Assembly 20.97%
aeon cryptonight cuda electroneum gpu-mining monero nvidia-miner sumokoin xmr xmrig

xmrig-nvidia's Introduction

XMRig

Github All Releases GitHub release GitHub Release Date GitHub license GitHub stars GitHub forks

XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight and GhostRider unified CPU/GPU miner and RandomX benchmark. Official binaries are available for Windows, Linux, macOS and FreeBSD.

Mining backends

  • CPU (x86/x64/ARMv7/ARMv8)
  • OpenCL for AMD GPUs.
  • CUDA for NVIDIA GPUs via external CUDA plugin.

Download

Usage

The preferred way to configure the miner is the JSON config file as it is more flexible and human friendly. The command line interface does not cover all features, such as mining profiles for different algorithms. Important options can be changed during runtime without miner restart by editing the config file or executing API calls.

  • Wizard helps you create initial configuration for the miner.
  • Workers helps manage your miners via HTTP API.

Donations

  • Default donation 1% (1 minute in 100 minutes) can be increased via option donate-level or disabled in source code.
  • XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD

Developers

Contacts

xmrig-nvidia's People

Contributors

d3c0d3d avatar deadmanwalkingto avatar junglecatsw avatar letsdoughnut avatar schernykh avatar spudz76 avatar thinkpol2 avatar vtnerd avatar xmrig 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  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

xmrig-nvidia's Issues

ubuntu build problem

$ docker run -d --device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl calvintam236/xmrig-nvidia:nvidia -a cryptonight -o xmr-us-west1.nanopool.org:14444 -u USERNAME --donate-level=1 --bfactor=12
 * VERSIONS:     XMRig/2.3.1 libuv/1.8.0 CUDA/0.0 gcc/5.4.0
 * CPU:          AMD Ryzen 7 1700 Eight-Core Processor           x64 AES-NI
 * ALGO:         cryptonight, donate=1%
 * POOL #1:      xmr-us-west1.nanopool.org:14444
 * COMMANDS:     hashrate, health, pause, resume
[2017-09-15 20:35:27] No CUDA device found!

I tried to run my docker image, and it doesn't work as you can see above. It is successfully build, but the CUDA ver is 0.0? Maybe it's something wrong with the run command?

I confirmed that running nvidia-smi on the base image gives me my card info.

$ docker run --rm --device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl calvintam2
36/ubuntu:nvidia nvidia-smi
Fri Sep 15 21:01:15 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.66                 Driver Version: 384.66                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 00000000:23:00.0 Off |                  N/A |
|  0%   42C    P0    34W / 151W |      0MiB /  8110MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

PS: I think the header should show GPU name instead of CPU.

error in ApiState.cpp while compiling xmrig-nvidia in Ubuntu 17.10

Hello,

I'm attempting to compile current xmrig-nvidia master in Ubuntu 17.10 using gcc5. I'm getting the following error while compiling api/ApiState.cpp:

[ 11%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/api/ApiState.cpp.o
/home/user/work/xmrig-nvidia/src/api/ApiState.cpp: In function ‘double normalize(double)’:
/home/user/work/xmrig-nvidia/src/api/ApiState.cpp:55:10: error: ‘__builtin_isnormal’ is not a member of ‘std’
if (!std::isnormal(d)) {
^
/home/user/work/xmrig-nvidia/src/api/ApiState.cpp:55:10: note: suggested alternative:
: note: ‘__builtin_isnormal’

What am I doing wrong?

Cmake, make output is here->

https://gist.github.com/felis/220720cb0442a70d92a3d058d36d623d

Unable to set block size/thread via command args

I have run xmr-stak-nvidia, and it gives me around 100H/s using this config: "threads" : 46, "blocks" : 4, "bfactor" : 12, "bsleep" : 0.
Just build the xmrig-nvidia on macOS, and with auto gpu config on GeForce GT 750M @ 925/2508 MHz, I could only get around 60H/s with it gets around 16 threads..
I couldn't find an option to set block size/thread via command args. Anything you can help improve this result?

Error on Windows build

Hello,
i have this error on Windows build.

`C:\xmrig\xmrig-nvidia-master\build>msbuild xmrig-nvidia.sln /p:Configuration=Release
Microsoft (R)-Buildmodul, Version 15.3.409.57025 für .NET Framework
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
Der Buildvorgang wurde am 05.10.2017 09:34:15 gestartet.
Projekt "C:\xmrig\xmrig-nvidia-master\build\xmrig-nvidia.sln" auf Knoten "1" (Standardziele).
ValidateSolutionConfiguration:
Die Projektmappenkonfiguration "Release|x64" wird erstellt.
ValidateProjects:
Das Projekt "ALL_BUILD" ist in der Projektmappenkonfiguration "Release|x64" nicht zum Erstellen ausgewählt.
Das Projekt "C:\xmrig\xmrig-nvidia-master\build\xmrig-nvidia.sln" (1) erstellt "C:\xmrig\xmrig-nvidia-master\build\ZERO_CHECK.vcxproj" (2) auf Knoten "1" (Standardziele).
InitializeBuildStatus:
"x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.
CustomBuild:
Alle Ausgaben sind aktuell.
FinalizeBuildStatus:
Die Datei "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" wird gelöscht.
Aktualisieren des Timestamps von "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Die Erstellung von Projekt "C:\xmrig\xmrig-nvidia-master\build\ZERO_CHECK.vcxproj" ist abgeschlossen (Standardziele).

Das Projekt "C:\xmrig\xmrig-nvidia-master\build\xmrig-nvidia.sln" (1) erstellt "C:\xmrig\xmrig-nvidia-master\build\src\3rdparty\jansson\jansson.vcxproj.metaproj" (3) auf Knoten "1" (Standardziele).
Das Projekt "C:\xmrig\xmrig-nvidia-master\build\src\3rdparty\jansson\jansson.vcxproj.metaproj" (3) erstellt "C:\xmrig\xmrig-nvidia-master\build\src\3rdparty\jansson\jansson.vcxproj" (4) auf Knoten "1" (Standardziele).
InitializeBuildStatus:
"jansson.dir\Release\jansson.tlog\unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.
CustomBuild:
Alle Ausgaben sind aktuell.
ClCompile:
Alle Ausgaben sind aktuell.
Lib:
Alle Ausgaben sind aktuell.
jansson.vcxproj -> C:\xmrig\xmrig-nvidia-master\build\src\3rdparty\jansson\Release\jansson.lib
FinalizeBuildStatus:
Die Datei "jansson.dir\Release\jansson.tlog\unsuccessfulbuild" wird gelöscht.
Aktualisieren des Timestamps von "jansson.dir\Release\jansson.tlog\jansson.lastbuildstate".
Die Erstellung von Projekt "C:\xmrig\xmrig-nvidia-master\build\src\3rdparty\jansson\jansson.vcxproj" ist abgeschlossen (Standardziele).

Die Erstellung von Projekt "C:\xmrig\xmrig-nvidia-master\build\src\3rdparty\jansson\jansson.vcxproj.metaproj" ist abgeschlossen (Standardziele).

Das Projekt "C:\xmrig\xmrig-nvidia-master\build\xmrig-nvidia.sln" (1) erstellt "C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj.metaproj" (5) auf Knoten "1" (Standardziele).
Das Projekt "C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj.metaproj" (5) erstellt "C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj" (6) auf Knoten "1" (Standardziele).
InitializeBuildStatus:
Aktualisieren des Timestamps von "xmrig-cuda.dir\Release\xmrig-cuda.tlog\unsuccessfulbuild".
CustomBuild:
Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/Release/xmrig-cuda_generated_cuda_core.cu.obj
CMake Error at xmrig-cuda_generated_cuda_core.cu.obj.Release.cmake:222 (message):
Error generating
C:/xmrig/xmrig-nvidia-master/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/Release/xmrig-cuda_generated_cuda_core.cu.obj

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet. [C:\xmrig\xmrig-nvidia-master\build\xmrig
-cuda.vcxproj]
Die Erstellung des Projekts "C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.

Die Erstellung des Projekts "C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj.metaproj" ist abgeschlossen (Standardziele) -- FEHLER.

Die Erstellung des Projekts "C:\xmrig\xmrig-nvidia-master\build\xmrig-nvidia.sln" ist abgeschlossen (Standardziele) -- FEHLER.

Fehler beim Buildvorgang.

"C:\xmrig\xmrig-nvidia-master\build\xmrig-nvidia.sln" (Standardziel) (1) ->
"C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj.metaproj" (Standardziel) (5) ->
"C:\xmrig\xmrig-nvidia-master\build\xmrig-cuda.vcxproj" (Standardziel) (6) ->
(CustomBuild Ziel) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet. [C:\xmrig\xmrig-nvidia-master\build\xmr
ig-cuda.vcxproj]

0 Warnung(en)
1 Fehler

Verstrichene Zeit 00:00:10.13`

Reduce CPU usage

I notice that xmrig-nvidia uses 6% CPU on my AMD 1700 when running. Other miners, e.g. ethminer, ebwf-miner, don't go over 1%. Any optimization you can do to reduce the CPU usage (I am mining on CPU as well, so less CPU usage = higher hashrate)?

CUDA Error on GTX 980

screenshot 273

[CUDA] Error gpu 0: <cryptonight_extra_cpu_final>:231 "unspecified launch failure"

what does this imply and how to fix?

No CUDA device found!

 * VERSIONS:     XMRig/2.3.1 libuv/1.15.0 CUDA/0.0 gcc/5.4.0
 * CPU:          Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz x64 AES-NI
 * ALGO:         cryptonight, donate=1%
 * POOL #1:      <redacted>
 * COMMANDS:     hashrate, health, pause, resume
[2017-10-07 11:33:02] No CUDA device found!

It's listing my CPU instead of my GPU, and also saying CUDA is 0.0, despite detecting the correct version during cmake.

OS: Arch Linux

Low performance compared to XMR-STAK-NVIDIA

Hi, I have XMR-STAK-NVIDIA running on my computer.
My setup is 6 x NVIDIA 1070 GPU.

Those are my settings for all 6 GPUs 1070 on XMR-STACK-NVIDIA:

Threads: 80
Blocks: 30
Bfactor: 6
Bsleep: 25

Those are the results I get stable with temperature around 60ºC:

image

Now using XMRIG-NVIDIA with the following settings:

Threads: 80
Blocks: 30
Bfactor: 6
Bsleep: 25
Keepalive: true
Nicehash: false

Those are the results I get:

image

As you can see it's a huge difference, around 600 H/s less when comparing to XMR-STAK-NVIDIA.

Thanks.

config

How would you set up the config for xmrpool.net?

Trying to sign in after getting shares, and it says wrong password. :\

Fail to build with CUDA 9.0

I went to upgrade the docker image of xmrig-nvidia using CUDA 9.0, but the build failed.

Build log: here

Any idea how to fix that?

make error on macOS

OS: macOS 10.12.6
XCode CLT: 8.2

I got a build fatal error when running the make on macOS.
Any idea how to build it on macOS?

Full compile log using your ubuntu build instruction:

$ cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc-5
-- Check for working C compiler: /usr/local/bin/gcc-5 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-5
-- Check for working CXX compiler: /usr/local/bin/g++-5 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found UV: /usr/local/lib/libuv.dylib  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "7.5") 
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Miner/xmrig-nvidia/build

$ make
Scanning dependencies of target jansson
[  2%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/dump.c.o
[  4%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/error.c.o
[  6%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable.c.o
[  8%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable_seed.c.o
[ 10%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/load.c.o
[ 12%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/memory.c.o
[ 14%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/pack_unpack.c.o
[ 16%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strbuffer.c.o
[ 18%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strconv.c.o
[ 20%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/utf.c.o
[ 22%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/value.c.o
[ 24%] Linking C static library libjansson.a
[ 24%] Built target jansson
[ 26%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
nvcc fatal   : GNU C/C++ compiler is no longer supported as a host compiler on Mac OS X.
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
  Error generating
  /Miner/xmrig-nvidia/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [all] Error 2

Tried to run cmake without any parameter:

$ cmake ..
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/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: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found UV: /usr/local/lib/libuv.dylib  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "7.5") 
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Miner/xmrig-nvidia/build

$ make
Scanning dependencies of target jansson
[  2%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/dump.c.o
[  4%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/error.c.o
[  6%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable.c.o
[  8%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable_seed.c.o
[ 10%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/load.c.o
[ 12%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/memory.c.o
[ 14%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/pack_unpack.c.o
[ 16%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strbuffer.c.o
[ 18%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strconv.c.o
[ 20%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/utf.c.o
[ 22%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/value.c.o
[ 24%] Linking C static library libjansson.a
[ 24%] Built target jansson
[ 26%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
/usr/local/cuda/include/host_defines.h(230): error: expected a ";"

/usr/local/cuda/include/host_defines.h(231): error: expected a ";"

/usr/local/cuda/include/host_defines.h(232): error: expected a ";"

/usr/local/cuda/include/host_defines.h(233): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef(97): error: identifier "nullptr" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef(97): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(234): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(234): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(244): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(244): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(255): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(259): error: member "std::__1::integral_constant<_Tp, __v>::constexpr" is not a type name

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(259): error: return type may not be specified on a conversion function

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(259): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(267): error: "constexpr" is not a function or static data member

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(295): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(295): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(303): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(303): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(311): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(311): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(325): error: identifier "nullptr_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(344): error: identifier "char16_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(345): error: identifier "char32_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(345): error: class "std::__1::__libcpp_is_integral<<error-type>>" has already been defined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(552): error: identifier "nullptr_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(581): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(581): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(598): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(598): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(607): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(607): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(619): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(619): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(632): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(632): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(644): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(644): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(653): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(695): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(695): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(704): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(704): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(769): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(769): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(782): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(782): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(807): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(807): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1160): error: expected a type specifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1160): error: expected a type specifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1170): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1170): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1183): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1183): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1184): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1184): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1185): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1185): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1186): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1186): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1187): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1187): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1188): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1188): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1189): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1189): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1190): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1190): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1191): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1191): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1192): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1192): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1193): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1193): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1194): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1194): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1195): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1195): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1196): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1196): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1199): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1199): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1235): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1235): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: function template "std::__1::declval" is not a type name

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: function returning function is not allowed

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: "__test" has already been declared in the current scope

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1256): error: identifier "type" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1285): error: expected a ")"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1285): error: function returning function is not allowed

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1285): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1296): error: expected a ")"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1296): error: function returning function is not allowed

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1296): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1448): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1448): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1481): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1481): error: expected a ";"

Error limit reached.
100 errors detected in the compilation of "/var/folders/yl/418vjq2d36g7fy3pj7kb2ns80000gn/T//tmpxft_00006a3f_00000000-13_cuda_extra.compute_60.cpp1.ii".
Compilation terminated.
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:282 (message):
  Error generating file
  /Miner/xmrig-nvidia/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [all] Error 2

MSVC2017 15.4.1 build failure

Trying to build with the latest release of MSVC2017 (15.4.1) causes the following error,
LINK : fatal error C1900: Il mismatch between 'P1' version '20161212' and 'P2' version '20150812'
I noticed on the release page for xmrig-deps it says, "msvc2017 libs now compatible only with Visual Studio 2017 version 15.3, use Visual Studio Installer to upgrade."
I'm assuming that the deps were built with 15.3 (20150812?) and are not compatible with people using the latest release.
Is there any way around this without either downgrading or building the deps personally?

MSVC2015 builds fine, fortunately.

Completely locks up system.

It gets a very nice hash rate while I'm running it, however, when I'm running it, I cannot use the computer at all. My current configuration looks like this:

{
    "algo": "cryptonight",
    "background": false,
    "colors": true,
    "donate-level": 1,
    "log-file": null,
    "print-time": 60,
    "retries": 5,
    "retry-pause": 5,
    "syslog": false,
    "threads": [
        {
            "index": 0,
            "threads": 14,
            "blocks": 66,
            "bfactor": 0,
            "bsleep": 0,
            "affine_to_cpu": false
        }
    ],
    "pools": [
        {
            "url": "uspool.electroneum.com:7777",
            "user": "etnkQEeyXL1hHqYSPj7RzFKcpowXnuj2wedTf8Hm1erT4U1ZqFoTPNeHamnrVKPcVqhH8fCUAm6hy2D88JHWEUqE2X2pd3QuSJ",
            "pass": "x",
            "keepalive": true,
            "nicehash": true
        }
    ],
    "api": {
        "port": 0,
        "access-token": null,
        "worker-id": null
    }
}

What option should I change in order to fix this?

7 GPUs does not function properly - up to 6 is OK it seems?

I have two systems running on Ubuntu server 16.04, one system with 7 pieces of ASUS 1080Ti and another one with 6 pieces of the same card.

When I execute xmrig-nvidia on the 6 GPU system everything works OK, but on the 7 GPU system it only performs work on 1 card out of 7. I do not think it is donation related, same figures on 7 GPU with 1 and 3% donation.

If I manually specify gpu threads to 6 on this 7 GPU system it detects all cards and runs workloads on them, with reduced performance.

I have also tried 10,5,4,7 threads but it is quiet random how many cards it runs on when I try something else, sometimes it is 3 cards, next time 2 cards, 6 threads for some reason works best.

Here I run with 6 threads on 7 GPU system in comparison to 6 GPU where I just execute the miner:

2017-08-31_14-46-44

Build 2.4.2: Out of memory error with GTX 1080ti + GTX 1060 3GB (Windows)

xmrig-nvidia.exe -a cryptonight -o stratum+tcp://cryptonight.usa.nicehash.com:3355 -u xxxxxxxxxxxxxxxxxxxxxxxxxx.1080ti -p x --api-port=3335 --nicehash --cuda-bfactor=9 --donate-level=1 --retries=5 --retry-pause=2 --print-time=5
* VERSIONS: XMRig/2.4.2 libuv/1.14.1 CUDA/9.0 MSVC/2015
* CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz x64 AES-NI
* GPU #0: GeForce GTX 1080 Ti @ 1721/5505 MHz 54x84 9x25 arch:61 SMX:28
* GPU #1: GeForce GTX 1060 3GB @ 1771/4004 MHz 64x27 9x25 arch:61 SMX:9
* ALGO: cryptonight, donate=1%
* POOL #1: cryptonight.usa.nicehash.com:3355
* API PORT: 3335
* COMMANDS: hashrate, health, pause, resume
[CUDA] Error gpu 1: <cryptonight_extra_cpu_init>:193 "out of memory"

error when trying to mine in the background

Hello,
On ubuntu 16.04
Miner works fine only when 'background:false' in the config file.
when changing to 'background:true'
I get the following error:
GPU 0: initialization error
/home/user/xmrig-nvidia/src/nvidia/cuda_extra.cu line 342
Setup failed for GPU 0. Exitting.

Could not find NVML

Hi,

I'm excited to try this out. Unfortunately when building on a freshly installed Xubuntu 16.04, I get the error that it cannot find NVML. I've verified that libnvidia-ml.so etc are in the cuda directory, and it's able to find Cuda after I specify where Cuda is. I tried specifying the flag it asks for (NVML_SOURCE_DIR or whatever it is -- the output is on another computer), but it doesn't seem to mean anything to Cmake.

Problems with gcc

Hello everyone

Im trying to compile the nvidia version, but with the debian machines I have arround I have gcc 4.9 on 8 and 6.x on 9. I setup a virtual machine with ubuntu just to compile the binaries, but with no sucess

Is there anyway to compile any version of the xmrig-nvidia with versions 4.9 or 6 from gcc, since the 5.x version isn't avaiable on regular repos?

thanks

Build fails with ‘nvmlDevice_t’ has not been declared

Cmake returned no errors:

$ cmake .. -DCUDA_ARCH="20;30;50" -DNVML_INCLUDE_DIR=/usr/include/hwloc/
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- Found UV: /usr/lib/x86_64-linux-gnu/libuv.so
-- 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 NVML: /usr/include/hwloc
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Found mhd: /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/xmrig-nvidia/build

However, build fails:

[ 75%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Platform_unix.cpp.o
[ 77%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/nvidia/NvmlApi.cpp.o
In file included from /tmp/xmrig-nvidia/src/nvidia/NvmlApi.cpp:25:0:
/usr/include/hwloc/nvml.h:57:9: error: ‘nvmlDevice_t’ has not been declared
         nvmlDevice_t device, hwloc_cpuset_t set)
         ^
/usr/include/hwloc/nvml.h: In function ‘int hwloc_nvml_get_device_cpuset(hwloc_topology_t, int, hwloc_cpuset_t)’:
/usr/include/hwloc/nvml.h:64:3: error: ‘nvmlReturn_t’ was not declared in this scope
   nvmlReturn_t nvres;
<...>
/tmp/xmrig-nvidia/src/nvidia/NvmlApi.cpp:39:8: warning: ‘nvmlReturn_t’ defined but not used [-Wunused-variable]
 static nvmlReturn_t(*pNvmlInit)(void) = nullptr;
        ^
CMakeFiles/xmrig-nvidia.dir/build.make:782: recipe for target 'CMakeFiles/xmrig-nvidia.dir/src/nvidia/NvmlApi.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig-nvidia.dir/src/nvidia/NvmlApi.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmrig-nvidia.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-nvidia.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Maybe there is an issue with my NVML ?

Can't build with CryptoNight-Lite support OFF

CudaWorker.cpp(56): error C3861: 'cryptonight_gpu_init_lite': identifier not found
CudaWorker.cpp(84): error C3861: 'cryptonight_gpu_hash_lite': identifier not found
CryptoNight.cpp(122): error C2065: 'test_output1': undeclared identifier
CryptoNight.cpp(122): error C2660: 'memcmp': function does not take 2 arguments

Minimum CUDA?

Is there a minimum CUDA requirement? trying to use a GTX480....I get no CUDA devices found

support lower compute capability

Trying to build for my gt540m which is compute 2.1 but gives below error

[ 24%] Built target jansson
[ 26%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_60'
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.cmake:207 (message):
  Error generating
  /home/shensi/xmrig-nvidia/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


CMakeFiles/xmrig-cuda.dir/build.make:70: recipe for target 'CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o' failed
make[2]: *** [CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/xmrig-cuda.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-cuda.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Error with 560Ti

./xmrig-nvidia -o ca.minexmr.com:4444 -u 4B78kerqaWTWjsUVb7xvmVcRkPfruTr7SLFoCDZek6j3f8jtyDXkvSFNxEDZgZ8NXZ8FPK5pCXghuTmz8vnLHeLfHYZs82u.gpu --donate-level=5

  • VERSIONS: XMRig/2.4.2 libuv/1.8.0 CUDA/7.50 gcc/5.4.0
  • CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz x64 AES-NI
  • GPU #0: GeForce GTX 760 @ 1150/3004 MHz 52x18 0x0 arch:30 SMX:6
  • GPU #1: GeForce GTX 560 Ti @ 1701/2052 MHz 30x16 0x0 arch:21 SMX:8
  • ALGO: cryptonight, donate=5%
  • POOL #1: ca.minexmr.com:4444
  • COMMANDS: hashrate, health, pause, resume
    [CUDA] Error gpu 1: <cryptonight_extra_cpu_init>:193 "out of memory"
    terminate called after throwing an instance of 'std::runtime_error'
    what(): [CUDA] Error: out of memory
    Aborted (core dumped)

Also, I get an "invalid architecture error" trying to build for cuda arch 21, so I just built for 20.

[CUDA] Error: no kernel image is available for execution on the device

Hello there.
I'm trying to launch xmrig-nvidia using Fedora26 with Cuda 9.
Nvidia-Drivers version is 384.98 - probably latest one.
After successful compiling having an issue:

  • VERSIONS: XMRig/2.4.2 libuv/1.11.0 CUDA/9.0 gcc/6.4.1
  • CPU: AMD Athlon(tm) II X2 250 Processor (1) x64 -AES-NI
  • GPU #0: GeForce GTX 750 Ti @ 1800/2052 MHz 62x8 0x0 arch:21 SMX:4
  • ALGO: cryptonight, donate=1%
  • POOL #1: bytecoin.uk:7777
  • COMMANDS: 'h' hashrate, 'e' health, 'p' pause, 'r' resume
    [2017-11-19 01:38:33] use pool bytecoin.uk:7777 158.69.143.62
    [2017-11-19 01:38:33] new job from bytecoin.uk:7777 diff 1063
    [CUDA] Error gpu 0: <cryptonight_extra_cpu_prepare>:215 "no kernel image is available for execution on the device"
    terminate called after throwing an instance of 'std::runtime_error'
    what(): [CUDA] Error: no kernel image is available for execution on the device
    Aborted

same problem with missing kernel has an xmr-stak-nvidia.
Meanwhile mining client made by minergate(dot)com for fedora25 works on this system.

Any ideas what to do?

Build 2.3.0 release. closing if i press H

Hi,
New build crash if H pressed to see hash rate!
With 2.3.0 beta 2 all was OK.

===========================

  • VERSIONS: XMRig/2.3.0 libuv/1.14.0 CUDA/8.0 MSVC/2015
  • CPU: Intel(R) Xeon(R) CPU W5580 @ 3.20GHz x64 -AES-NI
  • GPU #1: GeForce GTX 460 @ 1680/1925 MHz 32x14 6x25 arch:21 SMX:7
  • ALGO: cryptonight, donate=1%
  • POOL #1: MY-PROXY-HERE
  • COMMANDS: hashrate, health, pause, resume
    [2017-08-29 12:37:21] use pool MY-PROXY-HERE
    [2017-08-29 12:37:21] new job from MY-PROXY-HERE diff 1000
    [2017-08-29 12:37:24] new job from MY-PROXY-HERE diff 1000
    [2017-08-29 12:37:39] accepted (1/0) diff 1000 (197 ms)
    [2017-08-29 12:37:41] GPU #1: 0/0 MHz 0W 70C FAN 50%
    [2017-08-29 12:37:42] accepted (2/0) diff 1000 (170 ms)
    [2017-08-29 12:37:44] accepted (3/0) diff 1000 (173 ms)
    [2017-08-29 12:37:51] GPU #1: 0/0 MHz 0W 71C FAN 52%
    [2017-08-29 12:37:52] new job from MY-PROXY-HERE diff 1500
    [2017-08-29 12:37:54] accepted (4/0) diff 1000 (171 ms)
    [2017-08-29 12:38:09] accepted (5/0) diff 1500 (199 ms)
    =============================================
    press H and miner just close.

Change the GPU load

Can I change the load on the GPU in your build. If yes, then where to change the values?
Thank you.

error with cuda_extra.cu

Hello,
I'm on ubuntu 16.04
Here is my configuration and the error message:

  • VERSIONS: XMRig/2.3.0-beta1 libuv/1.8.0 CUDA/8.0 gcc/5.4.0
  • CPU: Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz x64 AES-NI
  • GPU #0: GeForce GTX 950A 42x15 f:0 s:0 arch:50 smx:5
  • ALGO: cryptonight, donate=5%

I get:
GPU 0: the launch timed out and was terminated
/home/user/xmrig-nvidia/src/nvidia/cuda_extra.cu line 246

During make, I get the following warnings:

[ 2%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
/home/user/xmrig-nvidia/src/nvidia/cuda_extra.cu: In function ‘void cryptonight_extra_cpu_final(nvid_ctx*, uint32_t, uint64_t, uint32_t*, uint32_t*)’:
/home/user/xmrig-nvidia/src/nvidia/cuda_extra.cu:250:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i < *rescount; i++)
^
and towards the end, another warning:

[ 91%] Building C object CMakeFiles/xmrig-nvidia.dir/src/crypto/c_skein.c.o
/home/user/xmrig-nvidia/src/crypto/c_skein.c: In function ‘Skein_512_Final’:
/home/user/xmrig-nvidia/src/crypto/c_skein.c:574:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
((u64b_t )ctx->b)[0]= Skein_Swap64((u64b_t) i); / build the counter block */
^

I tried purging cuda and reinstalling then recompiling but still get the same warnings and the miner doesn't work.

Any help is appreciated.

Also, a big thanks for the amazing work you're doing. I'm already using your CPU version, seriously the best miner ever. I hope you'd release the amd version soon.

Error on Nvidia Quadro M2200

Hello,

I get this error when trying to run xmrig-nvidia.
image
Is xmrig-nvidia not supported on Nvidia Quadro or what is the problem?

Thanks

Almost completely locks up computer, gets a puny 150H/s

Why does this suck so mega-harshly? It runs, with the parameters as set for mining pool, etc, and shows up as the slow, lame, worthless miner that it is on my pool stats.

My CPU does better than this.

How about if you take some of the viruses and trojans out of it so it will actually MINE?

Strangely, I get ccminer to work fine at 550 or so H/s

Error Compiling on Linux

When trying to compile this on Arch Linux, I am getting this error

Documents/xmrig-nvidia/build on  master [?] 
➜ make
[  2%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
nvcc fatal   : Unsupported gpu architecture 'compute_20'
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
  Error generating
  /home/thomas/Documents/xmrig-nvidia/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/build.make:72: CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:67: CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

If it helps at all, I am running a GTX 1080ti, i7-4790, and I did install Cuda 9

Documents/xmrig-nvidia/build on  master [?] 
➜ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

Errors in latest version

./xmrig-nvidia -o pool.minexmr.com:4444 -u 4B78kerqaWTWjsUVb7xvmVcRkPfruTr7SLFoCDZek6j3f8jtyDXkvSFNxEDZgZ8NXZ8FPK5pCXghuTmz8vnLHeLfHYZs82u --donate-level=5 --print-time=60 
 * VERSIONS:     XMRig/2.3.1 libuv/1.8.0 CUDA/7.50 gcc/5.4.0
 * CPU:                 Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz x64 AES-NI
 * GPU #0:       GeForce GTX 760 @ 1150/3004 MHz 32x18 0x0 arch:30 SMX:6
 * GPU #1:       GeForce GTX 560 Ti @ 1701/2052 MHz 32x16 0x0 arch:21 SMX:8
 * ALGO:         cryptonight, donate=5%
 * POOL #1:      pool.minexmr.com:4444
 * COMMANDS:     hashrate, health, pause, resume

GPU #1: out of memory
cryptonight_extra_cpu_init line 194

Wouldn't compile for architecture 21;30, so I compiled for 20;30. Ran into these errors. I'm using Ubuntu 16.04.3 LTS with CUDA 7.5. Maybe I compiled or ran the program incorrectly.

How to run after Make

Hello,

I followed the directions to build, and believe it was successful.

The last two messages are as follows.

[100%] Linking CXX executable xmrig-nvidia
[100%] Built target xmrig-nvidia

I've researched for an hour but can't figure out how to configure it and then run it. Can you link the directions to configure and run xmrig-nvidia?

Running Unbuntu 17.04 and used these commands to build.

sudo apt-get install git build-essential cmake libuv1-dev nvidia-cuda-dev nvidia-cuda-toolkit gcc-5 g++-5
git clone https://github.com/xmrig/xmrig-nvidia.git
cd xmrig-nvidia
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5
make

Thanks

Command args - only run on specified GPUs

It seems there is no way to assign which GPU(s) to be used for each process. It should support to run only on specific CUDA device by command args, e.g. --cuda-devices 0 1.

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.