Anyone else having problems building and running cuda-9 branch with Ubuntu 17.04 and CUDA 9.1? It compiles successfully but crashes within few seconds after running. I am not overclocking and have run these 2 cards extensively with ccminer with windows. I've also tried equihash and that crashes as well. Any ideas?
/ccminer$ ./ccminer -r 0 -a Lyra2v2 -o stratum+tcp://hub.miningpoolhub.com:20593 -u xyz -p x
*** ccminer 2.2.4 for nVidia GPUs by tpruvot@github ***
Built with the nVidia CUDA Toolkit 9.1 64-bits
Originally based on Christian Buchner and Christian H. project
Include some kernels from alexis78, djm34, djEzo, tsiv and krnlx.
BTC donation address: 1AJdfCpLWPNoAMDfHF1wD5y8VgKSSTHxPo (tpruvot)
[2017-12-24 01:40:42] Starting on stratum+tcp://hub.miningpoolhub.com:20593
[2017-12-24 01:40:42] NVML GPU monitoring enabled.
[2017-12-24 01:40:42] 2 miner threads started, using 'lyra2v2' algorithm.
[2017-12-24 01:40:42] Stratum difficulty set to 256 (1.00000)
[2017-12-24 01:40:42] GPU #0: Intensity set to 20, 1048576 cuda threads
[2017-12-24 01:40:42] GPU #1: Intensity set to 20, 1048576 cuda threads
[2017-12-24 01:40:49] Stratum difficulty set to 16 (0.06250)
Cuda error in func 'scanhash_lyra2v2' at line 118 : unknown error.
Cuda error in func 'scanhash_lyra2v2' at line 118 : unknown error.
Segmentation fault (core dumped)
ccminer$ nvidia-smi
Sun Dec 24 15:19:44 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 387.34 Driver Version: 387.34 |
|-------------------------------+----------------------+----------------------+
Several questions and things to try (though I'm on 16.04 not 17.04). Do the CUDA example libraries compile and run for you (don't just try devicequery, also try some of the others like randomfog). If not, likely you have a problem with the install of either CUDA or the driver. I had to work hard to get the right driver and the right libraries for the examples to compile.
Separately, i had exactly the same error and the way I eventually got it fixed was that I had to add lib and lib64 to my LD_LIBRARY path. None of the documentation mentioned lib64, just lib. Give that a try, but make sure you recompile ccminer first as if you didn't include lib64 in the LD_LIBRARY path it likely didn't compile correctly (I learned that one from bitter experience). Good luck.