GSoC Interested to contribute

98 views
Skip to first unread message

Steven Schürstedt

unread,
Mar 14, 2021, 7:06:08 AM3/14/21
to BeagleBoard GSoC
Hello all :)
Im Steven from Germany and Im very interested to contribute to the beagleboard community in this years GSoC! 
Im interested in GPGPU with GLES, as written on the ideas page. The beagleboards gpu only supports OpenGL ES 2.0, so doing general purpose computations with this api is not that straight forward. I could set up some samples, together with a tutorial how to do convolution or matrix multiplication with support of gpu. 
This could be used to accelerate some deep learning  framework.
Im looking for a mentor to discuss this idea and set up a reasonable scope for the project :) 
If you have some ideas for what you want to use the gpu on a beagleboard please let me know :) 

Best Regards
Steven

Jason Kridner

unread,
Mar 14, 2021, 11:58:01 AM3/14/21
to beaglebo...@googlegroups.com
ds2 on IRC might be helpful. Also, can you check out 

--
https://beagleboard.org/gsoc
---
You received this message because you are subscribed to the Google Groups "BeagleBoard GSoC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard-gs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard-gsoc/cc21b5be-95d2-42a4-b805-b910e6a6175an%40googlegroups.com.
--
https://beagleboard.org/about/jkridner - a 501c3 non-profit educating around open hardware computing

Iain Hunter

unread,
Mar 15, 2021, 12:10:48 PM3/15/21
to beaglebo...@googlegroups.com
Hi Steven,
Imagination have recently published code + documentation on how to use OpenCL on the SGX530 on the BeagleBoard Black. This gives the matrix type examples you were proposing. The key thing is that on this generation of graphics core the OpenCL is not faster than C or Neon on mathematical operations. The benefit comes from being able to offload the processing from the A8 core and leave it free for doing other stuff. 
You can request a download of the materials from https://university.imgtec.com/fun-with-beagle-gpu/
Iain  

Hunyue Yau

unread,
Mar 18, 2021, 12:28:55 PM3/18/21
to beaglebo...@googlegroups.com, Steven Schürstedt
Hi Steven,

How familar are you with GLES 2 and GPGPU in GLES SL?

When I wrote up the project idea, what i had in mind was to do 2 things:
Create some sample code for computation in GLES SL plus the ARM side. Things
like matrix multiplication, convolution are the things in I have in mind. But
it may be useful to also do a basics example (addition of 2 matrices showing
how data flows from the ARM side along with the abstractions to the GPU and
back).

The 2nd half of it is to generate some comparative timing numbers between the
GLES SL version and an optimized ARM version. The exact types of comparism is
open for discussion as there are several aspects that could be/should be
addressed.

Please try to hang out in the #beagle-gsoc channel to speak to mentors.
--
Hunyue Yau
http://www.hy-research.com/

Steven Schürstedt

unread,
Mar 19, 2021, 6:50:26 AM3/19/21
to BeagleBoard GSoC
Hey Hunyue,
Im very familiar with OpenGL and I did some GPGPU using openCL. OpenGLES is just a subset of the "normal" openGl, so it should be no problem for me to adapt. I dont have experience with GPGPU using GLES 2, as there was no reason for me to do that when you can just use compute shaders or openCL/Cuda, but I have some ideas how to do it. In generall you can use uniforms, textures or vertex arrays to send data to the gpu and read the data back from the framebuffer. I could do some research how to do it most effectively depending on the use case. 
Im not sure how difficult it is to get all the drivers running on a beagleboard for openGLES? Do you have a specific beagleboard in mind for the project?
I could do some timings to show the difference of a computation, like matrix multiplication, running on the CPU vs GPU. Im not sure if it will be faster on the SGX530 gpu, but it could still free up the CPU to do other computations. 

Hunyue Yau

unread,
Mar 19, 2021, 12:04:38 PM3/19/21
to beaglebo...@googlegroups.com, Steven Schürstedt
Hi Steven,

I suggest we try to talk on #beagle-gsoc if we can find a mutual time. I am on
PDT but my schedule is a bit odd.

Getting the drivers going on the Beagleboard/Beaglebone does take some tricks
but I can help with that. I went through the process of setting it up before
and there are other resources that can help with that. For this usage, a lot
of the problems with SGX and X won't necessarily apply as we just need the
ability to render off screen. The main difference is getting the initial context
from EGL.

In my opinion, I'd suggest targeting the AM335x family of BeagleBone's. The
pocket beagle is kind of handy for this. Other mentors may suggest another
board but we can talk about it.

Steven Schürstedt

unread,
Mar 27, 2021, 3:14:01 AM3/27/21
to BeagleBoard GSoC
Hey, 
that seems like a good idea! I tried to write you but got no response. When are you typically online? 
In the meantime I set up a first draft for the proposal: https://elinux.org/BeagleBoard/GSoC/2021ProposalGPGPU

Iain Hunter

unread,
Mar 28, 2021, 10:45:05 AM3/28/21
to beaglebo...@googlegroups.com
Hi Steven,

To help with your comparisons here are the matrix multiplication timing results for the OpenCL example in the Fun with Beagle package. They are based on an [MxN]x[NxP] multiplication.

OpenCL  N=256

OpenCL

 

Native

 

M,P

Overhead

Float4BT

A8

Neon

8

1.21

1.36

0.63

0.15

16

1.49

3.5

1.8

0.36

32

1.98

6.8

7.1

1.06

64

3.14

25.3

27.8

3.9

128

5.22

99.7

112

15.4

256

9.82

396

489

87.1



So for the [256x256]x[256x256] case the OpenCL implementation on GPU is faster than a native A8 but still significantly slower than using Neon intrinsics. The main benefit however is that A8 is offloaded.

For your proposal the interesting point for me would be whether a GL ES implementation would be faster than OpenCL. It is not something I tried as I had no experience in using GE ES for computation.

Iain

--
https://beagleboard.org/gsoc
---
You received this message because you are subscribed to the Google Groups "BeagleBoard GSoC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard-gs...@googlegroups.com.

ste...@schuerstedt.com

unread,
Mar 29, 2021, 8:56:07 AM3/29/21
to beaglebo...@googlegroups.com
Hey Iain,
thank you very much for that info! 
I requested a download for the material of the course, so maybe I can try it out myself.
I saw you created that course, that is very cool! Do you know if there a plans to release the OpenCL driver for public? Also I wonder how a OpenCL driver is possible in the first place? In the datasheet of SGX530/550 it says only OpenGL ES 2.0 is supported. 
Why do you think a OpenGL ES implementation could be faster? I doubt it will be much a difference since OpenGL ES 2.0 is not targeted for general purpose computations.

Best Regards,
Steven
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard GSoC" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard-gsoc/7zCFVGw4qME/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard-gs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard-gsoc/CALC81-vBjSHmJx%2BgWN_9roO6uwiugpZ-sLa2Wz6HgvjTU9zoow%40mail.gmail.com.

drhun...@gmail.com

unread,
Mar 29, 2021, 2:26:13 PM3/29/21
to BeagleBoard GSoC
Hi Steven,
The OpenCL driver is "as is" and so there will be no further releases of libraries and no source. I'm assuming by releasing for public you mean in source code. That will not happen.
A datasheet only describes what a manufacturer wants to support in public at time of publication, hence no mention of OpenCL from Imagination or TI.
I didn't mean to suggest OpenGL ES would be faster, I was just trying to highlight the potential value of your work in being able to relate existing OpenCL to OpenGL ES.
Iain 

Reply all
Reply to author
Forward
0 new messages