
# If you want to enable Vulkan, platform api version >= android-24 is neededĬmake -DCMAKE_TOOLCHAIN_FILE= " $ANDROID_NDK/build/cmake/ " \

The Vulkan driver is a default component of the Linux For Tegra BSP release, check the device list.Ĭmake -DCMAKE_TOOLCHAIN_FILE= " $ANDROID_NDK/build/cmake/ "\ If there are more than one GPU installed (including the case of integrated GPU and discrete GPU, commonly found in laptops), you might need to note the order of devices to use later on. After installing Vulkan driver, confirm Vulkan libraries and driver are working, by using vulkaninfo or vulkaninfo | grep deviceType, it should list GPU device type. For Nvidia GPUs the proprietary Nvidia driver must be downloaded and installed (some distros will allow easier installation in some way). sudo apt install mesa-vulkan-drivers on Debian/Ubuntu). For AMD and Intel GPUs these can be found in Mesa graphics driver, which usually is installed by default on all distros (i.e. To use Vulkan after building ncnn later, you will also need to have Vulkan driver for your GPU. On Debian, Ubuntu or Raspberry Pi OS, you can install all required dependencies using: Ensure you have most recent software installed for best experience. Nvidia Tegra series devices (like Nvidia Jetson) should support Vulkan. This applies to Raspberry Pi 3 (but there is experimental open source Vulkan driver in the works, which is not ready yet). On some systems there are no Vulkan drivers easily available at the moment (October 2020), so you might need to disable use of Vulkan on them. Generally if you have Intel, AMD or Nvidia GPU from last 10 years, Vulkan can be easily used.

