xmrig / xmrig-cuda

NVIDIA CUDA plugin for XMRig miner
GNU General Public License v3.0
368 stars 155 forks source link

undefined symbol: cuInit #108

Open code1010111 opened 3 years ago

code1010111 commented 3 years ago

I build xmrig-cuda lib and xmrig and then to start xmrig see this error:

# ./xmrig --cuda --cuda-loader=/root/xmrig-cuda/libxmrig-cuda.so --coin=RVN --url=rvn.2miners.com:6060 --user=WALLET --pass x ./xmrig: symbol lookup error: /root/xmrig/xmrig-cuda/libxmrig-cuda.so: undefined symbol: cuInit

Spudz76 commented 3 years ago

Do you have the proprietary nvidia driver installed, and if so which version? That symbol is in the CUDA lib that comes with the driver. nvidia-smi should show what version of driver and what version of CUDA is included. If you built the plugin with a CUDA toolkit newer than the driver contains, it also may not work (but shouldn't say undefined symbol though).