VulkanCapsViewer icon indicating copy to clipboard operation
VulkanCapsViewer copied to clipboard

Feature request: a simple CLI only version to generate reports on embedded platforms

Open zeno-endemann-kdab opened this issue 2 years ago • 3 comments

It would be very nice to have a simplified CLI version, ideally without any dependencies other than Vulkan, so that it is very easy to compile it for embedded platforms (such as i.MX8) to just generate a report. Would be enough if that report just gets dumped into a file, and uploaded via the regular app. Or something like that.

zeno-endemann-kdab avatar Jun 13 '22 12:06 zeno-endemann-kdab

That's a valid request. The application can already be used to submit reports without invoking the UI, but I guess your main point is that it's currently too hard to compile. If so, I'm using a lot of Qt related stuff, including http and json classes. So I won't probably be able to remove Qt completely, but a UI less version is possible.

SaschaWillems avatar Jun 13 '22 18:06 SaschaWillems

Right. It is just, the more easy/convenient it is to cross compile a version for an embedded board, the more people are willing to go through the hassle to do that to submit reports. Not all cross-SDKs will have Qt available. I have not looked in detail what information a report contains, but I assume it is significantly more than what vulkaninfo -j outputs, right? Or would it be possible to just import that output (generated on the embedded device) into the desktop app somehow? Or this simplified version could potentially be just a shell script that enriches the vulkaninfo output enough to have all the necessary info to generate a report on the desktop... Just throwing out some ideas

zeno-endemann-kdab avatar Jun 14 '22 10:06 zeno-endemann-kdab

For CLI-only version aarch64 linux build also would be useful.

I've tested vulkan compute on Nvidia jetson with ubuntu 18.04 - it works without problems. But I as most jetson users didn't have GUI access to the device, only ssh. Preobuilt or simple-to-build CLI version can allow getting more tegra-based results into database.

galkinvv avatar Sep 30 '22 16:09 galkinvv

+1 for me on this. I'd love to be able to submit reports from our embedded hardware, but building Qt on those will be a serious pain.

A simple CLI version that doesn't depend on Qt would be a real help. I can see that the networking stuff might be trickier without Qt; perhaps if it just dumped a file that could be manually submitted via a webpage (or desktop app as suggested above) you could avoid any networking in that case.

gary-sweet avatar Nov 30 '22 12:11 gary-sweet

I'm actively looking into this. The command line app will be as light as possible in regards to external dependencies and will not require Qt. See https://github.com/SaschaWillems/VulkanCapsViewerCmdLine

SaschaWillems avatar Dec 23 '22 17:12 SaschaWillems

Anyone interested in this please check https://github.com/SaschaWillems/VulkanCapsViewerCmdLine. The tool is now ready to be used. Please check the readme, feedback is appreciated.

SaschaWillems avatar Apr 19 '23 18:04 SaschaWillems

Thanks! Unfortunately it has been quite a while since I last worked on a Vulkan-enabled embedded device, so it may take some time before I get to try it again. Oh well. I have compiled and run your new tool on my desktop just to check, seems to work fine.

zeno-endemann-kdab avatar Apr 20 '23 10:04 zeno-endemann-kdab