Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cuda help on Ubuntu 16.04. #323

Open
mgillr opened this issue Feb 11, 2021 · 1 comment
Open

Cuda help on Ubuntu 16.04. #323

mgillr opened this issue Feb 11, 2021 · 1 comment

Comments

@mgillr
Copy link

mgillr commented Feb 11, 2021

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

@DeeDeeRanged
Copy link

DeeDeeRanged commented Aug 20, 2021

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:
`
#!/bin/bash

#set -x
#no need for the following packages
#libhwloc-plugins libhwloc-contrib-plugins

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'

#sudo apt-get install nvidia-cuda-toolkit

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants