nihui / realsr-ncnn-vulkan

RealSR super resolution implemented with ncnn library
MIT License
1.11k stars 113 forks source link

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

Open btx4452 opened 1 year ago

btx4452 commented 1 year ago

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!

ArchieMeng commented 1 year ago

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.

btx4452 commented 1 year ago

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!