PINE64
rock64 opencl version - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: rock64 opencl version (/showthread.php?tid=5291)



rock64 opencl version - decebal - 10-21-2017

Hi everyone,

I'm trying to have a linux build with opencl working (clinfo finds 0 platforms).

I am using ayufan's outstanding xenial-minimal-rock64-0.5.15-136-arm64.img.xz.

I even tried getting on the https://github.com/rock64-linux/libmali but it still does not give me the clinfo positive identification.

Anyone care/know how to enable the OpenCL.

Thanks
Adrian


RE: rock64 opencl version - stuartiannaylor - 10-21-2017

(10-21-2017, 02:20 PM)decebal Wrote: Hi everyone,

I'm trying to have a linux build with opencl working (clinfo finds 0 platforms).

I am using ayufan's outstanding xenial-minimal-rock64-0.5.15-136-arm64.img.xz.

I even tried getting on the https://github.com/rock64-linux/libmali but it still does not give me the clinfo positive identification.

Anyone care/know how to enable the OpenCL.

Thanks
Adrian

I think simply it doesn't work as tried something similar with OpenGL ES & EGL to try and get 2D acceleration with X11.
Libmali just seems to crash out with a seg fault.

I have been waiting for some of the 4.14 kernel improvements to maybe get backported as a whole rake of updates has been happening with https://github.com/rockchip-linux

So apols, dunno but have a hunch currently it could be a no go.


RE: rock64 opencl version - nocrash - 10-30-2017

Mali4xx has no capability of OpenCL.
You have yo use Mali6xx series at least.


RE: rock64 opencl version - stuartiannaylor - 10-30-2017

(10-30-2017, 03:57 AM)nocrash Wrote: Mali4xx has no capability of OpenCL.
You have yo use Mali6xx series at least.

Not true, just have to use the standalone neon...

https://community.arm.com/graphics/b/blog/posts/heterogeneous-multiprocessing-gets-a-boost-with-the-new-opencl-for-neon-driver

[Edit]
Things are not currently right with the graphics side and neon and the mainline status matrix has been updated with more support for 4.14.
I think there will be a flurry of work with that kernel and some new images to check.
There might be working software but so far I haven't really seen, something that I could call 'work as expected'.

You should be able to start X11 with OpenGL & Glamor acceleration (software) which I think runs in a similar way and has Neon support.
Crashes out with a seg fault and a bit past my limitations.

I haven't seen a working setup for either but haven't looked much at the OpenCL stuff.
Currently I don't think we are utilizing the Neon at all, we don't have a Midgard GPU, but it is better than the current CPU based offering we are using.