OpenCL on etnaviv?
Christian Gmeiner
christian.gmeiner at gmail.com
Tue Oct 20 20:26:44 UTC 2020
Hi Tim,
Am Mo., 19. Okt. 2020 um 17:48 Uhr schrieb Tim Harvey <tharvey at gateworks.com>:
>
> On Mon, Oct 19, 2020 at 6:12 AM Christian Gmeiner
> <christian.gmeiner at gmail.com> wrote:
> >
> > Hi Tim
> >
> > >
> > > Could anyone explain if OpenCL can run with etnaviv? I'm also not
> > > quite understanding if OpenCL has specific hardware requirements. I
> > > have users that I support wanting to run OpenCL on an IMX8M and am
> > > finding that NXP states the IMX8MM doesn't support OpenCL (yet the
> > > IMX8MN does) and I'm trying to understand if that is a technical
> > > issue or just simply that they won't support it through their closed
> > > Vivante driver.
> > >
> >
> > On the etnaviv side OpenCL is possible but nothing has done in that
> > direction and
> > needs work to get it up and running. Hardware wise it should work on GPUs with
> > SSBOs and Images support. Intuitively it should work on most Vivante GPUs. Also
> > you might have a look https://en.wikipedia.org/wiki/Vivante_Corporation
> >
>
> Christian,
>
> Thanks - this is very helpful. I found some info about what a Shader
> Storage Buffer Object (SSBO) is but I haven't managed to find what you
> mean by Images support. I'm also not clear how to tell what Vivante
> GPU's have this support. The wikipedia page doesn't go into detail on
> SSBO's and Images support. Where do you typically find this info?
>
Regarding images: https://livebook.manning.com/book/opencl-in-action/chapter-6/
> What led me to post this question was NXP stating that the IMX8MM does
> not support OpenCL or Vulkan whereas the other IMX8M's (IMX8MN,
> IMX8MP, and IMX8MQ) do. I wasn't clear if it was a limitation in what
> NXP offers through the Vivante driver or if this was a technical
> limit. It would appear that it is likely both but more so a technical
> limit.
>
This is a hard question to answer as there is no feature flag regarding compute.
Also NXP might have not packed opencl support into their release even though the
gpu supports it. Maybe just ask NXP? Btw. how is the upstream support for the
imx8mm? I do not own such hardware.
> > > I suppose for my own education I also have the same question about
> > > Vulkan. Is there specific GPU hardware requirements for that? My
> > > understanding is that things like OpenCL and Vulkan are just software
> > > API's to tap into the hardware units.
> > >
> >
> > I am a big vulkan newbie but I think the baseline for vulkan is ES 3.1. So any
> > GPU where we can support ES 3.1 could also be driven by the Vulkan API.
> >
>
> The IMX8MM has a GC NanoUltra (1 shader) supporting OpenGL ES 2.0 and
> a GC502L for 2D from what I can find. So if the baseline is ES 3.1
> there would never be any hope for Vulkan on that. I'm assuming the
> GLES API's are implemented in hardware and not some sort of
> abstraction layer.
>
Yeah.. no Vulkan.
> > But the Vulkan road for etnaviv is even longer one. I think gles 3.0 is more
> > important at the moment. So do not expect anything in that area in the near and
> > far future.
>
> Meaning that entaviv currently supports GLES 2.0 and work is being
> done to improve that support to GLES 3.0?
>
Correct... next stop is es 3.0.
--
greets
--
Christian Gmeiner, MSc
https://christian-gmeiner.info/privacypolicy
More information about the etnaviv
mailing list