-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCL support for Raspberry pi 4 GPU (VideoCore VI) #86
Comments
Short answer: no, see also #79. |
@doe300 As I see Eben Upton co-founder of the Raspberry Pi Foundation, has announced open source Vulkan graphics driver for the Raspberry Pi 4 family. So I guess He can share VideoCore VI specs with you as well. |
Does anyone refer to Idein's py-videocore6? |
First of all thank you for building OpenCL compiler up to RPi3. May it helps https://www.raspberrypi.com/news/vulkan-update-version-1-1-conformance-for-raspberry-pi-4/ ? |
Maybe there is a way to use Vulkan 1.1 on Rpi4 for Machine Learning instead of OpenCL ? |
If Raspberry Pi 4 has Vulkan, then they can use https://github.com/kpet/clvk to get OpenCL out of Vulkan |
That's amazing news @truboxl |
I tried to get this working: |
I can confirm that CLVK in combination with the latest version of Mesa's v3dv Vulkan driver, you can get OpenCL on a rPi4. Unfortunately, important extensions are missing. The v3dv Vulkan driver can't do FP16 (16 bit floats.) Nor can it do 8 bits integers. This limits the usefulness for me personally, as my kernels are written to operate on FP16 values. If your kernels don't use FP16 / INT8, you may have better luck than me, though. |
I suspect the best way to get a decent supported OpenCL will be using the mesa gallium driver in conjunction with the new mesa rusticl opencl stack. rusticl is being actively developed and a there has been support added for a bunch of other arm GPUs that support opencl (panfrost for MALI, etnaviv for Vivante). |
It can find the rusticl platform.
But it cannot find any devices:
This is with Ubuntu 23.04 on rPi-400.
|
There's probably some driver work required, but ultimately that will be the best/quickest way to get GPU HW OpenCL on the rpi4 |
Can I make a build in docker on the amd64 platform with arm64 emulation ? It might to decrease building time |
First of all thank you for building OpenCL compiler for VideoCoreIV GPUs. Just wanted to know is there is possibility to support for VC6 GPU devices.
The text was updated successfully, but these errors were encountered: