xmrig-nvidia
xmrig-nvidia copied to clipboard
error when trying to mine in the background
Hello, On ubuntu 16.04 Miner works fine only when 'background:false' in the config file. when changing to 'background:true' I get the following error: GPU 0: initialization error /home/user/xmrig-nvidia/src/nvidia/cuda_extra.cu line 342 Setup failed for GPU 0. Exitting.
Thank you, I confirm this issue.
+1
Same problem here... Do you have any news about this one?
Thanks!!
Mine is very similar. Also occurs only when adding the -B
flag.
GPU 0: initialization error
cuda_get_deviceinfo line 302
Setup failed for GPU 0. Exitting.
Any updates on this?
Same problem here. And I don't want to keep my shell open all the time when mining just to keep running. Any update on this issue?
Well, since no update at all. I did a tweak that works:
xmrig-nvidia -B -l log-file-name -o stratum_url -u wallet_address -p x 2>&1 1> /dev/null
Notice in the last portion I added 2>&1 1> /dev/null
- this will run the code in the background thus keeping all the logs on the log-file-name
specified
nano run.sh
and insert ./xmrig-nvidia
save and close
chmod +x run.sh
and use nohup ~/xmrig-nvidia/build/run.sh
alternatively you can use
./run.sh & disown
for me its working
My solution is to write /etc/rc.local as follows:
(
cd /path/to/miner
nohup ./xmrig-nvidia > /dev/null 2>&1 & disown
)
My solution is to specify the config file explicitly.
e.g ./xmrig -c config.json -B
My solution is to specify the config file explicitly. e.g
./xmrig -c config.json -B
Thanks it worked