GithubHelp home page GithubHelp logo

xmrig / xmrig-cuda Goto Github PK

View Code? Open in Web Editor NEW
342.0 38.0 151.0 417 KB

NVIDIA CUDA plugin for XMRig miner

License: GNU General Public License v3.0

CMake 4.26% Cuda 21.01% C++ 60.74% C 13.99%
xmrig randomx cryptonight cuda

xmrig-cuda's People

Contributors

schernykh avatar spudz76 avatar umikali222 avatar xboxplayer9889 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

xmrig-cuda's Issues

CUDA disabled (no device)

I am using the "xmrig-6.6.2" with "xmrig-cuda-6.5.0-cuda11_1-win64.zip", and my GPU is Nvidia GeForce RTX 2060, 6GB
But the CUDA plugin doesn't work, returning "CUDA disabled (no device)"

Build Error on Linux

Hello, I am a newbie to XMRig and Clang. I was building the CUDA plugin for Linux. During the make procedure, I got a log as follows,

[  7%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
.../xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero
.../xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero
.../xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero
.../xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero
.../xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero
[ 15%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o

And the make just stuck at 23% for more than 10 minutes. I am not sure if it is a normal situation, if not, can anyone give me a possible solution?

I am really a newbie to Clang and the building process, know quite little about it. I tried to search the pointless comparison of unsigned integer with zero on Google, but it seems that this problem has different solutions for different projects.

Error when compiling Cuda plugin

Hello,

I have come across the error while compiling. Any assistance is appreciated.

sudo cmake .. -DCUDA_LIB=/usr/lib/x86_64-linux-gnu/nvidia/current/libcuda.so.418.152.00 -DCUDA_TOOLKIT_ROOT_DIR=/usr/lib/cuda
-- Configuring done
-- Generating done
-- Build files have been written to: /home/j/xmrig-cuda/build

:~/xmrig-cuda/build$ sudo make -j$(nproc)
[ 11%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o
[ 11%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
[ 17%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
[ 23%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
[ 29%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
[ 35%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 41%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
[ 47%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o
[ 52%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
[ 58%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/AstroBWT/dero/xmrig-cu_generated_AstroBWT.cu.o
/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefine

error -- unsupported GNU version! gcc versions later than 7 are not supported!

I have Debian 10, with nvidia driver and libs.

nvidia-smi 
Fri Sep 18 12:21:25 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.152.00   Driver Version: 418.152.00   CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| 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 105...  On   | 00000000:01:00.0  On |                  N/A |
| 45%   31C    P8    N/A /  75W |    769MiB /  4039MiB |     20%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       617      G   /usr/lib/xorg/Xorg                           389MiB |
|    0       818      G   /usr/bin/kwin_x11                             90MiB |
|    0       827      G   /usr/bin/krunner                               1MiB |
|    0       829      G   /usr/bin/plasmashell                         118MiB |
|    0      2905      G   ...4-linux-gnu/libexec/kscreenlocker_greet   167MiB |
+-----------------------------------------------------------------------------+

And typical gcc 7 & 8

gcc-8 -v
Using built-in specs.
COLLECT_GCC=gcc-8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)

gcc-7 -v
Using built-in specs.
COLLECT_GCC=gcc-7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 7.4.0-6' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Debian 7.4.0-6) 

I build with:

cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON\
-DCUDA_VERBOSE_BUILD=ON\
-DCUDA_LIB=/usr/lib/x86_64-linux-gnu/nvidia/current/libcuda.so\
-DCUDA_TOOLKIT_ROOT_DIR=/usr/lib/x86_64-linux-gnu/nvidia/current\
-DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
make -j$(nproc)

And result is:


-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/gcc-8
-- Check for working C compiler: /usr/bin/gcc-8 -- 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/g++-8
-- Check for working CXX compiler: /usr/bin/g++-8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- 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/lib/x86_64-linux-gnu/nvidia/current (found suitable version "9.2", minimum required is "8.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/xmrig-cuda/build
/usr/bin/cmake -S/usr/local/src/xmrig-cuda -B/usr/local/src/xmrig-cuda/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /usr/local/src/xmrig-cuda/build/CMakeFiles /usr/local/src/xmrig-cuda/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/usr/local/src/xmrig-cuda/build'
make -f CMakeFiles/xmrig-cu.dir/build.make CMakeFiles/xmrig-cu.dir/depend
make[2]: Entering directory '/usr/local/src/xmrig-cuda/build'
[ 35%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o
[ 35%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o
[ 35%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 41%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
[ 35%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
[ 47%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
[ 41%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
[ 41%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX && /usr/bin/cmake -E make_directory /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/.
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/./xmrig-cu_generated_randomx_arqma.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/./xmrig-cu_generated_randomx_arqma.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/./xmrig-cu_generated_randomx_monero.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/./xmrig-cu_generated_randomx_monero.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_core.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_core.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/./xmrig-cu_generated_randomx_keva.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/./xmrig-cu_generated_randomx_keva.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/./xmrig-cu_generated_randomx_loki.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/./xmrig-cu_generated_randomx_loki.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_extra.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_extra.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/./xmrig-cu_generated_KawPow.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/./xmrig-cu_generated_KawPow.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o.Release.cmake
cd /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX && /usr/bin/cmake -D verbose:BOOL=ON -D build_configuration:STRING=Release -D generated_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/./xmrig-cu_generated_randomx.cu.o -D generated_cubin_file:STRING=/usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/./xmrig-cu_generated_randomx.cu.o.cubin.txt -P /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o.Release.cmake
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_core.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/./xmrig-cu_generated_randomx_monero.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/./xmrig-cu_generated_randomx_arqma.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_extra.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/./xmrig-cu_generated_randomx_keva.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/./xmrig-cu_generated_KawPow.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/./xmrig-cu_generated_randomx_loki.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_core.cu.o
-- Removing /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/./xmrig-cu_generated_randomx.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/./xmrig-cu_generated_randomx_arqma.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/./xmrig-cu_generated_randomx_monero.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/./xmrig-cu_generated_randomx_keva.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_extra.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/./xmrig-cu_generated_randomx_loki.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/./xmrig-cu_generated_KawPow.cu.o
/usr/bin/cmake -E remove /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/./xmrig-cu_generated_randomx.cu.o
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o.NVCC-depend
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o.NVCC-depend
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o.NVCC-depend
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o.NVCC-depend
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o.NVCC-depend
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o.NVCC-depend
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/RandomX/monero/randomx_monero.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/RandomX/arqma/randomx_arqma.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
-- Generating dependency file: /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/cuda_extra.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/cuda_core.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/RandomX/keva/randomx_keva.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/RandomX/loki/randomx_loki.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/KawPow/raven/KawPow.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
/usr/bin/nvcc -M -D__CUDACC__ /usr/local/src/xmrig-cuda/src/RandomX/randomx.cu -o /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o.NVCC-depend -ccbin /usr/bin/gcc-8 -m64 --std c++11 -DXMRIG_ALGO_CN_LITE -DXMRIG_ALGO_CN_HEAVY -DXMRIG_ALGO_CN_PICO -DRAPIDJSON_SSE2 -DNDEBUG -DHAVE_ROTR -D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE -DCUB_IGNORE_DEPRECATED_CPP_DIALECT -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT -DXMRIG_LARGEGRID=ON -Xcompiler ,\"-Wall\",\"-fexceptions\",\"-fno-rtti\",\"-Wno-strict-aliasing\",\"-Wno-class-memaccess\",\"-fPIC\",\"-maes\",\"-O3\",\"-DNDEBUG\",\"-O2\",\"-s\" -Wno-deprecated-gpu-targets --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_60,code=sm_60 --generate-code arch=compute_60,code=compute_60 --generate-code arch=compute_70,code=sm_70 --generate-code arch=compute_70,code=compute_70 --default-stream per-thread -DNVCC -I/usr/include -I/usr/local/src/xmrig-cuda/src
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
In file included from /usr/include/host_config.h:50,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
 #error -- unsupported GNU version! gcc versions later than 7 are not supported!
  ^~~~~
CMake Error at xmrig-cu_generated_randomx_monero.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/./xmrig-cu_generated_randomx_monero.cu.o


make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:103: CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMake Error at xmrig-cu_generated_randomx_arqma.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/./xmrig-cu_generated_randomx_arqma.cu.o


CMake Error at xmrig-cu_generated_KawPow.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/./xmrig-cu_generated_KawPow.cu.o


make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:82: CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o] Error 1
make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:131: CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o] Error 1
CMake Error at xmrig-cu_generated_randomx_keva.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/keva/./xmrig-cu_generated_randomx_keva.cu.o


CMake Error at xmrig-cu_generated_cuda_core.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_core.cu.o


CMake Error at xmrig-cu_generated_randomx.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/./xmrig-cu_generated_randomx.cu.o


make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:89: CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o] Error 1
make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:110: CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o] Error 1
make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:68: CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o] Error 1
CMake Error at xmrig-cu_generated_randomx_loki.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/./xmrig-cu_generated_randomx_loki.cu.o


make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:96: CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o] Error 1
CMake Error at xmrig-cu_generated_cuda_extra.cu.o.Release.cmake:219 (message):
  Error generating
  /usr/local/src/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:75: CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o] Error 1
make[2]: Leaving directory '/usr/local/src/xmrig-cuda/build'
make[1]: *** [CMakeFiles/Makefile2:75: CMakeFiles/xmrig-cu.dir/all] Error 2
make[1]: Leaving directory '/usr/local/src/xmrig-cuda/build'
make: *** [Makefile:87: all] Error 2

What is wrong?

Watchdog Config Change VS Config First Run AND bfactor/bsleep broken

Hello, so a few things.

    "cuda": {
        "enabled": true,
        "loader": null,
        "nvml": true,
        "bfactor": 12,
        "bsleep": 100,
        "cn/0": false,
        "cn-lite/0": false
    },

or

    "cuda": {
        "enabled": true,
        "loader": null,
        "nvml": true,
        "cuda-bfactor": 12,
        "cuda-bsleep": 100,
        "cn/0": false,
        "cn-lite/0": false
    },

the bfactor nor bsleep seem to get set, how are we supposed to set these now?

Also with "watch": true

while running if i try to change cuda-bfactor it will change to disabled (no suitable configuration found)
even if I start it with "cuda-bfactor": 12 change to "cuda-bfactor": 10 then change back to "cuda-bfactor": 12 after the first change it says invalid even though the last change was the value it started fine with in the beginning.

Crashes after this error...

nvidia thread #1 failed with error <randomx_prepare>:36 "invalid argument"
[2021-03-19 13:23:02.861] nvidia thread #0 failed with error <randomx_prepare>:36 "invalid argument"

I can see in nvidia-smi that the xmrig process stops using memory on my card, the program doesn't recover...

NVIDIA-SMI 460.56 Driver Version: 460.56 CUDA Version: 11.2
xmrig --version
XMRig 6.10.0
built on Mar 16 2021 with GCC 7.5.0
features: 64-bit AES

libuv/1.18.0
OpenSSL/1.1.1
hwloc/1

GeForce GTX 1050
GeForce GT 710

testing Monero with older cards...

Rejected shares after dev pool mining

Using xmrig 5.5.0, I always get rejected share after xmrig switches from dev pool to user pool... Error message from user pool suggests there is problem with thread synchronization as share gets sent to user pool before login message.

CUDA disabled (no devices)

Hello,
My machine is a bit old.

GPU: nVidia GEFORCE GT540M
OS: Windows 7 X64

config.json:

{
    "donate-level": 1,
    "cpu": false,
    "opencl": false,
    "cuda": true,
    "pools": [
        {
            "coin": "monero",
            "url": "pool.supportxmr.com:3333",
            "user": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "keepalive": true,
            "tls": true
        }
    ]
}

Issue log:

E:\xmrig-5.0.1-msvc-cuda10_1-win64\xmrig-5.0.1>xmrig.exe
 * ABOUT        XMRig/5.0.1 MSVC/2017
 * LIBS         libuv/1.31.0 OpenSSL/1.1.1c hwloc/2.0.4
 * HUGE PAGES   permission granted
 * CPU          Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz (1) x64 AES
                L2:0.5 MB L3:4.0 MB 2C/4T NUMA:1
 * DONATE       1%
 * ASSEMBLY     auto:intel
 * POOL #1      pool.supportxmr.com:3333 coin monero
 * COMMANDS     hashrate, pause, resume
 * OPENCL       disabled
 * CUDA         disabled (no devices)

CUDA and GPU driver are updated.
It seems that CUDA is not detected.
Thank you!

6.4.0 nvidia thread #1 failed with error Unsupported algorithm

mining kawpow on NVIDIA GTX 1070 - works ok on xmrig 6.3.5, and stop working with 6.4.0
On AMD (RX 5500 and 5600) - work ok with both versions (xmrig using opencl)

[2020-10-19 09:00:57.681] nvidia KawPow DAG for epoch 194 calculated (14550ms)
[2020-10-19 09:00:57.681] nvidia thread #0 failed with error Unsupported algorithm
...and same error on all threads

Rig is Ubuntu based. Manually compiled with same procedure as always and on same machine as always:
xmrig-cuda:
cd cmake && export PATH=/usr/local/cuda-10.0/bin:$PATH; cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so && make -j12
xmrig:
cd cmake && cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 && make -j32

running options:
--opencl --cuda --no-cpu -o stratum.ravenminer.com:3838 -a kawpow -u xxxxxxxxx -p x --print-time=5 --http-port=3333

full logs running 6.3.5 and 6.4.0 on this NV rig:

6.3.5:

  • ABOUT XMRig/6.3.5 gcc/5.4.0
  • LIBS libuv/1.8.0 OpenSSL/1.0.2g hwloc/1.11.9
  • HUGE PAGES supported
  • 1GB PAGES disabled
  • CPU Intel(R) Celeron(R) CPU G3930 @ 2.90GHz (1) x64 AES
    L2:0.5 MB L3:2.0 MB 2C/2T NUMA:1
  • MEMORY 1.3/7.7 GB (16%)
  • DONATE 1%
  • ASSEMBLY auto:intel
  • POOL #1 stratum.ravenminer.com:3838 algo kawpow
  • COMMANDS hashrate, pause, resume, results, connection
  • HTTP API 127.0.0.1:3333
  • OPENCL disabled (no devices)
  • CUDA 10.0/11.1/6.3.2
  • NVML 11.455.28/455.28 press e for health report
  • CUDA GPU #0 01:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #1 03:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #2 06:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #3 07:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #4 08:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #5 09:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
    [2020-10-19 08:58:53.020] net use pool stratum.ravenminer.com:3838 35.157.118.228
    [2020-10-19 08:58:53.095] net new job from stratum.ravenminer.com:3838 diff 431M algo kawpow height 1457046
    [2020-10-19 08:58:53.095] nvidia use profile kawpow (6 threads) scratchpad 32 KB
    | # | GPU | BUS ID | INTENSITY | THREADS | BLOCKS | BF | BS | MEMORY | NAME
    | 0 | 0 | 01:00.0 | 7864320 | 256 | 30720 | 0 | 0 | 2576 | GeForce GTX 1070
    | 1 | 1 | 03:00.0 | 7864320 | 256 | 30720 | 0 | 0 | 2576 | GeForce GTX 1070
    | 2 | 2 | 06:00.0 | 7864320 | 256 | 30720 | 0 | 0 | 2576 | GeForce GTX 1070
    | 3 | 3 | 07:00.0 | 7864320 | 256 | 30720 | 0 | 0 | 2576 | GeForce GTX 1070
    | 4 | 4 | 08:00.0 | 7864320 | 256 | 30720 | 0 | 0 | 2576 | GeForce GTX 1070
    | 5 | 5 | 09:00.0 | 7864320 | 256 | 30720 | 0 | 0 | 2576 | GeForce GTX 1070
    [2020-10-19 08:58:57.188] nvidia READY threads 6/6 (4092 ms)
    [2020-10-19 08:58:58.142] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:03.147] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:08.157] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:10.884] miner KawPow light cache for epoch 194 calculated (13696ms)
    [2020-10-19 08:59:13.161] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:18.166] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:23.168] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:25.851] nvidia KawPow DAG for epoch 194 calculated (14966ms)
    [2020-10-19 08:59:25.852] nvidia KawPow DAG for epoch 194 calculated (14967ms)
    [2020-10-19 08:59:25.853] nvidia KawPow DAG for epoch 194 calculated (14968ms)
    [2020-10-19 08:59:25.855] nvidia KawPow DAG for epoch 194 calculated (14970ms)
    [2020-10-19 08:59:25.856] nvidia KawPow DAG for epoch 194 calculated (14971ms)
    [2020-10-19 08:59:25.857] nvidia KawPow DAG for epoch 194 calculated (14972ms)
    [2020-10-19 08:59:28.187] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:29.905] net new job from stratum.ravenminer.com:3838 diff 431M algo kawpow height 1457047
    [2020-10-19 08:59:33.190] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 08:59:38.194] miner speed 10s/60s/15m 66.91 n/a n/a MH/s max 66.96 MH/s
    [2020-10-19 08:59:38.979] nvidia accepted (1/0) diff 431M (122 ms)
    [2020-10-19 08:59:43.197] miner speed 10s/60s/15m 67.21 n/a n/a MH/s max 67.22 MH/s
    [2020-10-19 08:59:48.202] miner speed 10s/60s/15m 67.19 n/a n/a MH/s max 67.22 MH/s

6.4.0:

  • ABOUT XMRig/6.4.0 gcc/5.4.0
  • LIBS libuv/1.8.0 OpenSSL/1.0.2g hwloc/1.11.9
  • HUGE PAGES supported
  • 1GB PAGES disabled
  • CPU Intel(R) Celeron(R) CPU G3930 @ 2.90GHz (1) x64 AES
    L2:0.5 MB L3:2.0 MB 2C/2T NUMA:1
  • MEMORY 1.3/7.7 GB (17%)
  • DONATE 1%
  • ASSEMBLY auto:intel
  • POOL #1 stratum.ravenminer.com:3838 algo kawpow
  • COMMANDS hashrate, pause, resume, results, connection
  • HTTP API 127.0.0.1:3333
  • OPENCL disabled (no devices)
  • CUDA 10.0/11.1/6.4.0
  • NVML 11.455.28/455.28 press e for health report
  • CUDA GPU #0 01:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #1 03:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #2 06:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #3 07:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #4 08:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
  • CUDA GPU #5 09:00.0 GeForce GTX 1070 1771/4004 MHz smx:15 arch:61 mem:8022/8119 MB
    [2020-10-19 09:00:25.048] net use pool stratum.ravenminer.com:3838 3.122.71.171
    [2020-10-19 09:00:25.118] net new job from stratum.ravenminer.com:3838 diff 431M algo kawpow height 1457047
    [2020-10-19 09:00:25.118] nvidia use profile kawpow (6 threads) scratchpad 32 KB
    | # | GPU | BUS ID | INTENSITY | THREADS | BLOCKS | BF | BS | MEMORY | NAME
    | 0 | 0 | 01:00.0 | 5760 | 128 | 45 | 0 | 0 | 2576 | GeForce GTX 1070
    | 1 | 1 | 03:00.0 | 5760 | 128 | 45 | 0 | 0 | 2576 | GeForce GTX 1070
    | 2 | 2 | 06:00.0 | 5760 | 128 | 45 | 0 | 0 | 2576 | GeForce GTX 1070
    | 3 | 3 | 07:00.0 | 5760 | 128 | 45 | 0 | 0 | 2576 | GeForce GTX 1070
    | 4 | 4 | 08:00.0 | 5760 | 128 | 45 | 0 | 0 | 2576 | GeForce GTX 1070
    | 5 | 5 | 09:00.0 | 5760 | 128 | 45 | 0 | 0 | 2576 | GeForce GTX 1070
    [2020-10-19 09:00:29.169] nvidia READY threads 6/6 (4051 ms)
    [2020-10-19 09:00:30.131] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:00:35.136] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:00:40.165] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:00:43.130] miner KawPow light cache for epoch 194 calculated (13961ms)
    [2020-10-19 09:00:45.179] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:00:50.182] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:00:55.187] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:00:57.679] nvidia KawPow DAG for epoch 194 calculated (14549ms)
    [2020-10-19 09:00:57.680] nvidia thread #1 failed with error Unsupported algorithm
    [2020-10-19 09:00:57.681] nvidia KawPow DAG for epoch 194 calculated (14550ms)
    [2020-10-19 09:00:57.681] nvidia thread #0 failed with error Unsupported algorithm
    [2020-10-19 09:00:57.681] nvidia KawPow DAG for epoch 194 calculated (14551ms)
    [2020-10-19 09:00:57.681] nvidia thread #3 failed with error Unsupported algorithm
    [2020-10-19 09:00:57.682] nvidia KawPow DAG for epoch 194 calculated (14552ms)
    [2020-10-19 09:00:57.684] nvidia thread #4 failed with error Unsupported algorithm
    [2020-10-19 09:00:57.684] nvidia KawPow DAG for epoch 194 calculated (14554ms)
    [2020-10-19 09:00:57.684] nvidia thread #2 failed with error Unsupported algorithm
    [2020-10-19 09:00:57.684] nvidia KawPow DAG for epoch 194 calculated (14553ms)
    [2020-10-19 09:00:57.684] nvidia thread #5 failed with error Unsupported algorithm
    [2020-10-19 09:01:00.191] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:01:05.196] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s
    [2020-10-19 09:01:10.200] miner speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s

comparison of gpu vs cpu hashrates

  • ABOUT XMRig/6.3.3 gcc/8.3.0
  • LIBS libuv/1.24.1 OpenSSL/1.1.1d hwloc/1.11.12
  • HUGE PAGES supported
  • 1GB PAGES disabled
  • CPU AMD Ryzen 5 2600X Six-Core Processor (1) x64 AES
    L2:3.0 MB L3:16.0 MB 6C/12T NUMA:1
  • MEMORY 8.1/15.7 GB (52%)
    ASSEMBLY auto:ryzen
  • CUDA 9.2/10.1/6.3.2
  • NVML disabled (failed to load NVML)
  • CUDA GPU #0 26:00.0 GeForce GTX 1060 6GB 1835/4004 MHz smx:10 arch:61 mem:5341/6077 MB

[2020-09-06 05:01:33.255] cpu accepted (2/0) diff 175004 (220 ms)
| CPU # | AFFINITY | 10s H/s | 60s H/s | 15m H/s |
| 0 | 0 | 442.7 | n/a | n/a |
| 1 | 2 | 598.3 | n/a | n/a |
| 2 | 4 | 606.1 | n/a | n/a |
| 3 | 1 | 438.0 | n/a | n/a |
| 4 | 6 | 437.0 | n/a | n/a |
| 5 | 8 | 613.2 | n/a | n/a |
| 6 | 10 | 610.3 | n/a | n/a |
| 7 | 7 | 440.6 | n/a | n/a |
| - | - | 4186.3 | n/a | n/a |

| CUDA # | AFFINITY | 10s H/s | 60s H/s | 15m H/s |
| 0 | -1 | 295.4 | n/a | n/a | #0 26:00.0 GeForce GTX 1060 6GB
| - | - | 295.4 | n/a | n/a |

The results of Cuda were no where near the numbers my CPU can produce. Any idea how to improve it? Would fixing NVML help?

CUDA Hashrate not being reported

Old hardware and software:

  • GeForce GT 430
  • Nvidia Driver 390.129
  • CUDA 8.0.61
  • Ubuntu 18.04

Compiled libxmrig-cuda.so via

$ git clone https://github.com/xmrig/xmrig-cuda.git
$ cd xmrig-cuda
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5`

Everything went well. Moved libxmrig-cuda.so to a different directory, then enabled cuda in my xmrig config and pointed to the loader.

Starting xmrig shows no errors.

$ xmrig -c .xmrig/config.json
 * ABOUT        XMRig/5.5.1 gcc/7.4.0
 * LIBS         libuv/1.18.0 OpenSSL/1.1.1 hwloc/1.11.9
 * HUGE PAGES   supported
 * 1GB PAGES    unavailable
 * CPU          Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (1) x64 AES
                L2:1.0 MB L3:6.0 MB 4C/4T NUMA:1
 * MEMORY       13.1/15.6 GB (84%)
 * DONATE       5%
 * ASSEMBLY     auto:intel
 * POOL #1      127.0.0.1:18081 coin monero
 * COMMANDS     hashrate, pause, resume
 * OPENCL       disabled
 * CUDA         8.0/9.1/2.1.0
 * NVML         9.390.129/390.129 press e for health report
 * CUDA GPU     #0 01:00.0 GeForce GT 430 1400/533 MHz smx:2 arch:21 mem:940/963 MB
[2020-02-04 05:49:04.411]  net  use daemon 127.0.0.1:18081  127.0.0.1
[2020-02-04 05:49:04.411]  net  new job from 127.0.0.1:18081 diff 157750235187 algo rx/0 height 2026019
[2020-02-04 05:49:04.426]  msr  msr kernel module is not available
[2020-02-04 05:49:04.426]  rx   init dataset algo rx/0 (4 threads) seed 7b8b843f368c19c6...
[2020-02-04 05:49:04.591]  rx   allocated 2336 MB (2080+256) huge pages 89% 1040/1168 +JIT (166 ms)
[2020-02-04 05:49:13.975]  rx   dataset ready (9383 ms)
[2020-02-04 05:49:13.975]  cpu  use profile  rx  (3 threads) scratchpad 2048 KB
[2020-02-04 05:49:14.015]  cpu  READY threads 3/3 (3) huge pages 100% 3/3 memory 6144 KB (41 ms)
[2020-02-04 05:49:14.035]  nv   use profile  rx  (1 thread) scratchpad 2048 KB
|  # | GPU |  BUS ID |    I |   T |   B | BF |  BS |  MEM | NAME
|  0 |   0 | 01:00.0 |  128 |  32 |   4 |  0 |   0 |  256 | GeForce GT 430
[2020-02-04 05:49:14.216]  nv   READY threads 1/1 (180 ms)

Typing h to pull up the hashing report shows the CPU hashing as expected, but gives n/a for my CUDA card.

|    CPU # | AFFINITY | 10s H/s | 60s H/s | 15m H/s |
|        0 |        0 |   384.0 |   402.9 |   403.9 |
|        1 |        1 |   277.6 |   303.4 |   325.8 |
|        2 |        2 |   390.3 |   409.3 |   406.4 |
|        - |        - |  1051.9 |  1115.7 |  1136.2 |
|   CUDA # | AFFINITY | 10s H/s | 60s H/s | 15m H/s |
|        0 |       -1 |     n/a |    10.1 |    10.0 | #0 01:00.0 GeForce GT 430
|        - |        - |     n/a |    10.1 |    10.0 |
[2020-02-04 06:10:18.906] speed 10s/60s/15m 1051.9 1125.7 1146.2 H/s max 1266.4 H/s

I've noticed that I start the miner, the card is reporting a temp of 62C, and 10 minutes later it's at 69C. That, coupled with no visible errors, makes me think that something is happening, but it's hard to tell because the hashrate is just n/a.

Any insight?

Build failing on ubuntu 16.04 (docker)

I'm trying to build this plugin in a docker container but having trouble getting the cmake and the build going. I'm just running the container interactively at the moment to try and diagnose the issue.

docker run --rm -it nvidia/cuda:10.1-devel-ubuntu16.04 /bin/bash
cd /tmp
apt-get update && apt-get install --no-install-recommends -y build-essential cmake git
git clone --single-branch --depth 1 --branch v2.0.0-beta https://github.com/xmrig/xmrig-cuda.git xmrig-cuda && cd xmrig-cuda

# cmake fails unless i include the CUDA_LIB define, which seems odd
cmake -DCUDA_LIB=/usr/local/cuda .
make

Presumably i'm missing a dependency? Hoping someone can spot what's wrong because it seems like cmake should detect CUDA_LIB on its own, and make should not be failing on the compiler standard.

command output logs

cmake output
-- 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
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- 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/local/cuda (found suitable version "10.1", minimum required is "8.0") 
-- Configuring done
WARNING: Target "xmrig-cuda" requests linking to directory "/usr/local/cuda".  Targets may link only to libraries.  CMake is dropping the item.
-- Generating done
-- Build files have been written to: /tmp/xmrig-cuda
cmake output (without `CUDA_LIB` define)
-- 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
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- 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/local/cuda (found suitable version "10.1", minimum required is "8.0") 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_LIB
    linked by target "xmrig-cuda" in directory /tmp/xmrig-cuda

-- Configuring incomplete, errors occurred!
See also "/tmp/xmrig-cuda/CMakeFiles/CMakeOutput.log".
See also "/tmp/xmrig-cuda/CMakeFiles/CMakeError.log".
make output
[  8%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
In file included from /usr/include/c++/5/cstdint:35:0,
                 from /tmp/xmrig-cuda/src/cryptonight.h:32,
                 from /tmp/xmrig-cuda/src/RandomX/wownero/randomx_wownero.cu:20:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
cc1plus: warning: unrecognized command line option '-Wno-class-memaccess'
CMake Error at xmrig-cu_generated_randomx_wownero.cu.o.cmake:207 (message):
  Error generating
  /tmp/xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/./xmrig-cu_generated_randomx_wownero.cu.o


CMakeFiles/xmrig-cu.dir/build.make:105: recipe for target 'CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o' failed
make[2]: *** [CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/xmrig-cu.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-cu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Build Issue (Linux)

Hey all, if you need additional help testing, let me know.

While building on linux you get this error when trying to run the make command.
/usr/include/c++/9.2.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined

A bit of google foo shows that this issue is related some friction between certain compiler versions and CUDA libs. Read more on that here.

I was able to build but it was a super big pain-in-the-ass. Basically for all of the CMAKE files listed below, I had to manually edit them to replace the line:
set(CUDA_HOST_COMPILER "/usr/bin/cc") # path
replaced with:
set(CUDA_HOST_COMPILER "/usr/bin/cc-8") # path

This is the full list of files I had to manually make that change in:

xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o.Release.cmake
xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o.Release.cmake
xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o.Release.cmake
xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o.Release.cmake
xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o.Release.cmake
xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o.Release.cmake
xmrig-cuda/CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o.Release.cmake

This was on Arch Linux but I presume this would extend to other flavors as well. Basically was unable to compile with the 9.2 version of the compiler and had to rollback to cc-8.

I think this might be a nvidia issue because I do believe they claim support for clang9 but I figured I'd make you guys aware as well as the steps I took to fix it. Anyways, I hope this helps! Would love to hear your thoughts and assist with a better solution if possible.

I'm not a C/C++ guy so it's some small miracle I got this to build. Wish I could provide more useful insight. The finished .so library does work and allows me CUDA mine with my 1080TI.

compile problem under ubuntu16

Hi.
I have ubuntu 16.04
gcc packages installed: gcc, gcc-5, gcc-5-base, gcc-6-base
cuda installed 10.0

compile like this:
git clone https://github.com/xmrig/xmrig-cuda.git
cd xmrig-cuda/
cmake ./ -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so
-- 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
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- 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/local/cuda (found suitable version "10.0", minimum required is "8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/miner/a/xmrig-cuda
(with no errors yet)
make
[ 16%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
[ 16%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
[ 33%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o
[ 41%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
[ 58%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
In file included from /usr/include/c++/5/cstdint:35:0,
from /home/miner/a/xmrig-cuda/src/CudaCryptonightR_gen.h:4,
from /home/miner/a/xmrig-cuda/src/cuda_core.cu:31:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^

If I do the same under ubuntu18 with installed gcc, gcc-7, gcc-7-base, gcc-8-base,
than compile successfully, but such binary wont run under ubuntu 16 because no sufficient glibc version:

ldd libxmrig-cuda.so
./libxmrig-cuda.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./libxmrig-cuda.so)

with older versions xmrig-nvidia package there was no problem with compiling like this on ubuntu16

please help

Compile issue on CentOS 6

Hi.
I noticed a compile issue on CentOS 6 with GCC 6.3.1 and would like to share the details including a solution/workaround.

First, gcc doesn't know about some options, so I need to replace them in the file cmake/flags.cmake:
Replace std=c++11 by std=c++0x
Replace Ofast by O2

The error message during make is:

In file included from /usr/src/xmrig-cuda-1.0.0-beta/src/cryptonight.h:30:0,
                 from /usr/src/xmrig-cuda-1.0.0-beta/src/xmrig-cuda.cpp:26:
/usr/src/xmrig-cuda-1.0.0-beta/src/crypto/common/Algorithm.h:93:5: error: ‘size_t’ does not name a type
     size_t l2() const
     ^~~~~~

To fix this, I added an include statement in line 29 of file src/crypto/common/Algorithm.h

#include <sys/types.h>

That way, make completes without errors and produces a working libxmrig-cuda.so

CUDA Plugin not working

Running XMRIG By CLI: ./xmrig --donate-level 3 --cuda -o pool.minexmr.com:443 -u --coin monero -k --tls
OS: Ubuntu 18.04
CUDA: Cuda compilation tools, release 10.1, V10.1.243

NVIDIA Driver:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21 Driver Version: 435.21 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 NVS 510 Off | 00000000:03:00.0 N/A | N/A |
| 28% 34C P8 N/A / N/A | 184MiB / 1998MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
| 1 NVS 510 Off | 00000000:04:00.0 N/A | N/A |
| 28% 29C P8 N/A / N/A | 1MiB / 1999MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
| 1 Not Supported |
+-----------------------------------------------------------------------------+

Compile CUDA Plugin:
/xmrig-cuda/build$ cmake .. -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.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
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- 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/local/cuda (found suitable version "10.1", minimum required is "8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Miner/xmrig-cuda/build
miner@miner:
/xmrig-cuda/build$ make -j$(nproc)
[ 16%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
[ 16%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
[ 33%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
[ 41%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 58%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/loki/xmrig-cu_generated_randomx_loki.cu.o
/home/miner/xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/xmrig-cuda/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/xmrig-cuda/src/cuda_extra.cu: In function ‘int cuda_get_deviceinfo(nvid_ctx*)’:
/home/miner/xmrig-cuda/src/cuda_extra.cu:586:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ctx->device_blocks > max_blocks) {
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
Scanning dependencies of target xmrig-cu
[ 66%] Linking CXX static library libxmrig-cu.a
[ 66%] Built target xmrig-cu
Scanning dependencies of target xmrig-cuda
[ 75%] Building C object CMakeFiles/xmrig-cuda.dir/src/crypto/cn/c_blake256.c.o
[ 83%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/CudaCryptonightR_gen.cpp.o
[ 91%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/xmrig-cuda.cpp.o
[100%] Linking CXX shared library libxmrig-cuda.so
[100%] Built target xmrig-cuda

Now I move the 2 files and run xmrig but xmrig says:

  • ABOUT XMRig/5.1.0 gcc/7.4.0
  • LIBS libuv/1.18.0 OpenSSL/1.1.1 hwloc/1.11.9
  • CPU Intel(R) Xeon(R) CPU E5-1630 v3 @ 3.70GHz (1) x64 AES
    L2:1.0 MB L3:10.0 MB 4C/8T NUMA:1
  • MEMORY 3.2/15.6 GB (21%)
  • DONATE 3%
  • ASSEMBLY auto:intel
  • POOL #1 ca.minexmr.com:443 coin monero
  • COMMANDS hashrate, pause, resume
  • OPENCL disabled
  • CUDA disabled (failed to load CUDA plugin)

Can anyone help me get the CUDA Plugin to work on this?

Having trouble compiling the plugin for linux

OS: Manjaro Linux x86_64
Host: MS-7A34 2.0
Kernel: 5.7.9-1-MANJARO
CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz
GPU: NVIDIA GeForce GTX 1050 Ti
Memory: 5466MiB / 16026MiB
(Relevant info from neofetch)

I am having some issues trying to compile the plugin to get cuda to work, I have successfully done cmake without any issues but when it comes to make I get this
https://hastebin.com/zewiyazuto.m (I thought the output was a bit too long to put in a code block so I just decided to put it in hastebin, if you wish to have me put it in a code block in github I would be more than happy to do so)
If anyone can help me that would be much appreciated!

how the fuck can I compile this mf plugin in linux

I tried with every fucking way in cmake and is giving me a bunch of errors and a fucking headache

why the fuck the developer of this shit (that is getting fees in the miner) doesnt compile this piece of bullshit?

Rig is not finding plugin

I have tried several versions and several locations on the computer. XMrig does not seem to be able to see the plug in.

},
"cuda": {
    "enabled": true,
    "loader": "d:\\XM\\xmrig-cuda.dll",
    "nvml": true,
    "cn/0": false,
    "cn-lite/0": false
},

Anyone?

2 questions to ask.

Hi,

2 questions to ask.

  1. Same pc, mining runs at about 1371 h/s in windows 10/64 but near 2000 h/s in macos. Is it normal?
  2. Cannot run CUDA with GT740 card. there is a error msg: disabled (no devices). Does not support GT 740 card?

m

Thanks!

Steve

Hash Rate - CPU hash is cut by what CUDA plugin is Adding

xmrig 5.1.1 cuda plugin 2.1.1.

If i run xmrig i get 1500h/s, when i add the GPU by the cuda plugin(2.1.1) my CPU hash rate drops by what the NV(GPU) hash rate is able to produce.

Example if GPU produces 200h/s my CPU drops to 1300h/s.

bug?

Driver does not support CUDA 11.2 API! Update your nVidia driver!

Getting this error every time I run XMRig

Driver does not support CUDA 11.2 API! Update your nVidia driver!
 * CUDA         disabled (no devices)

Driver is up to date as is everything else, this is what I get when running nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.45.01    Driver Version: 455.45.01    CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 970     Off  | 00000000:1D:00.0  On |                  N/A |
|  2%   48C    P8    18W / 163W |    304MiB /  4041MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       500      G   /usr/lib/Xorg                     120MiB |
|    0   N/A  N/A       698      G   /usr/bin/plasmashell              119MiB |
|    0   N/A  N/A      1325      G   ...gAAAAAAAAA --shared-files       14MiB |
|    0   N/A  N/A      1576      G   ...AAAAAAAAA= --shared-files       32MiB |
|    0   N/A  N/A      2647      G   /usr/lib/firefox/firefox            2MiB |
|    0   N/A  N/A      4321      G   /usr/lib/firefox/firefox            2MiB |
+-----------------------------------------------------------------------------+

I'm running a 970 which is still supported by CUDA 11 so I have no idea what the issue is. I know CUDA 11.2 is very new so that may have broke somthing

still works? "--cuda-launch=" "--cuda-bfactor" "--cuda-bsleep"

with Unified CPU/GPU miner xmrig 5.0.0 + xmrig-cuda-2.0.1-beta-cuda10_1-win64
it's possible to use --cuda-launch= --cuda-bfactor --cuda-bsleep ?
how can i use only 50% of the gpu power? with my gtx 1060 3gb I used this config before:

xmrig-nvidia.exe --donate-level 1 --cuda-launch=16x36 --cuda-bfactor 12 --cuda-bsleep 100 -o mypool -u myaddress -p nv1060

GTX 1060 | 3GB | 1152 Core | SMX 9 | Blocks 36 | Threads 32

1152/2=576
16x36=576

nvidia plugin CUDA8 works maximum with 16 threads

Cuda 8 version is works for me? but only with 16 threads max.
I have several GPU 640M, 720M, 740M, 800M, 920M....with Fermi, as i think
It`s works only with CUDA 8. I use 5.0.1 xmrig with cuda 8 plugin.
When i set more than 16 thread (24, 32, 48, 64) app will crash with:

thread #0 failed with error <cryptonight_core_gpu_hash>:752 "an illegal memory access was encountered"

number of blocks doesn`t metter. Almost gpu has 2 SMX with 2Gb memory. And bxt 16x16 is not enough for full throttle. 16x32 and 16x64 will get more hash. There is no problem with xmr-stak cuda8 version, but randomx version of xmr-stak has no cuda 8 -(
Can you help me with xmrig?

p.s. log
[2019-11-28 23:13:08.170] Huge pages support was successfully enabled, but reboot required to use it

  • ABOUT XMRig/5.0.1 gcc/9.2.0
  • LIBS libuv/1.31.0 OpenSSL/1.1.1c hwloc/2.0.4
  • HUGE PAGES unavailable
  • CPU Intel(R) Core(TM) i3-4160T CPU @ 3.10GHz (1) x64 AES
    L2:0.5 MB L3:3.0 MB 2C/4T NUMA:1
  • DONATE 1%
  • ASSEMBLY auto:intel
  • POOL #1 10.54.0.1:3333 algo auto
  • COMMANDS hashrate, pause, resume
  • OPENCL disabled
  • CUDA 8.0/9.1/2.0.1-beta
  • NVML 9.388.73/388.73 press e for health report
  • CUDA GPU #0 01:00.0 GeForce 800M 1475/900 MHz smx:1 arch:21 mem:1691/2048 MB
    [2019-11-28 23:13:08.217] net use pool 10.54.0.1:3333 10.54.0.1
    [2019-11-28 23:13:08.217] net new job from 10.54.0.1:3333 diff 1200 algo cn/r height 1976945
    [2019-11-28 23:13:08.217] nv use profile cn (1 thread) scratchpad 2048 KB
    | # | GPU | BUS ID | I | T | B | BF | BS | MEM | NAME
    | 0 | 0 | 01:00.0 | 256 | 32 | 8 | 8 | 25 | 512 | GeForce 800M
    [2019-11-28 23:13:08.420] nv READY threads 1/1 (205 ms)
    [2019-11-28 23:13:09.608] nv thread #0 failed with error <cryptonight_core_gpu_hash>:752 "an illegal memory access was encountered"
    [2019-11-28 23:13:11.404] SIGHUP received, exiting
    [2019-11-28 23:13:11.404] nv stopped (9 ms)

<reg>:53 "operation not supported"

I try to mine on a NVIDIA Jetson Nano. I have build the xmrgi-cuda and xmrig from source. There were no problems.
NVML should be installed (ubuntu package cuda-nvml-dev-10-2) so i dont know why it has problems loading it.

The problem is that the mining thread stops with thread #0 failed with error <reg>:53 "operation not supported" and then does nothing.

  * ABOUT        XMRig/6.8.1 gcc/7.5.0
 * LIBS         libuv/1.40.1-dev OpenSSL/1.1.1 hwloc/1.11.9
 * HUGE PAGES   supported
 * 1GB PAGES    unavailable
 * CPU          ARM Cortex-A57 (1) 64-bit AES
                L2:2.0 MB L3:0.0 MB 4C/4T NUMA:1
 * MEMORY       1.2/3.9 GB (32%)
 * DONATE       5%
 * POOL #1      xmrpool.eu:9999 algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         10.2/10.2/6.5.0
 * NVML         disabled (failed to load NVML)
 * CUDA GPU     #0 00:00.0 NVIDIA Tegra X1 921/12 MHz smx:1 arch:53 mem:2687/3964 MB
[2021-02-06 23:16:29.159]  net      use pool xmrpool.eu:9999 TLSv1.2 54.37.7.208
[2021-02-06 23:16:29.159]  net      fingerprint (SHA-256): "719f838fa8ae7844b7f25917c91d32185c594c4d36a3ed5bab233a433ecf9910"
[2021-02-06 23:16:29.160]  net      new job from xmrpool.eu:9999 diff 50000 algo rx/0 height 2291178
[2021-02-06 23:16:29.160]  cpu      use argon2 implementation default
[2021-02-06 23:16:29.161]  randomx  init dataset algo rx/0 (4 threads) seed 6c5c1c954231ee43...
[2021-02-06 23:16:29.163]  randomx  allocated 2336 MB (2080+256) huge pages 0% 0/1168 +JIT (2 ms)
[2021-02-06 23:16:55.436]  randomx  dataset ready (26273 ms)
[2021-02-06 23:16:55.437]  nvidia   use profile  rx  (1 thread) scratchpad 2048 KB
|  # | GPU |  BUS ID | INTENSITY | THREADS | BLOCKS | BF |  BS | MEMORY | NAME
|  0 |   0 | 00:00.0 |        64 |      32 |      2 |  0 |   0 |    128 | NVIDIA Tegra X1
[2021-02-06 23:16:55.832]  nvidia   READY threads 1/1 (395 ms)
[2021-02-06 23:16:55.849]  nvidia   thread #0 failed with error <reg>:53 "operation not supported"
[2021-02-06 23:16:58.161]  net      new job from xmrpool.eu:9999 diff 50000 algo rx/0 height 2291178
[2021-02-06 23:17:36.027]  net      new job from xmrpool.eu:9999 diff 50000 algo rx/0 height 2291179
[2021-02-06 23:17:36.842]  net      new job from xmrpool.eu:9999 diff 25000 algo rx/0 height 2291179
[2021-02-06 23:17:55.548]  nvidia   #0 00:00.0   0W  0C
[2021-02-06 23:17:55.549]  miner    speed 10s/60s/15m n/a n/a n/a H/s max n/a H/s

more documentation

we need more documentation because I'm little lost, how can i use the CUDA version for example, i need extract on normal project? i was looking for a readme explaining something but didn't find.

xmrig-5.0.1 combined cpu+nv lower hash rate than separate cpu,nv

(with xmrig-cuda-2.0.1-beta)

running combined xmrig-5.0.1 cpu + nvidia-gpu results in 18% lower reported
hash rate than running separate xmrig-5.0.1 cpu and nvidia-gpu processes.

separate xmrig-5.0.1 cpu and nvidia-gpu processes are able to achieve the
same hash rate as xmrig-3.2.1 cpu + xmrig-nvidia-2.14.5 gpu processes.

running combined with one less cpu thread increases hash rate 14% but the
overall hash rate is still 4% lower than running separate processes.

i'm going to guess that something in the cuda code isn't asynchronous enough
and is blocking one or two cpu threads from hashing at full speed.

(or could bsleep/bfactor be incorrectly applied to the cpu threads?)

failed with error <reg>:53 "invalid argument"

build xmrig version on Nvidia Jetson Nano with CUDA plugin

got an :53 "invalid argument" at start

  • CUDA 10.2/10.2/6.5.0
  • NVML disabled (failed to load NVML)
  • CUDA GPU #0 00:00.0 NVIDIA Tegra X1 921/12 MHz smx:1 arch:53 mem:1108/1979 MB

| # | GPU | BUS ID | INTENSITY | THREADS | BLOCKS | BF | BS | MEMORY | NAME
| 0 | 0 | 00:00.0 | 64 | 32 | 2 | 0 | 0 | 128 | NVIDIA Tegra X1
[2021-04-11 19:45:49.527] cpu READY threads 4/4 (4) huge pages 0% 0/4 memory 8192 KB (2 ms)
[2021-04-11 19:45:50.438] nvidia READY threads 1/1 (912 ms)
[2021-04-11 19:45:50.439] nvidia thread #0 failed with error :53 "invalid argument"

NVIDIA GPU 0: cannot be selected

Hi There,
I' using Ubuntu 18.04' . This the the error I am getting.
"NVIDIA GPU 0: cannot be selected"

libxmrig-cuda.so is in the same directory as xmrig. Here is my nvcc --version:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_21:12:58_PST_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0

Here is my nvidia-smi:

-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 106... Off | 00000000:06:00.0 On | N/A |
| 0% 55C P2 28W / 120W | 891MiB / 6075MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1324 G /usr/lib/xorg/Xorg 14MiB |
| 0 N/A N/A 1495 G /usr/bin/gnome-shell 61MiB |
| 0 N/A N/A 1845 G /usr/lib/xorg/Xorg 125MiB |
| 0 N/A N/A 1960 G /usr/bin/gnome-shell 29MiB |
| 0 N/A N/A 2546 G ...AAAAAAAAA= --shared-files 45MiB |
| 0 N/A N/A 4719 G ...AAAAAAAA== --shared-files 19MiB

Here is my config_default.h config part:

"api": {
    "id": null,
    "worker-id": null
},
"http": {
    "enabled": false,
    "host": "127.0.0.1",
    "port": 0,
    "access-token": null,
    "restricted": true
},
"autosave": true,
"background": true,
"colors": true,
"title": true,
"randomx": {
    "init": -1,
    "init-avx2": -1,
    "mode": "auto",
    "1gb-pages": true,
    "rdmsr": true,
    "wrmsr": true,
    "cache_qos": false,
    "numa": true,
    "scratchpad_prefetch_mode": 1
},
"cpu": {
    "enabled": false,
    "huge-pages": true,
    "huge-pages-jit": false,
    "hw-aes": null,
    "priority": null,
    "memory-pool": false,
    "yield": true,
    "max-threads-hint": 50,
    "asm": true,
    "argon2-impl": null,
    "astrobwt-max-size": 550,
    "astrobwt-avx2": false,
    "cn/0": false,
    "cn-lite/0": false
},
"opencl": {
    "enabled": false,
    "cache": true,
    "loader": null,
    "platform": "AMD",
    "adl": true,
    "cn/0": false,
    "cn-lite/0": false
},
"cuda": {
    "enabled": true,
    
    "nvml": true,
    "cn/0": false,
    "cn-lite/0": false
},
"donate-level": 1,
"donate-over-proxy": 1,
"log-file": null,
"pools": [
    {
        "algo": null,
        "coin": null,
        "url": "pool.minexmr.com:443",
        "user": "43kWsSn5c7VT5EEtNh13arDXxpUoSxcoDGPxPAiomVZxa1dWQk314a9YBanAZMgstzZJWAeryC9LYFJp1LcuhSGwPtTJ7a8",
        "pass": "x",
        "rig-id": "${USERNAME}",
        "nicehash": false,
        "keepalive": false,
        "enabled": true,
        "tls": true,
        "tls-fingerprint": null,
        "daemon": false,
        "socks5": null,
        "self-select": null,
        "submit-to-origin": false
    }
],
"print-time": 60,
"health-print-time": 60,
"dmi": true,
"retries": 5,
"retry-pause": 5,
"syslog": false,
"tls": {
    "enabled": false,
    "protocols": null,
    "cert": null,
    "cert_key": null,
    "ciphers": null,
    "ciphersuites": null,
    "dhparam": null
},
"user-agent": null,
"verbose": 0,
"watch": true,
"pause-on-battery": false,
"pause-on-active": false

}
)===";

What have I done wrong?

Mark

error <cryptonight_core_gpu_hash>:751 "invalid resource handle"

I am trying to use an old NVIDIA Tesla C2075 with this plugin.

It used to work with the xmrig-nvidia, but now it doesn't work.

  • ABOUT XMRig/5.0.1 MSVC/2017
  • LIBS libuv/1.31.0 OpenSSL/1.1.1c hwloc/2.0.4
  • HUGE PAGES permission granted
  • CPU Intel(R) Xeon(R) CPU X5672 @ 3.20GHz (1) x64 AES
    L2:1.0 MB L3:12.0 MB 4C/4T NUMA:1
  • ASSEMBLY auto:intel
  • POOL #1 stratum+tcp://XXXX:1111 coin monero
  • COMMANDS hashrate, pause, resume
  • OPENCL disabled
  • CUDA 8.0/9.0/2.0.1-beta
  • NVML 9.385.69/385.69 press e for health report
  • CUDA GPU #0 42:00.0 Tesla C2075 1147/1566 MHz smx:14 arch:20 mem:5257/5316 MB
    [2019-11-25 11:19:11.467] net use pool XXXX:1111 XXXX
    [2019-11-25 11:19:11.468] net new job from XXXX:1111 diff 80000 algo cn/r
    [2019-11-25 11:19:11.469] nv use profile cn/2 (1 thread) scratchpad 2048 KB
    | # | GPU | BUS ID | I | T | B | BF | BS | MEM | NAME
    | 0 | 0 | 42:00.0 | 448 | 4 | 112 | 6 | 25 | 896 | Tesla C2075
    [2019-11-25 11:19:11.576] nv READY threads 1/1 (106 ms)
    [2019-11-25 11:19:11.577] nv thread #0 failed with error <cryptonight_core_gpu_hash>:751 "invalid
    resource handle"
    [2019-11-25 11:19:16.637] Ctrl+C received, exiting
    [2019-11-25 11:19:16.644] nv stopped (7 ms)

But according to: "Fixed compatibility with CUDA 8, RandomX support not tested and potentially broken with this CUDA version.", I guess it won't be supported anyway with the change of POW, so it isn't worth to keep trying to use it, right?

Thank you for your effort in the development of this great tool!

astrobwt doesn't work with Fermi

Tested on Windows and Linux, CUDA 8 seems like it may be doing something wrong. Windows seems to fail without much reason why, while Linux throws a floating-point exception error.

Or, is Fermi capable of this algorithm?

GPU #0 COMPUTE ERROR

winodws 10 error about “GPU #0”

 * ABOUT        XMRig/6.3.0 MSVC/2019
 * LIBS         libuv/1.38.0 OpenSSL/1.1.1g hwloc/2.2.0
 * HUGE PAGES   unavailable
 * 1GB PAGES    unavailable
 * CPU          Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (1) x64 AES
                L2:1.0 MB L3:6.0 MB 4C/4T NUMA:1
 * MEMORY       4.1/16.0 GB (26%)
 * DONATE       1%
 * ASSEMBLY     auto:intel
 * POOL #1      xmr.f2pool.com:13531:13531 coin monero
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         10.2/11.0/6.3.0
 * NVML         11.451.77/451.77 press e for health report
 * CUDA GPU     #0 01:00.0 GeForce GTX 1050 Ti 1392/3504 MHz smx:6 arch:61 mem:3370/4096 MB
[2020-07-19 22:42:27.234]  net      use pool xmr.f2pool.com:13531  47.101.30.124
[2020-07-19 22:42:27.236]  net      new job from xmr.f2pool.com:13531 diff 32768 algo rx/0 height 2145655
[2020-07-19 22:42:27.238]  cpu      use argon2 implementation AVX2
[2020-07-19 22:42:27.239]  msr      to write MSR registers Administrator privileges required.
[2020-07-19 22:42:27.239]  msr      FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW
[2020-07-19 22:42:27.240]  randomx  init dataset algo rx/0 (4 threads) seed d4f97cb7663fe9ca...
[2020-07-19 22:42:27.256]  randomx  allocated 2336 MB (2080+256) huge pages 0% 0/1168 +JIT (15 ms)
[2020-07-19 22:42:34.476]  randomx  dataset ready (7219 ms)
[2020-07-19 22:42:34.476]  cpu      use profile  rx  (3 threads) scratchpad 2048 KB
[2020-07-19 22:42:34.520]  cpu      READY threads 3/3 (3) huge pages 0% 0/3 memory 6144 KB (43 ms)
[2020-07-19 22:42:34.539]  nvidia   use profile  rx  (1 thread) scratchpad 2048 KB
|  # | GPU |  BUS ID | INTENSITY | THREADS | BLOCKS | BF |  BS | MEMORY | NAME
|  0 |   0 | 01:00.0 |       384 |      32 |     12 |  8 |  25 |    768 | GeForce GTX 1050 Ti
[2020-07-19 22:42:34.770]  nvidia   READY threads 1/1 (230 ms)
[2020-07-19 22:42:41.867]  cpu      accepted (1/0) diff 32768 (21 ms)
[2020-07-19 22:43:12.284]  nvidia   #0 01:00.0   0W 50C 1721/3504 MHz fan0:32%
[2020-07-19 22:43:12.798]  nvidia   GPU #0 COMPUTE ERROR

and this is my configuration

{
    "api": {
        "id": null,
        "worker-id": null
    },
    "http": {
        "enabled": false,
        "host": "127.0.0.1",
        "port": 0,
        "access-token": null,
        "restricted": true
    },
    "autosave": true,
    "background": false,
    "colors": true,
    "title": true,
    "randomx": {
        "init": -1,
        "mode": "auto",
        "1gb-pages": false,
        "rdmsr": true,
        "wrmsr": true,
        "cache_qos": false,
        "numa": true
    },
    "cpu": {
        "enabled": true,
        "huge-pages": true,
        "hw-aes": null,
        "priority": null,
        "memory-pool": false,
        "yield": true,
        "asm": true,
        "argon2-impl": null,
        "astrobwt-max-size": 550,
        "astrobwt-avx2": false,
        "argon2": [0, 1, 2, 3],
        "astrobwt": [0, 1, 2, 3],
        "cn": [
            [1, 0],
            [1, 1],
            [1, 2]
        ],
        "cn-heavy": [
            [1, 0],
            [1, 1]
        ],
        "cn-lite": [
            [1, 0],
            [1, 1],
            [1, 2],
            [1, 3]
        ],
        "cn-pico": [
            [2, 0],
            [2, 1],
            [2, 2],
            [2, 3]
        ],
        "rx": [0, 1, 2],
        "rx/wow": [0, 1, 2, 3],
        "cn/0": false,
        "cn-lite/0": false,
        "rx/arq": "rx/wow",
        "rx/keva": "rx/wow"
    },
    "opencl": {
        "enabled": false,
        "cache": true,
        "loader": null,
        "platform": "AMD",
        "adl": true
    },
    "cuda": {
        "enabled": true,
        "loader": null,
        "nvml": true,
        "astrobwt": [
            {
                "index": 0,
                "threads": 5,
                "blocks": 11,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "cn": [
            {
                "index": 0,
                "threads": 36,
                "blocks": 18,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "cn-heavy": [
            {
                "index": 0,
                "threads": 18,
                "blocks": 18,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "cn-lite": [
            {
                "index": 0,
                "threads": 72,
                "blocks": 18,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "cn-pico": [
            {
                "index": 0,
                "threads": 128,
                "blocks": 18,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "cn/2": [
            {
                "index": 0,
                "threads": 36,
                "blocks": 18,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "kawpow": [
            {
                "index": 0,
                "threads": 256,
                "blocks": 12288,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1
            }
        ],
        "rx": [
            {
                "index": 0,
                "threads": 32,
                "blocks": 12,
                "bfactor": 8,
                "bsleep": 25,
                "affinity": -1,
                "dataset_host": false
            }
        ],
        "cn/0": false,
        "cn-lite/0": false
    },
    "donate-level": 1,
    "donate-over-proxy": 1,
    "log-file": null,
    "pools": [
        {
            "algo": null,
            "coin": "monero",
            "url": "xmr.f2pool.com:13531:13531",
            "user": "43iDSFJQvCoVm5xXkBZvJb9Q49bjChBaVG7g4R49m7g5KibqxhVoxEDGt3ASsXLGZVCCoEe49bgUX8xYYYfXkq95KTQVoRf",
            "pass": "x",
            "rig-id": null,
            "nicehash": false,
            "keepalive": true,
            "enabled": true,
            "tls": false,
            "tls-fingerprint": null,
            "daemon": false,
            "socks5": null,
            "self-select": null
        }
    ],
    "print-time": 60,
    "health-print-time": 60,
    "retries": 5,
    "retry-pause": 5,
    "syslog": false,
    "tls": {
        "enabled": false,
        "protocols": null,
        "cert": null,
        "cert_key": null,
        "ciphers": null,
        "ciphersuites": null,
        "dhparam": null
    },
    "user-agent": null,
    "verbose": 0,
    "watch": true
}

Driver is NIVIDA Studio Driver v451.77

what can I do?

Cuda Error - xmrig v5.0.1

I have installed CUDA 8.0 and updated to:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

OS: Ubuntu 16.04
CUDA 7.5/9.0/2.0.1-beta

  • NVML 9.384.130/384.130 press e for health report
  • CUDA GPU #0 01:00.0 GeForce GT 610 1620/600 MHz smx:1 arch:21 mem:1804/1980 MB

[2019-11-24 16:21:11.644] cpu use profile cn (2 threads) scratchpad 2048 KB
[2019-11-24 16:21:11.644] nv use profile cn/2 (1 thread) scratchpad 2048 KB
| # | GPU | BUS ID | I | T | B | BF | BS | MEM | NAME
| 0 | 0 | 01:00.0 | 32 | 4 | 8 | 0 | 0 | 64 | GeForce GT 610
[2019-11-24 16:21:12.249] nv READY threads 1/1 (605 ms)
./xmrig: symbol lookup error: libxmrig-cuda.so: undefined symbol: nvrtcAddNameExpression

When compiling XMRIG-CUDA I noticed:
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_4cb0c.dir/build.make:97: recipe for target 'cmTC_4cb0c' failed
make[1]: *** [cmTC_4cb0c] Error 1
make[1]: Leaving directory '/home/dc2/xmrig-cuda/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_4cb0c/fast' failed
make: *** [cmTC_4cb0c/fast] Error 2

File /home/dc2/xmrig-cuda/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

I have been working on this for a few days trying to get the GPU to work, please help.

Trouble compiling on Manjaro Linux.

$ make results only in [ 6%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
after that nothing happens.
$ make -n ends in the following:

make[2]: *** No rule to make target 'libxmrig-cu.a', needed by 'libxmrig-cuda.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

I haven't used make/cmake much before so it might be me misunderstanding something.

failed to load libxmrig_cuda.so on Linux

Build xmrig b4.5 and xmrig-cuda b2.0 on ubuntu 19.10 with gcc7 fine.
Problem is xmrig doesnt find the libxmrig-cuda.so . Tried "libxmrig-cuda.so "./..." and also the absolute path. Also tried command line and config file.

* CUDA disabled (failed to load CUDA plugin)

"cuda": {
"enabled": true,
"loader": "libxmrig-cuda.so",
"nvml": true
},

Cuda disabled (impossible to find the specified procedure. )

As the title says, i have this issue, and when launching the program i get an error saying "impossible to find entry point" and indicates the xmrig-cuda.dll
No anti-virus problem, and everything is installed properly (i think).
Maybe the GTX 275 is not compatible?

Command line Switch --cuda-loader="C:/cuda/xmrig-cuda.dll" not working

OS- windows7 service pack 1 x64

Command line switch not working with CMD prompt nor batchfile.
--cuda-loader="C:/cuda/xmrig-cuda.dll"
also tried --cuda-loader="C:/cuda/" along with every other possible combination.
cuda error

When using config.json w/ "loader": "C:/cuda", the CUDA.dll loads and the miner functions correctly.

Please let me know the proper syntax to make the CUDA.dll load with command line parameters.
Thanks

Segmentation Errors on Running

Ubuntu 20.04
RTX 2080
Ryzen 2700x

No errors on MAKE or CMAKE
I attached the debug from the MAKE process.
Looking for some guidance, let me know if there is anything else you need.

TIA

debug.txt

Illegal Memory Access

After a few minutes of running the cuda mining stops after the error

thread #0 failed with error <RandomX_Monero::hash>:59 "an illegal memory access was encountered"

Output from the console here. Let me know if there is any more information I can provide.

 * ABOUT        XMRig/6.6.1 MSVC/2019
 * LIBS         libuv/1.40.0 OpenSSL/1.1.1h hwloc/2.2.0
 * HUGE PAGES   permission granted
 * 1GB PAGES    unavailable
 * CPU          AMD Ryzen 7 3700X 8-Core Processor (1) x64 AES
                L2:4.0 MB L3:32.0 MB 8C/16T NUMA:1
 * MEMORY       15.1/31.9 GB (47%)
 * DONATE       5%
 * ASSEMBLY     auto:ryzen
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         11.1/11.1/6.5.0
 * NVML         11.457.30/457.30 press e for health report
 * CUDA GPU     #0 0b:00.0 GeForce RTX 2070 SUPER 1785/7001 MHz smx:40 arch:75 mem:7145/8192 MB

[2020-11-29 09:33:53.932]  net      new job from xmrpool.eu:9999 diff 50000 algo rx/0 height 2241306
[2020-11-29 09:33:53.933]  cpu      use argon2 implementation AVX2
[2020-11-29 09:33:54.216]  msr      register values for "ryzen_17h" preset has been set successfully (283 ms)
[2020-11-29 09:33:54.216]  randomx  init dataset algo rx/0 (16 threads) seed f3f91b3a0db6b09e...
[2020-11-29 09:33:55.095]  randomx  allocated 2336 MB (2080+256) huge pages 11% 128/1168 +JIT (879 ms)
[2020-11-29 09:33:57.900]  randomx  dataset ready (2805 ms)
[2020-11-29 09:33:57.900]  cpu      use profile  rx  (16 threads) scratchpad 2048 KB
[2020-11-29 09:33:58.401]  nvidia   use profile  rx  (1 thread) scratchpad 2048 KB
|  # | GPU |  BUS ID | INTENSITY | THREADS | BLOCKS | BF |  BS | MEMORY | NAME
|  0 |   0 | 0b:00.0 |      2432 |      32 |     76 |  6 |  25 |   4864 | GeForce RTX 2070 SUPER
[2020-11-29 09:33:58.427]  cpu      READY threads 16/16 (16) huge pages 100% 16/16 memory 32768 KB (527 ms)
[2020-11-29 09:33:58.956]  nvidia   READY threads 1/1 (546 ms)
[2020-11-29 09:34:11.086]  nvidia   thread #0 failed with error <RandomX_Monero::hash>:59 "an illegal memory access was encountered"

Cuda - Failad load CUDA Plugmins

Hey i have that issue.
Bat file:
C:\xmrig\xmrig.exe --donate-level 1 --cuda --cuda-loader=C:\xmrig\xmrig-cuda.dll -o pool.minexmr.com:443 -u Pool --rig-id 515151 -k --tls --threads=2

CMD:

  • ABOUT XMRig/5.10.0 MSVC/2019
  • LIBS libuv/1.34.0 OpenSSL/1.1.1d hwloc/2.1.0
  • HUGE PAGES permission granted
  • 1GB PAGES unavailable
  • CPU AMD Athlon(tm) II X2 250 Processor (1) x64 -AES
    L2:2.0 MB L3:0.0 MB 2C/2T NUMA:1
  • MEMORY 1.9/7.7 GB (25%)
  • DONATE 1%
  • ASSEMBLY auto:none
  • POOL #1 pool.minexmr.com:443 algo auto
  • COMMANDS hashrate, pause, resume
  • OPENCL disabled
  • CUDA disabled (failed to load CUDA plugin)

I have on this file:
image

Driver Nvidia: 390.77
Cuda installed: 9.0
Grafic cards: 2x nVIDIA GT 730

Do you need more information?
If not, can someone help me solve this problem?

gcc-8: error: unrecognized command line option ‘-maes’

hi, were unable to compile on arm aarch 64.

OS: Ubuntu 18.04.3
CUDA: Cuda compilation tools, release 10.0, V10.0.326

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is Clang 6.0.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 _rotr
-- Looking for _rotr - not found
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - not found
-- 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/local/cuda (found suitable version "10.0", minimum required is "8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/husky/xmrig-cuda/build

husky@husky-desktop:~/xmrig-cuda/build$ make
[ 8%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
gcc-8: error: unrecognized command line option ‘-maes’
CMake Error at xmrig-cu_generated_randomx_wownero.cu.o.Release.cmake:219 (message):
Error generating
/home/husky/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/./xmrig-cu_generated_randomx_wownero.cu.o

CMakeFiles/xmrig-cu.dir/build.make:105: recipe for target 'CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o' failed
make[2]: *** [CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmrig-cu.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-cu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

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.