No, my dear friend. What you simply have to execute is the absolute path of the cuda. ​ You must first compile XMRIG like this: sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev git clone [https://github.com/xmrig/xmrig.git](https://github.com/xmrig/xmrig.git) mkdir xmrig/build && cd xmrig/build cmake .. make -j$(nproc) ​ Then the CUDA plugin like this: sudo apt-get install software-properties-common apt nvidia-detect nvidia-driver -y sudo apt-key adv --fetch-keys [https://developer.download.nvidia.com/compute/cuda/repos/debian10/x86\_64/7fa2af80.pub](https://developer.download.nvidia.com/compute/cuda/repos/debian10/x86_64/7fa2af80.pub) sudo add-apt-repository "deb [https://developer.download.nvidia.com/compute/cuda/repos/debian10/x86\_64/](https://developer.download.nvidia.com/compute/cuda/repos/debian10/x86_64/) /" sudo add-apt-repository contrib sudo apt-get update sudo apt-get -y install cuda git clone [https://github.com/xmrig/xmrig-cuda.git](https://github.com/xmrig/xmrig-cuda.git) mkdir xmrig-cuda/build && cd xmrig-cuda/build cmake .. -DCUDA\_LIB=/usr/local/cuda/lib64/stubs/libcuda.so -DCUDA\_TOOLKIT\_ROOT\_DIR=/usr/local/cuda make -j$(nproc) ​ So once you have the xmrig and its plugin (xmrig-cuda), you need to run it as follows, for example for Monero (XMR): ${HOME}/xmrig/build/xmrig --cpu-affinity 0xFF --randomx-1gb-pages -o [pool.supportxmr.com:443](https://pool.supportxmr.com:443) \-u ${ADDR\_XMR} -p $(hostname) -k --tls --cpu-priority 3 Or for example, for RavenCoin (RVN), which is recommended for GPUs (Monero is only profitable if you do it using CPU): ${HOME}/xmrig/build/xmrig --no-cpu -a kawpow --cuda --cuda-loader=${HOME}/xmrig-cuda/build/xmrig/build/libxmrig-cuda.so -u ${ADDR\_RVN} -p $(hostname) -o stratum+tcp://rvn.woolypooly.com:55555 ​ In short, the key is to pass the entire parameter: \--cuda --cuda-loader=${HOME}/xmrig-cuda/build/xmrig/build/libxmrig-cuda.so Greetings from Argentina Matias Colli


Awesome guide dude! However, I am running into one issue. While I run make I do too get the error "warning: pointless comparison of unsigned integer with zero". But I continue to wait and let it run. But then, this happens later: `/home/user/xmrig-cuda/src/cuda_extra.cu: In function ‘int cuda_get_deviceinfo(nvid_ctx*)’:` `/home/user/xmrig-cuda/src/cuda_extra.cu:571: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` `[ 62%] Building CXX object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/CudaKawPow_gen.cpp.o` `[ 68%] Linking CXX static library libxmrig-cu.a` `[ 68%] Built target xmrig-cu` `Scanning dependencies of target xmrig-cuda` `make[2]: *** No rule to make target '/usr/local/cuda/lib64/stubs/libcuda.so', needed by 'libxmrig-cuda.so'. Stop.` `make[2]: *** Waiting for unfinished jobs....` `[ 75%] Building C object CMakeFiles/xmrig-cuda.dir/src/crypto/cn/c_blake256.c.o` `[ 81%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/xmrig-cuda.cpp.o` `[ 87%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/CudaCryptonightR_gen.cpp.o` `[ 93%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/crypto/common/Algorithm.cpp.o` `make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/xmrig-cuda.dir/all] Error 2` `make: *** [Makefile:84: all] Error 2` `[email protected]:~/xmrig-cuda/build$` ​ Any chance you can make sense of this, please?


You need to install nvidia drivers. [https://www.reddit.com/r/MoneroMining/comments/ll6yix/issue\_compiling\_xmrigcuda\_from\_source\_ubutntu/](https://www.reddit.com/r/MoneroMining/comments/ll6yix/issue_compiling_xmrigcuda_from_source_ubutntu/)


Thanks, buddy! Much appreciate it XD


hey man, I tried to proceed with your help, but when I execute the "make -j$(nproc)" command, it goes on till 50 % and then it types out this message: /home/temporary/Stažené/xmrig/xmrig-cuda/src/RandomX/randomx\_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero do you have any idea what is wrong?


Wait longer, it takes a while. I just did it.




how do I do this with the FreeNAS plugin i cant seem to figure it out