Git Product home page Git Product logo

Comments (14)

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

try https://devtalk.nvidia.com/default/topic/1027746/linux-graphics-debugger/xlib-extension-quot-nv-glx-quot-missing-on-display-quot-1-quot-/

maybe it's a driver bug

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

or amonakov/primus#73

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

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

from mnn.

cysin avatar cysin commented on May 22, 2024

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.

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

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

from mnn.

cysin avatar cysin commented on May 22, 2024

it's -3.
VK_ERROR_INITIALIZATION_FAILED = -3

so a vulkan driver compatible issue?

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

try run vulkaninfo on terminal , is it success ?

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

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

from mnn.

cysin avatar cysin commented on May 22, 2024

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

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

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

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

following https://wiki.archlinux.org/index.php/Vulkan#Nvidia_-_vulkan_is_not_working_and_can_not_initialize

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

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

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

https://devtalk.nvidia.com/default/topic/1044881/linux/vulkaninfo-vulkaninfo-c-3339-failed-with-vk_error_initialization_failed/

from mnn.

wangqiang1588 avatar wangqiang1588 commented on May 22, 2024

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

from mnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.