Vulkan User Guide
This guide shows how to install Vulkan components and verify that Vulkan works on the Dragon Q6A (Mesa Turnip driver).
Install Vulkan
radxa@dragon-q6a$
sudo apt update
# mesa-vulkan-drivers: Vulkan ICD (Turnip/Freedreno)
# vulkan-tools: provides vulkaninfo
sudo apt install -y mesa-vulkan-drivers vulkan-tools
Run vulkaninfo
radxa@dragon-q6a$
vulkaninfo
If you can see output like driverName = turnip and deviceName = ... Adreno ..., Vulkan is working.
Run vkpeak
vkpeak is a simple Vulkan benchmark that can help quickly confirm the GPU and driver are working.
Build vkpeak:
radxa@dragon-q6a$
sudo apt install -y git cmake g++
git clone https://github.com/nihui/vkpeak.git
cd vkpeak
git submodule update --init --recursive
mkdir build
cd build
cmake ..
cmake --build . -j"$(nproc)"
Run vkpeak:
radxa@dragon-q6a$
cd ./vkpeak/build
./vkpeak 0
The output result is as follows:
device = Turnip Adreno (TM) 643
driver = turnip Mesa driver / Mesa 25.2.8-0ubuntu0.24.04.1
fp32-scalar = 773.18 GFLOPS
fp32-vec4 = 808.85 GFLOPS
fp16-scalar = 1105.64 GFLOPS
fp16-vec4 = 1581.43 GFLOPS
fp16-matrix = 0.00 GFLOPS
fp64-scalar = 0.00 GFLOPS
fp64-vec4 = 0.00 GFLOPS
int32-scalar = 203.74 GIOPS
int32-vec4 = 205.73 GIOPS
int16-scalar = 526.61 GIOPS
int16-vec4 = 547.03 GIOPS
int64-scalar = 22.63 GIOPS
int64-vec4 = 17.90 GIOPS
int8-dotprod = 1176.03 GIOPS
int8-matrix = 0.00 GIOPS
bf16-dotprod = 0.00 GFLOPS
bf16-matrix = 0.00 GFLOPS
fp8-matrix = 0.00 GFLOPS
bf8-matrix = 0.00 GFLOPS
copy-h2h = 3.54 GBPS
copy-h2d = 8.27 GBPS
copy-d2h = 8.20 GBPS
copy-d2d = 9.06 GBPS