Bitcoin Forum
July 07, 2024, 03:02:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: ccminer Nvidia error - Unable to query number of CUDA devices! Is an nVidia driv  (Read 781 times)
enj720 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 03, 2017, 01:11:25 AM
Last edit: December 03, 2017, 01:23:05 AM by enj720
 #1

Hi all,

I'm running linux mind and have downloaded ccminer and installed it to the best of my knowledge. My Nvidia information:
-
meru@meru-Lenovo-G70-70 ~ $ lspci -vnn | grep nvidia
   Kernel driver in use: nvidia
   Kernel modules: nvidiafb, nouveau, nvidia_340
meru@meru-Lenovo-G70-70 ~ $ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
03:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
meru@meru-Lenovo-G70-70 ~ $


When running the following script:
./ccminer -o stratum+tcp://stratum-eu.coin-miners.info:3433 -u SSgUjwZGwEEJRXHSXevGbDHAkCW4dXpbb3 -p c=STN
----
I get the following error:
[2017-12-03 02:07:22] Unable to query number of CUDA devices! Is an nVidia driver installed?
meru-Lenovo-G70-70 ccminer-linux #
-
Any help, command line info would be greatly appreciated. Thanks in advance.
------

some additional information:
[2017-12-03 02:14:22] Unable to query number of CUDA devices! Is an nVidia driver installed?
meru-Lenovo-G70-70 ccminer-linux # update-pciids
Downloaded daily snapshot dated 2017-10-21 03:15:01
meru-Lenovo-G70-70 ccminer-linux # lspci -nn | grep '\[03'
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
03:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
meru-Lenovo-G70-70 ccminer-linux #

----------------
meru-Lenovo-G70-70 ccminer-linux # lspci -nn | grep '\[03'
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
03:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
meru-Lenovo-G70-70 ccminer-linux # nvidia-smi
Failed to initialize NVML: Driver/library version mismatch
meru-Lenovo-G70-70 ccminer-linux #
singula
Sr. Member
****
Offline Offline

Activity: 462
Merit: 251



View Profile
December 07, 2017, 02:50:43 AM
 #2

Stumbled upon the same error.

But I found a cause (the appropriate kernel module is not loaded by default by itself, Xserver by itself requires only the base "nvidia" module) and a solution.

To fix it, as a root, load the missing kernel module:

Code:
modprobe nvidia-uvm

After that, the miner runs.

Big brother is not watching you anymore. Big brother is telling you how to live.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!