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

vulkaninfo cannot get info on GPU 1 only #840

Open
alexpanter opened this issue Aug 18, 2023 · 3 comments
Open

vulkaninfo cannot get info on GPU 1 only #840

alexpanter opened this issue Aug 18, 2023 · 3 comments
Labels
enhancement New feature or request vulkaninfo

Comments

@alexpanter
Copy link

Hi,

Unless I completely misunderstand how to use the vulkaninfo tool on the command line, there's something strange afoot here..
If I run the tool without any arguments, I get a list like this:

Layers: count = 4
=================
VK_LAYER_INTEL_nullhw (INTEL NULL HW) Vulkan version 1.1.73, layer version 1:
	Layer Extensions: count = 0
	Devices: count = 3
		GPU id = 0 (AMD Radeon Graphics (RADV REMBRANDT))
		Layer-Device Extensions: count = 0

		GPU id = 1 (NVIDIA GeForce RTX 3070 Ti Laptop GPU)
		Layer-Device Extensions: count = 0

		GPU id = 2 (llvmpipe (LLVM 15.0.7, 256 bits))
		Layer-Device Extensions: count = 0

[...]

According to the help message (vulkaninfo --help) I should be able to get info on a select GPU:

[-j=<gpu-number>, --json=<gpu-number>]
                    For a multi-gpu system, a single gpu can be targetted by
                    specifying the gpu-number associated with the gpu of 
                    interest. This number can be determined by running
                    vulkaninfo without any options specified.

And then I try to run it like this:

vulkaninfo -j=1

-- but I only get the help message, alluring the fact that I'm possibly using the tool in the wrong way. And I do not want a JSON output, but rather text, which is more easily readable.

Platform is Ubuntu 23.04.

@charles-lunarg
Copy link
Contributor

Just tested this locally, this does look like a regression.

I can say that the -j output only works for the json output, but in retrospect that is a silly limitation that should be fixed (so there should be a way to choose the gpu for text/html).

@charles-lunarg charles-lunarg added bug Something isn't working vulkaninfo labels Aug 18, 2023
@alexpanter
Copy link
Author

Absolutely, if that could work for text format as well it would be great!

And a small sidenote: If this could also be implemented with --show-formats it would become even more helpful. :)

@charles-lunarg
Copy link
Contributor

I have fixed the bug, but have not added support for 'select a gpu in text/html output'. I'll remove the bug tag to reflect this change.

@charles-lunarg charles-lunarg added enhancement New feature or request and removed bug Something isn't working labels Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vulkaninfo
Projects
None yet
Development

No branches or pull requests

2 participants