ncnn-small-board icon indicating copy to clipboard operation
ncnn-small-board copied to clipboard

The running time with vulkan in jetson nano is much slower than yours

Open twmht opened this issue 3 years ago • 2 comments

Trying to run benchncnn in jetson nano (Jetpack 4.6) with vulkan.

ncnn version is latest.

But the running time is much slower than yours

Here are my result

image

Any idea?

twmht avatar Mar 16 '22 03:03 twmht

the data is collected from https://github.com/Tencent/ncnn/issues/3485

https://qengineering.eu/install-ncnn-on-jetson-nano.html Note, during the test the Jetson Nano CPU was overclocked to 2014.5 MHz and the GPU to 998.4 MHz.

nihui avatar Mar 16 '22 07:03 nihui

There are several options to maximize the performance of the benchmark. There are several options to maximize the performance of the benchmark. First, wait 10 minutes after boot up. It gives Ubuntu (Tegra) the time to do all the administrative tasks like looking for updates etc. Second, set the power to 10 Watts, something you've probably already done. Thirdly, set all the governors at performance.

$ sudo echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
$ sudo echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
$ sudo echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
$ sudo echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

You can temporarily shut down the graphic stack or start overclocking. Both methods are not used here. The results with a Jetson Nano 4 GB running at a normal clock speed of 1479 MHz CPU and 921.6 MHz GPU.

BenchNCNN

Qengineering avatar Mar 28 '22 16:03 Qengineering