Open mgillr opened 3 years ago
Get the latest at https://github.com/xmrig/xmrig/releases and for nvidia cards you also need the CUDA plugin from https://github.com/xmrig/xmrig-cuda.You have to compile the CUDA plugin yourself.put the xmrig-cuda.so in the same directory as where you put xmrig. Make sure you have the latest driver and nvidia-cuda-toolkit, yours is to old, installed from the (backport) repository. Any questions abt xmrig should be asked https://github.com/xmrig/xmrig. xmrig-nvidia is outdated and as far as I know abandoned.
For compiling I use the following in a script: `
echo echo 'Now it'''s time to get a coffee, tea or any other beverage' echo 'as it will take a while to finish compiling depending on' echo 'how fast your system is (just over 6 mins. i7-7700HQ 16GB RAM' echo 'or just over 4 mins. 5800x 32GB RAM.' echo 'Ignore the warnings generated.' echo 'When finished copy or move libxmrig-cuda.so to the' echo 'directory where xmrig miner is installed.' echo
read -p 'Press any key to continue'
git -C /media/Public/github clone https://github.com/xmrig/xmrig-cuda.git
mkdir $HOME/github/xmrig-cuda/build && cd $HOME/github/xmrig-cuda/build
cmake /media/Public/github/xmrig-cuda -DCUDA_TOOLKIT_ROOT_DIR=/usr/lib/nvidia-cuda-toolkit
make -j$(nproc)
echo echo 'IT'''S FINISHED, HURRAY!!' ` Change it to any directory you want.
As far as I can see I am running cuda 11.2 however when I cmake I get a compile error:
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find CUDA: Found unsuitable version "7.5", but required is at least "8.0" (found /usr)
When I check the system I get
nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2015 NVIDIA Corporation Built on Tue_Aug_11_14:27:32_CDT_2015 Cuda compilation tools, release 7.5, V7.5.17
But then
nvidia-smi Thu Feb 11 08:04:39 2021 +-----------------------------------------------------------------------------+ | 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 Tesla K80 Off | 00000001:00:00.0 Off | 0 | | N/A 44C P0 73W / 149W | 0MiB / 11441MiB | 100% Default | | | | N/A | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+
I am confused as nvcc --version shows 7.5 and nvidia-smi shows 11.2
How can I correct this