Ubuntu recognize only one Gpu from 2

hello!
i have 2 gtx 1070 when i installed the driver(384.111)
and i run the nvidia-smi it shows only one gpu
the hardware are perfectly connected
when i run echo $CUDA_VISIBLE_DEVICES
it shows nothing
i need a little help!!!

what is the output of

dmesg | grep NVRM

?

x-miner@x-miner:~$ dmesg | grep NVRM
[ 1.146227] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 384.111 Tue Dec 19 23:51:45 PST 2017 (using threaded interrupts)
[ 28.900963] NVRM: Your system is not currently configured to drive a VGA console

what is the output of

lspci |grep -i vga

?

i got two other amd cards
thats the result

01:00.0 VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev e7)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev e7)

Your system is only recognizing a single NVIDIA GPU. lspci reports that, dmesg supports that, and nvidia-smi reports that.

Everything is consistent. Either you have only one NVIDIA GPU, or the 2nd GPU is configured in such a way that it is completely invisible to the system.

Plugged in the wrong slot, no power, etc.

Even your SBIOS does not see the 2nd NVIDIA GPU, as indicated by lspci.

You’ll need to sort things out by rearranging cards or trial an error. I can’t tell you precisely what is wrong.

So what shall i do Now

yeah Bro u were right i checked my bios i found th it only reading one nvidia so i changed its pci slot now the bios read it
now i found it with nvidia-smi
and now it’s working well
Thank you

Hi.

Im experiencing this is issue also. I have 2 videocard passthrough to my instance.

lspci |grep -i vga
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:05.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1)
00:06.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1)

dmesg | grep NVRM
[ 3110.258609] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 384.130 Wed Mar 21 03:37:26 PDT 2018 (using threaded interrupts)
[ 3128.567608] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 384.130 Wed Mar 21 03:37:26 PDT 2018 (using threaded interrupts)
[ 3138.730807] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 3138.733614] NVRM: rm_init_adapter failed for device bearing minor number 1
[ 3144.880133] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 3144.884155] NVRM: rm_init_adapter failed for device bearing minor number 1
[ 3150.047167] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 3150.048160] NVRM: rm_init_adapter failed for device bearing minor number 1

nvidia-smi -l
Mon Jun 11 09:20:30 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108… Off | 00000000:00:05.0 Off | N/A |
| 0% 43C P5 18W / 250W | 0MiB / 11172MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+