ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

alexnet mali profiling

Open Subarukun opened this issue 9 years ago • 10 comments

I have created the alexnet app using armcompute mali library. The app displays the camera preview along with alexnet outputs after processing.

So the problem here is alexnet processing fps keeps on varying from 4 to 8 fps and not constant . Is this expected behaviour.

Note : I am using gettimeofday to check the profiling . Mobile I am using is samsung galaxy note5.

Thanks in advance.

Subarukun avatar Jul 12 '17 13:07 Subarukun

Hello @Subarukun ,

I would expect more or less the model to have a stable fps after the first run. Can you give us some more info on your setup? Do you create the model once? Do you run a single batch every time or you merge more than one in each run?

GeorgeARM avatar Jul 12 '17 13:07 GeorgeARM

The app starts at 8 fps and keeps on decreasing and stables at 4 fps . But the same app with arm-compute neon is giving 3 fps stable. I assume difference in fps should be more for CPU vs GPU.

Regarding the setup: I have created the camera preview app with android studio .I Integrated the armcompute library into Android studio project using the CMakeFile .

Alexnet model is created once during init (like network.build, network.allocate in AlexNet.h) .Alexnet process is run for every frame rendered by camera until the app is exited. No batch processing is done.

Subarukun avatar Jul 13 '17 04:07 Subarukun

How do you configure your device ? Is it rooted ? You should override both the CPU and mali's governor if you want consistent results

AnthonyBarbier avatar Jul 13 '17 09:07 AnthonyBarbier

Android device is not rooted. However we monitored with CPU-Z app .CPU clock speed scaled according to load(CPU clock is peak when our application is running)but there is no change in gpu clock speed

It would be fantastic if you can give the CPU vs GPU profile comparison of Alexnet from your end.

Subarukun avatar Jul 13 '17 10:07 Subarukun

There is some benchmarking data available via CK as mentioned by @psyhtest in this comment

AnthonyBarbier avatar Jul 13 '17 10:07 AnthonyBarbier

and here too

AnthonyBarbier avatar Jul 13 '17 17:07 AnthonyBarbier

Thanks for your inputs Do you have benchmarking numbers for Alexnet using the armcompute library for both CPU(ARM)/GPU(MALI) .

It would be great to have these for our reference.

Subarukun avatar Jul 14 '17 06:07 Subarukun

Anyone knows how to adjust GPU frequency? Thanks in advance! :rofl:

ysh329 avatar Sep 15 '17 12:09 ysh329

@Subarukun in the latest release (v17.09) a custom-made testing and benchmarking infrastructure was added. Alexnet benchmark is part of it for both CPU and GPU.

GeorgeARM avatar Oct 02 '17 10:10 GeorgeARM

Closing. Reopen if needed. Alexnet graph example is now available for benchmarking.

GeorgeARM avatar Jun 02 '18 08:06 GeorgeARM