Hi,
I have a problem on Ubuntu 15.04, that happens with any version of ccminer (SP, tpruvot, djm34).
The compilation went fine, but on the first run, and after each reboot, I get:
julien@miner1:~/ccminer-SP$ ./ccminer --benchmark -a x11
*** ccminer 1.5.49-git(SP-MOD) for nVidia GPUs by sp-hash@github ***
Built with the nVidia CUDA SDK 6.5
Based on pooler cpuminer 2.3.2 and the tpruvot@github fork
CUDA support by Christian Buchner, Christian H. and DJM34
Includes optimizations implemented by sp , klaust, tpruvot and tsiv.
[2015-05-06 23:54:30] Unable to query number of CUDA devices! Is an nVidia driver installed?
Then, if I start the miner as root, it runs fine:
julien@miner1:~/ccminer-SP$ sudo ./ccminer --benchmark -a x11
[sudo] password for julien:
*** ccminer 1.5.49-git(SP-MOD) for nVidia GPUs by sp-hash@github ***
Built with the nVidia CUDA SDK 6.5
Based on pooler cpuminer 2.3.2 and the tpruvot@github fork
CUDA support by Christian Buchner, Christian H. and DJM34
Includes optimizations implemented by sp , klaust, tpruvot and tsiv.
[2015-05-06 23:54:52] NVML GPU monitoring enabled.
[2015-05-06 23:54:52] 2 miner threads started, using 'x11' algorithm.
[2015-05-06 23:54:52] Thread 0 priority 0 (set to 18)
[2015-05-06 23:54:52] Thread 1 priority 0 (set to 18)
[2015-05-06 23:54:52] Binding thread 1 to cpu 1 (mask 2)
1
[2015-05-06 23:54:52] Binding thread 0 to cpu 0 (mask 1)
0
[2015-05-06 23:54:57] GPU #1: GeForce GTX 750 Ti, 2841
[2015-05-06 23:54:57] Total: 5242 kH/s
After that, I can start the miner as a normal user:
julien@miner1:~/ccminer-SP$ ./ccminer --benchmark -a x11
*** ccminer 1.5.49-git(SP-MOD) for nVidia GPUs by sp-hash@github ***
Built with the nVidia CUDA SDK 6.5
Based on pooler cpuminer 2.3.2 and the tpruvot@github fork
CUDA support by Christian Buchner, Christian H. and DJM34
Includes optimizations implemented by sp , klaust, tpruvot and tsiv.
[2015-05-06 23:55:23] NVML GPU monitoring enabled.
[2015-05-06 23:55:23] Thread 0 priority 0 (set to 18)
[2015-05-06 23:55:23] Binding thread 0 to cpu 0 (mask 1)
0
[2015-05-06 23:55:23] Thread 1 priority 0 (set to 18)
[2015-05-06 23:55:23] Binding thread 1 to cpu 1 (mask 2)
1
[2015-05-06 23:55:23] 2 miner threads started, using 'x11' algorithm.
My guess is, it is a permission issue. It needs to create a file that only root can create. But since the verbose mode doesn't work on the first run, I can't tell where the problem comes from.
I noticed a file that appeared after the "root run" (/dev/nvidia-uvm), but creating it by hand with 'mknod -m 666 /dev/nvidia-uvm c 249 0' is not enough. Must be missing something else...
If it is distribution-specific and nobody has any idea how to fix that, I might downgrade to 14.04.