Comments (8)
Whenever you set VK_ICD_FILENAMES, you are causing the loader to only search for drivers using that path. Which means that if the nvidia_icd.json fails to load, then the Vulkan-Loader cannot find any available GPUs, causing all vulkan apps to fail.
If the nvidia driver that is installed on the system isn't loading, that indicates that the nvidia driver isn't properly setup. Unfortunately, this repo isn't the place to diagnose nvidia driver installation issues. (Or rather, this doesn't appear to be a problem with vulkaninfo).
I can recommend setting the environment variable VK_LOADER_DEBUG=all
to see what the loader is doing. If you could run vkcube (or any vulkan application) with that env-var set, then upload the log file, that would be helpful.
from vulkan-tools.
here logs VK_LOADER_DEBUG=all prime-run vkcube
https://dpaste.com/4AB3TZGGD
from vulkan-tools.
/usr/share/vulkan/icd.d/amd_pro_icd64.json
is the only place searched when you run the app through prime-run. That makes me think prime-run
is intentionally setting environment variables that limit which drivers are used.
If you run printenv, what env-vars are present that have
VK_` in their name? If you can check with both prime-run and without, that would be great.
from vulkan-tools.
fsociety@iSSAC111 ~ $ printenv |grep VK
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json
fsociety@iSSAC111 ~ $ prime-run printenv |grep VK
__VK_LAYER_NV_optimus=NVIDIA_only
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json
from vulkan-tools.
Well, if VK_ICD_FILENAMES
is set in the env, that would explain why the nvidia driver can't be used unless you set VK_ICD_FILENAMES
to point to the nvidia driver.
I fear the amd driver installer set it in your setup scripts. Which is a bad thing to do, but thats only speculation.
If you unset VK_ICD_FILENAMES
does vulkaninfo --summary report the nvidia driver again?
Can you review all the setup scripts (.bashrc, .profile, etc etc) to see if VK_ICD_FILENAMES was set in one of those files?
from vulkan-tools.
found the bug
cat /etc/env.d/99amf-env-vulkan-override
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json
this is set by ffmpeg ebuild script
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/ffmpeg/ffmpeg-6.0.1.ebuild#n603
if u set amf use flag means specifying to use amd pro drivers then script at last will install this env var
thanks for the help
from vulkan-tools.
yes unset VK_ICD_FILENAMES
also works
from vulkan-tools.
No problem!
I will close the issue since that bug isn't a Vulkan-Tools related one.
The benefit of being an open ecosystem is that everyone can do their own thing. The downside is that sometimes things DONT work well together.
from vulkan-tools.
Related Issues (20)
- Add VkPhysicalDeviceLayeredApiPropertiesListKHR to vulkaninfo
- `vulkaninfo` size of maxUniformBufferRange is 4294967295 HOT 4
- `VK_LAYER_LUNARG_api_dump` report parameter values after invoking next layers in stack. HOT 2
- Android cube uses a removed API
- vulkaninfo / MacOS: vkCreateMacOSSurfaceMVK() is deprecated
- Volk present but not detected HOT 5
- Which Version is compatible with RTX 3060 nvidia-driver-535 ubuntu? HOT 2
- Remove -fno-strict-aliasing
- Crashes on Intel HD Graphics 630 on Windows HOT 4
- Can't build on MacOs HOT 8
- Error building with cmake HOT 3
- vkcube doesn't validate presentation support for physical devices HOT 4
- 1.3.275.0: build fails because missing `volk` detection in cmake HOT 9
- Bug in 'linmath.h' function: quat_mul_vec3 HOT 1
- Make vulkaninfo removal of promoted extension structures optional HOT 8
- Re-enable address sanitizer when github actions isn't having issues
- vulkaninfo: Ignoring VkPhysicalDeviceHostImageCopyPropertiesEXT for Vulkan Profile output HOT 1
- vkcube-wayland does not read from the wayland socket if un-paused HOT 1
- Android build failure HOT 10
- vkcube: nit-pick a duplicate line in demo_prepare_pipeline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan-tools.