OpenCL in Odroid XU-4(CPU and GPU)

Moderators: mdrjr, odroid

OpenCL in Odroid XU-4(CPU and GPU)

Unread postby 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
srijeetaM
 
Posts: 3
Joined: Thu Jun 14, 2018 8:02 pm
languages_spoken: english
ODROIDs: XU-4

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

Unread postby 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.
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby 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?
srijeetaM
 
Posts: 3
Joined: Thu Jun 14, 2018 8:02 pm
languages_spoken: english
ODROIDs: XU-4

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

Unread postby 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?
User avatar
odroid
Site Admin
 
Posts: 28510
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby 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.
srijeetaM
 
Posts: 3
Joined: Thu Jun 14, 2018 8:02 pm
languages_spoken: english
ODROIDs: XU-4

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

Unread postby 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.
ASword
 
Posts: 76
Joined: Fri Aug 04, 2017 12:48 pm
languages_spoken: english
ODROIDs: XU4, HC1

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

Unread postby 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).
User avatar
mad_ady
 
Posts: 4248
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1


Return to General Chat

Who is online

Users browsing this forum: No registered users and 3 guests