Good hardware but with good software ? Need highlights from Odroid

Kuennek
Posts: 14
Joined: Tue Jul 02, 2019 5:45 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by Kuennek » Sun Jul 07, 2019 3:48 pm

Can we overclock gpu on our Odroid N2 too?

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Sun Jul 07, 2019 10:30 pm

memeka wrote:
Sun Jul 07, 2019 10:27 am
easybob95 wrote:
Sat Jul 06, 2019 10:57 pm
Anyway, Jetson Nano works really good.

I made a speed test, using an opencv program to compare N2 and Nano CPU :
- Odroid N2 : 1.5 seconds
- Jetson Nano : 2 seconds

I am a bit disappointed with N2 ; i thought it would be much faster than Nano. He is faster but not so much.

Alain
Disappointed in the cheaper product that is 25% faster?
Lol
Hello memeka,

you should try to read more carefully.

I thought A73 with higher frequency should bring much more power comparing to A57 lower frequency. 25% is quite good but i expected better performance.

Lol. :D

Alain

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Sun Jul 07, 2019 10:38 pm

igorpec wrote:
Sun Jul 07, 2019 8:07 am
easybob95 wrote:
Sat Jul 06, 2019 10:57 pm
Nvidia has nothing to do with Armbian (that's quite normal) so Igor is angry. For sure and for now, Armbian is useless with N2 and Nano. Maybe in 1 year, Armbian will be useful but at this time, Ubuntu will be as good as Armbian. So Armbian is mainly useless.
I am angry on how terrible low level and Linux support is on Nano. Since you have no idea what that means, its pointless to discuss. You clearly have absolutely no idea what Armbian is as well. Let me give you some very short overview. Armbian is a build tool, an engine to create a Debian based distribution. Like Yocto, like buildroot. Linux distribution or images are a side product, a demonstration that it works. And if a vendor provides shit SDK, its (almost) impossible / hard / time consuming to build a Linux from sources. Any Linux, not just Armbian. That's the main issue here. Since you only see the desktop and you don't care if you can't change or improve anything, just enjoy and remain ...

There is (unofficial/community made) Armbian for Nano ... its a bit improved Nvidia's Ubuntu (official Ubuntu does not exits) but its not build, but glued. That is good enough for demonstration purposes ...
Hello Igor,

I understand. But i am not a kind of geek trying to get its own personal linux system. I can imagine some people want to do that but as for me, i just want to write software to go further in my project so, Ubuntu is enough for me and i don't really care about Armbian. If this makes me an ... idiot ?, well, i am an idiot. No problem.

To get back with the Odroid N2, my problem is that Odroid does not bring much response to my questions. Odroid N2 is finally a SBC dedicated to game emulation or things like that. Not really serious stuff.

Too bad.

And during this time, Odroid remains silent. Still silent. Always silent. What a pity.

Alain


easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Mon Jul 08, 2019 3:52 am

Something really interesting :

I told you i made a test with a gradient removal algorithm using Odroid N2 and Nvidia Jetson Nano (Python 3 software).

The results were :
- N2 : 1.5s
- Jetson Nano : 2s

I have compiled openCV 4.1.0 with Cuda for the Jetson Nano and i made a new test :
- N2 (always the same openCV library) : 1.5s (no change)
- Jetson Nano with new OpenCV4.1.0 : 0.5s

Well, that's really different. The Jetson Nano fall from 2s to 0.5s with good openCV library. This time, Jetson Nano is 3 time faster than Odroid N2 !

I will try to compile openCV 4.1.0 for Odroid N2 to see if there is some improvement with the N2.

Alain

User avatar
igorpec
Posts: 357
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 4 times
Been thanked: 17 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by igorpec » Mon Jul 08, 2019 4:14 am

Ubuntu is enough for me
Which Ubuntu? Can't find anything https://www.google.com/search?q=site%3A ... etson+nano
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Mon Jul 08, 2019 4:19 am

It's Ubuntu 18.04 LTS

Alain

blu
Posts: 35
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by blu » Mon Jul 08, 2019 4:53 am

easybob95 wrote:
Mon Jul 08, 2019 3:52 am
I will try to compile openCV 4.1.0 for Odroid N2 to see if there is some improvement with the N2.
Let us know how the build for OCL2.0 goes.
easybob95 wrote:
Mon Jul 08, 2019 4:19 am
It's Ubuntu 18.04 LTS
It's not really, it's L4T, aka Linux for Tegra -- the userspace is largely based off Ubuntu, but there end the similarities.

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Mon Jul 08, 2019 3:00 pm

Hello blu,

you are right, it's L4T based on Ubuntu 18.04.

But it is not really important, at least for me, as long i can make my work with it.

Concerning OpenCV 4.1.0 for N2, i will give it a try this week. I will tell you if it brings some extra performance to N2 (if i can succeed compilation and you it with Python of course).

Alain

User avatar
memeka
Posts: 4315
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 0
Been thanked: 12 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by memeka » Mon Jul 08, 2019 3:27 pm

easybob95 wrote:
Sun Jul 07, 2019 10:30 pm
Hello memeka,

you should try to read more carefully.

I thought A73 with higher frequency should bring much more power comparing to A57 lower frequency. 25% is quite good but i expected better performance.

Lol. :D

Alain
A57 vs A73 (or A72 vs A73) is not really that big difference in terms of real-life performance. The improvements in A73 is more in terms of power consumption. In certain workloads, A72 is even faster than A73 (and probably A57 too).
So the difference is clock speed. 25% for 1.8Ghz vs. 1.43 Ghz is in line with what one would expect.
The real advantage of A73 is lower consumption and better technology which allows higher clock rates and thus better performance because of this. The 1.8Ghz frequency of the A73 in the Odroid N2 is actually low because of some issues with the initial chip design (from Amlogic, not Hardkernel), and I expect Hardkernel to release soon a new revision of the N2 which has these issue fixed, and new frequencies at least 2.2 Ghz to be unlocked. This would mean 50-60% better than the Nano (e.g. just under 1s in your test) with that.... let's call it N2+ :).
On the other hand, this would be results for CPU only.

Using Cuda, you can get better results (like you got 0.5s) with the Nano. Cuda does not work on N2. So compiling OpenCV 4.1.0 for N2, I can tell you now there is little chance you'll get better results on the N2.

It is still up to debate the benefits of OpenCL on the N2. AFAIR, OpenCV has some OpenCL optimizations (see https://opencv.org/wp-content/uploads/2 ... 901763.jpg), but nothing that I myself found useful for my own applications. So if you wanna test the "raw" performance of N2 GPU, you can write an OpenCV benchmark that uses sobel, filter2D and whatever function is OpenCL accelerated, but unless you make use of that in your own code, it's useless (whereas Cuda I think has a much tighter integration than OpenCL). You can also use the ARM compute library (https://github.com/ARM-software/ComputeLibrary) if you want to test the N2 GPU performance, they have more things implemented than OpenCV.

User avatar
memeka
Posts: 4315
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 0
Been thanked: 12 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by memeka » Mon Jul 08, 2019 3:36 pm

McSpud3rd wrote:
Sat Jul 06, 2019 7:14 pm
Would you say the mainline Linux build is ready for someone like me to start toying with? I'd be happy to help out with user testing if that's something that this project would benefit from at this point?
I think you should wait for the next LTS (5.4?), then use mainline + check some out of tree patches from amlogic mainline developers (as they get queued for linux-next).
I think the armbian kernel people track the amlogic developers quite well, so you might want to look at their repository for a compilation of out-of-tree patches, or use their kernel/distro when they upgrade to next LTS.

McSpud3rd
Posts: 2
Joined: Sat Jul 06, 2019 6:58 pm
languages_spoken: english
ODROIDs: XU3 N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by McSpud3rd » Mon Jul 08, 2019 7:25 pm

memeka wrote:
Mon Jul 08, 2019 3:36 pm
I think you should wait for the next LTS (5.4?), then use mainline + check some out of tree patches from amlogic mainline developers (as they get queued for linux-next).
I think the armbian kernel people track the amlogic developers quite well, so you might want to look at their repository for a compilation of out-of-tree patches, or use their kernel/distro when they upgrade to next LTS.
Thanks memeka, I'll have a play once the next LTS has been released.

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Wed Jul 10, 2019 4:42 am

Hello,

i have succeed to compile opencv 4.1.0 with opencl=ON for Odroid N2. So, cv2 for Python is now 4.1.0 version.

I made a new test with my gradient removal algorithm using Odroid N2 :
- Odroid N2 opencv 4.1.0 : 0.5 second
- Jetson Nano opencv 4.1.0 : 0.5 second

That is to say equality now.

Many thanks Odroid for your precious help ! ;)

Alain
These users thanked the author easybob95 for the post (total 2):
blu (Wed Jul 10, 2019 3:30 pm) • odroid (Wed Jul 10, 2019 3:34 pm)

blu
Posts: 35
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by blu » Wed Jul 10, 2019 3:26 pm

easybob95 wrote:
Wed Jul 10, 2019 4:42 am
i have succeed to compile opencv 4.1.0 with opencl=ON for Odroid N2. So, cv2 for Python is now 4.1.0 version.

I made a new test with my gradient removal algorithm using Odroid N2 :
- Odroid N2 opencv 4.1.0 : 0.5 second
- Jetson Nano opencv 4.1.0 : 0.5 second

That is to say equality now.
Good! Is OCV 4.1 relying on OCL2 or can it run with a lower-version OCL, like 1.2? If the latter, it might be interesting to try and run the same test on XU4's Midgard, so that we get a general idea how much better Bifrost is for this kind of task.

User avatar
memeka
Posts: 4315
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 0
Been thanked: 12 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by memeka » Wed Jul 10, 2019 4:42 pm

easybob95 wrote:
Wed Jul 10, 2019 4:42 am
Hello,

i have succeed to compile opencv 4.1.0 with opencl=ON for Odroid N2. So, cv2 for Python is now 4.1.0 version.

I made a new test with my gradient removal algorithm using Odroid N2 :
- Odroid N2 opencv 4.1.0 : 0.5 second
- Jetson Nano opencv 4.1.0 : 0.5 second

That is to say equality now.

Many thanks Odroid for your precious help ! ;)

Alain
This is better than I expected, are you using OCL implemented functions in opencv?

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Wed Jul 10, 2019 9:11 pm

From what i know, i think openCLversion is 1.2

Concerning opencv functions i use, it is mainly image filters like gaussian filter.

I am trying to find which functions i must use to be sure UMAT will bring opencl acceleration.

This is not really clear for Python language. It is more clear for C language.

But i will look at this letter because for now, i must install pycuda on Jetson Nano andi have small issues installing pycuda.

Alain

User avatar
tony.hong
Posts: 5
Joined: Tue Jun 04, 2019 1:49 pm
languages_spoken: korean
ODROIDs: All
Location: korea
Has thanked: 0
Been thanked: 0
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by tony.hong » Mon Jul 15, 2019 10:49 am


easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Wed Jul 17, 2019 3:46 pm

I confirm i get OpenCL 1.2 version with OpenCV 4.1.0.

The speed tests for my purpose are good but not better than Jatson Nano.

Concerning Jetson Nano, i have compiled Cuda examples (Cuda toolkit) to see what Maxwell GPU can do. It is really amazing. I made focus on image filtering and the difference is huge between Cuda and OpenCV. Really impressive.

That makes me say Odroid N2 is a half SBC without G52 support.

Alain

blu
Posts: 35
Joined: Wed Mar 08, 2017 11:30 pm
languages_spoken: english
ODROIDs: XU4 eMMC, N2 eMMC
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by blu » Wed Jul 17, 2019 6:17 pm

easybob95 wrote:
Wed Jul 17, 2019 3:46 pm
I confirm i get OpenCL 1.2 version with OpenCV 4.1.0.

The speed tests for my purpose are good but not better than Jatson Nano.
Most GPU and GPGPU tests so far demonstrate similar performance levels between G52/mp2 (*) and Maxwell2.0/128. Actually, I'd expect Nano to have a general edge due to 2.5x the system BW of Nano over N2, but I guess your workload fits well with G52's caches.
Concerning Jetson Nano, i have compiled Cuda examples (Cuda toolkit) to see what Maxwell GPU can do. It is really amazing. I made focus on image filtering and the difference is huge between Cuda and OpenCV. Really impressive.

That makes me say Odroid N2 is a half SBC without G52 support.
Mali will never have CUDA support. But you can learn OCL and write your own kernels doing the same things in OCL2, across a myriad of non-NV GPUs : )

* It's 2 devices of 3 pipelines each, so the setup is often referred to as mp6.

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Wed Jul 17, 2019 7:59 pm

For now, i will focus my work on Nano and Cuda/PyCuda. Nvidia support is really useful and i will be able to use my work with something more powerful like a laptop for specific needs.

But i don't give up with N2. I will probably try to use OCL for other projects but Cuda will go first.

Many thanks for your comment blu.

Alain

User avatar
memeka
Posts: 4315
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 0
Been thanked: 12 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by memeka » Wed Jul 17, 2019 8:11 pm

What do you mean no G52 support? How else are you running OCL?

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Thu Jul 18, 2019 6:21 pm

Where is the G52 software support ?

I can manage OpenCV but i need more OCL support to learn it and get specific informations about G52 to make optimized programs.

I don't speak about OGL of course or native GPU support with Ubuntu.

Anyway, i will be back with N2 when we will get some serious informations and libraries. For now, as i said, i focus my work on pycuda/cuda. Very interesting and well documented.

User avatar
memeka
Posts: 4315
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 0
Been thanked: 12 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by memeka » Thu Jul 18, 2019 8:30 pm

Not clear what is it you want?
OpenCL information?
G52 arch information?

easybob95
Posts: 53
Joined: Mon Apr 08, 2019 4:02 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Good hardware but with good software ? Need highlights from Odroid

Unread post by easybob95 » Fri Jul 19, 2019 1:08 am

Both. But now, i don't care much anymore as i said i focus on Cuda.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest