Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"NV-GLX" missing when using vulkan backend #68

Closed
cysin opened this issue May 15, 2019 · 14 comments
Closed

"NV-GLX" missing when using vulkan backend #68

cysin opened this issue May 15, 2019 · 14 comments

Comments

@cysin
Copy link

cysin commented May 15, 2019

OS: CentOS 7.6
GPU: 1080Ti + 430.14 driver
VULKAN: 1.1.106.0
Any help is appreciated, Thanks !

# ./backendTest.out 
Xlib:  extension "NV-GLX" missing on display ":0".
Invalide device for support vulkan
Invalide device for support vulkan
Test forward type: 0
Tolerance Rate: 0.050000
Open Model (null)
Segmentation fault (core dumped)

@wangqiang1588
Copy link

or amonakov/primus#73

@wangqiang1588
Copy link

maybe your compute have two GPUs ,one is intel another is Nvidia, program default use device 0 , Intel's GPU is device 0 ,and Nvidia's GPU is device 1 .please check this

@cysin
Copy link
Author

cysin commented May 16, 2019

Thanks for the reply. The first two links don't help. I indeed have two GPUs, but both of them are NV's cards, the same model.

@wangqiang1588
Copy link

wangqiang1588 commented May 16, 2019

sorry ,the log "Invalide device for support vulkan" twice, so maybe enumeratePhysicalDevices failed ,please modify const bool VulkanInstance::supportVulkan() function ,and print error code

@cysin
Copy link
Author

cysin commented May 16, 2019

it's -3.
VK_ERROR_INITIALIZATION_FAILED = -3

so a vulkan driver compatible issue?

@wangqiang1588
Copy link

wangqiang1588 commented May 16, 2019

try run vulkaninfo on terminal , is it success ?

@wangqiang1588
Copy link

try export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json maybe the dir is not this ,please change this ,then relaunch ./backendTest.out

@cysin
Copy link
Author

cysin commented May 16, 2019

vulkaninfo output:

# vulkaninfo 
Xlib:  extension "NV-GLX" missing on display ":0".
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.106

/home/lunarg/sdk-build/Vulkan-Tools/vulkaninfo/vulkaninfo.c:5523: failed with VK_ERROR_INITIALIZATION_FAILED

the json file is located at:
/etc/vulkan/icd.d/nvidia_icd.json

I tried:
export VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json

then ran ./backendTest.out, still no lucky with the same error

@wangqiang1588
Copy link

if vulkaninfo works incorrect , another application will not work too.

Check if you have vulkan-intel installed, it may prevent Nvidia's vulkan driver from being detected

@wangqiang1588
Copy link

wangqiang1588 commented May 16, 2019

your computer CPU is Intel desktop or Xeon ? usually desktop CPU has an eGPU.

@wangqiang1588
Copy link

that works for Fedora ,maybe it works on CentOS too, but maybe dnf is not exists on CentOS ,so try yum install that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants