how do I get the fossilize file .foz out of the vulkan driver?
detail | 详细描述 | 詳細な説明
Hi, I have the project compiled under UbuntuOS 22.04 LTS with the Intel i915 GPU drivers for a TGL GT2 iGPU. I am interested in getting the fossilize files .foz out of the vulkan compute shaders because I'd like to look at how the compiler generates the IR ASM code for these shaders, however, the .foz files are not getting generated at all. Any idea how to generate the fozz files?
To learn more about Fossilize: https://github.com/ValveSoftware/Fossilize
It's already built-in in the Mesa Library that I have on my system, and all I have to do to generate the .foz file is to export FOSSILIZE=1. I have cross checked that the drivers are running as expected by running a dummy app vulkaninfo and the .foz file gets generated in the same directory where the app was launched. Any ideas?
By default, ncnn uses its own implementation of simplevk to load the vulkan driver. This can avoid some possible dependencies and implement some additional functions for ncnn. However, this is likely to be incompatible with the tool ecosystem based on khronos vulkan loader.
You can use cmake -DNCNN_SIMPLEVK=OFF to compile ncnn to use the system's vulkan loader
https://github.com/Tencent/ncnn/wiki/vulkan-driver-loader
Hi @nihui thanks for the quick reply! That's exactly what the issue was. Please go ahead and close this issue.