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

vkCreateInstance failed -9, invalid gpu device on google.colab

Open btx4452 opened this issue 2 years ago • 2 comments

Dear all,

got issues when using on google colab with T4 (or any other GPU)

Driver Version: 525.85.12 CUDA Version: 12.0

/content/realsr-ncnn-vulkan-20220728-ubuntu/realsr-ncnn-vulkan -v -s 4 -t 0 -g 0 -j 1:1:1 -f png -i origin.png -o output.png

vkCreateInstance failed -9 vkCreateInstance failed -9 invalid gpu device

Any help appreciated.

Thanks a lot!

btx4452 avatar May 05 '23 11:05 btx4452

Could you run command vulkaninfo to check if the vulkan driver is correctly installed? From VkResult manual, result code -9 means VK_ERROR_INCOMPATIBLE_DRIVER.

ArchieMeng avatar May 06 '23 01:05 ArchieMeng

Thank you so much for a prompt reply! The issues was on the Google colab side. The issue is apparently new since the last colab update on April 5. Adding libnvidia-gl-525 did the trick:

!apt-get install libnvidia-gl-525 !apt install libvulkan1 !apt install vulkan-utils

The issue is also mentioned here: https://github.com/googlecolab/colabtools/issues/3556

All the best!

btx4452 avatar May 07 '23 08:05 btx4452