Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alexnet mali profiling #173

Closed
Subarukun opened this issue Jul 12, 2017 · 10 comments
Closed

alexnet mali profiling #173

Subarukun opened this issue Jul 12, 2017 · 10 comments

Comments

@Subarukun
Copy link

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.

@GeorgeARM
Copy link
Contributor

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?

@Subarukun
Copy link
Author

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.

@AnthonyBarbier
Copy link
Contributor

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

@Subarukun
Copy link
Author

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.

@AnthonyBarbier
Copy link
Contributor

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

@AnthonyBarbier
Copy link
Contributor

and here too

@Subarukun
Copy link
Author

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.

@ysh329
Copy link

ysh329 commented Sep 15, 2017

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

@GeorgeARM
Copy link
Contributor

@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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants