cain-ncnn-vulkan icon indicating copy to clipboard operation
cain-ncnn-vulkan copied to clipboard

NCNN/Vulkan not finding Raspberry Pi 4's Vulkan-compatible GPU

Open Foxy6670 opened this issue 3 years ago • 3 comments

Alright, I'll cut to the chase. Originally, I just planned on interpolating small videos and GIFs, just to give my Pi a use. After painfully building the program successfully with cmake then make in ~/cain-ncnn-vulkan/src/build/, it was to my surprise that, by default, NCNN/Vulkan couldn't find the GPU, despite having GPU and Vulkan drivers installed and whatnot on Raspberry Pi OS. This is what I get, every single time as an output: pi@raspberrypi:~/cain-ncnn-vulkan/src/build $ ./cain-ncnn-vulkan -i input_frames -o output_frames vkCreateInstance failed -9 vkCreateInstance failed -9 vkCreateInstance failed -9 invalid gpu device A fix (or I could just be dumb and missing something, I dunno) would be appreciated. Thank you in advance.

Foxy6670 avatar Jul 02 '21 12:07 Foxy6670

I get that too on my windows machine with a NVIDIA card. It is due to the drivers being installed but unavailable to vulkan applications.

For a Pi, it is not as easy to fix. Mostly just installing any vulkan enabled driver and testing which one works or has a version that the app can use.

You could use something like https://github.com/google/vulkan_test_applications for testing.

78Alpha avatar Sep 20 '21 04:09 78Alpha

Sorry for the late response @78Alpha! I'll try that. Also, on my AMD RX 550, it outputs a black image. Not the case for my much slower GT 710, however.

Foxy6670 avatar Jun 03 '22 02:06 Foxy6670

Sorry for the late response @78Alpha! I'll try that. Also, on my AMD RX 550, it outputs a black image. Not the case for my much slower GT 710, however.

That's an issue with how they implemented this... My 1650, 2060 and 3070 all render black images.

For CAIN I have been using https://gitlab.com/hubert.sontowski2007/cainapp but it is CUDA only. Doesn't have the black image bug.

78Alpha avatar Jun 03 '22 03:06 78Alpha