OpenCL in Odroid XU-4(CPU and GPU)

Post Reply
srijeetaM
Posts: 4
Joined: Thu Jun 14, 2018 8:02 pm
languages_spoken: english
ODROIDs: XU-4
Contact:

OpenCL in Odroid XU-4(CPU and GPU)

Unread post by srijeetaM » Thu Jun 14, 2018 8:36 pm

Hello,
Can anyone tell if it is possible to run OpenCL program in both CPU and GPU in ODROID XU-4? I want to run OpenCL kernels in both CPU and GPU simultaneously.
Thanks in advance,
Srijeeta

User avatar
odroid
Site Admin
Posts: 29372
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: OpenCL in Odroid XU-4(CPU and GPU)

Unread post by odroid » Fri Jun 15, 2018 8:24 am

Since ARM's latest ComputeLibrary supported NEON(in CPU) and Mali-GPU in parallel, we could utilize both computing resources simultaneously.
viewtopic.php?f=95&t=5559#p210460
But I am not sure whether CL kernels could run on the CPU+GPU simultaneously or not.

srijeetaM
Posts: 4
Joined: Thu Jun 14, 2018 8:02 pm
languages_spoken: english
ODROIDs: XU-4
Contact:

Re: OpenCL in Odroid XU-4(CPU and GPU)

Unread post by srijeetaM » Fri Jun 15, 2018 2:59 pm

So is it possible to run OpenCL kernel in both CPU and GPU separately? I checked that ODROID XU-3 supported OpenCL in both CPU and GPU. Is both supported in XU-4 as well?

User avatar
odroid
Site Admin
Posts: 29372
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: OpenCL in Odroid XU-4(CPU and GPU)

Unread post by odroid » Fri Jun 15, 2018 3:13 pm

XU4 and XU3 have the exactly same SoC Exynos-5422.
If it worked on XU3 certainly, there will be no issue with XU4.

Did you check the both CL Kernel functionality on XU3 by yourself?

srijeetaM
Posts: 4
Joined: Thu Jun 14, 2018 8:02 pm
languages_spoken: english
ODROIDs: XU-4
Contact:

Re: OpenCL in Odroid XU-4(CPU and GPU)

Unread post by srijeetaM » Fri Jun 15, 2018 3:33 pm

No, I haven't checked it in XU-3 myself. I came across a paper where they have executed OpenCL kernel in CPU using Odroid-XU3.

ASword
Posts: 132
Joined: Fri Aug 04, 2017 12:48 pm
languages_spoken: english
ODROIDs: XU4, HC1
Contact:

Re: OpenCL in Odroid XU-4(CPU and GPU)

Unread post by ASword » Sat Jun 16, 2018 1:29 am

From a hardware perspective the two processors are fully independent and I would be very surprised if ARM's OpenCL implementation did not allow both devices to function in parallel. While it is possible (although unlikely, I would think) that one CPU thread might be tied up servicing the GPU, the other CPU threads should be free to use the other cores of the device to run another OpenCL job. The whole design of OpenCL is intended for running tasks asynchronously so it would be remarkably stupid if ARM didn't allow that to happen.

User avatar
mad_ady
Posts: 5105
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: OpenCL in Odroid XU-4(CPU and GPU)

Unread post by mad_ady » Sat Jun 16, 2018 2:44 am

A couple of years ago I tested wifi password cracking with pyrite (viewtopic.php?t=22488) which used opencl on xu4. It used both cpu and gpu and would run in 8 paralel threads. 2 of those were on gpu, 6 on cpu (2 on little, 4 big).

Post Reply

Return to “General Chat”

Who is online

Users browsing this forum: Baidu [Spider], chocho and 7 guests