nvidia setting- ERROR: Error querying enabled displays on GPU 0 (Missing Extension) and caffe crash while there are two video card on mainboard.


Issue one
while using caffe, crash appears.

Xlib: extension “RANDR” missing on display “:1”.
(OpenPose 1.2.1:20482): GdkGLExt-WARNING **: Window system doesn’t support OpenGL.
E0206 15:02:00.224344 20503 common.cpp:114] Cannot create Cublas handle. Cublas won’t be available.
E0206 15:02:00.272167 20503 common.cpp:121] Cannot create Curand generator. Curand won’t be available.
F0206 15:02:00.272356 20503 common.cpp:152] Check failed: error == cudaSuccess (35 vs. 0) CUDA driver version is insufficient for CUDA runtime version
*** Check failure stack trace: ***
@ 0x7f979dbcf5cd google::LogMessage::Fail()
@ 0x7f979dbd1433 google::LogMessage::SendToLog()
@ 0x7f979dbcf15b google::LogMessage::Flush()
@ 0x7f979dbd1e1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f979df77252 caffe::Caffe::SetDevice()
@ 0x7f97a009e42a op::NetCaffe::initializationOnThread()
@ 0x7f97a00fed6c op::addCaffeNetOnThread()
@ 0x7f97a00ff680 op::PoseExtractorCaffe::netInitializationOnThread()
@ 0x7f97a00fb296 op::PoseExtractor::initializationOnThread()
@ 0x7f97a00f855c op::WPoseExtractor<>::initializationOnThread()
Issue two:
while I run nvidia-settings, error message will be showed as be lowering.
** Message: PRIME: is it supported? no
➜ nvidia nvidia-settings
ERROR: Error querying enabled displays on GPU 0 (Missing Extension).

ERROR: Error querying connected displays on GPU 0 (Missing Extension).

After that I google to find any similar issue, one reasonable explain is that there are two video card on pc and using nvidia-setting can choose N as main video card.
I’ve try different version driver 384, 390 and cuda 8.0 and cuda 9.0, but none of them can work well.
Could you give me any suggestion?
[u [nvidia-bug-report.log.gz|attachment](upload://m9k3PxBEZCpIwkk6bew0OPVzHeq.gz) (236 KB)

Connect your monitor to the nvidia instead of the onboard matrox.

thanks a lot I will try it later.

You might also have to have a minimal xorg.conf like

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:5:0:0"
    Option         "AllowEmptyInitialConfiguration"