Skip to content
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

Raspberry Pi 4 and VideoCore VI #75

Open
ghost opened this issue Nov 14, 2019 · 15 comments
Open

Raspberry Pi 4 and VideoCore VI #75

ghost opened this issue Nov 14, 2019 · 15 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2019

Is it supported?

I couldn't find that detailed of specs on the VideoCore VI but it seems like it's suppose to be a lot faster.

@wimrijnders
Copy link
Contributor

You can't find any specs because they aren't released (yet, hopefully).

The VC6 isn't that much faster; it has a higher clock rate and more efficient design, so that there are less instructions stalls in the pipeline. However, the number of QPU's has been brought down to 8 from 12.

This results in a significant but slight performance increase:

VideoCore IV @ 250MHz: 250 [MHz] x 3 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 24 Gflop/s
VideoCore IV @ 300MHz: 300 [MHz] x 3 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 28.8 Gflop/s
VideoCore VI @ 500MHz: 500 [MHz] x 2 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 32 Gflop/s

Source

@ghost
Copy link
Author

ghost commented May 15, 2020

@wimrijnders You're right, I mistakenly thought there was a huge performance advantage. It's a shame though that they're not releasing the specs.

@lyogavin
Copy link

Seems like it's figured out here: https://github.com/Idein/py-videocore6.

Any plan to support Pi4?

@wimrijnders
Copy link
Contributor

wimrijnders commented May 19, 2020 via email

@lyogavin
Copy link

lyogavin commented Jul 8, 2020

@wimrijnders you making any progress? you think this may work?

@lyogavin
Copy link

lyogavin commented Jul 8, 2020

Maybe share some of your preliminary findings so that we can see if we can help?

@wimrijnders
Copy link
Contributor

wimrijnders commented Jul 9, 2020

Nothing worth publishing, I'm afread.

The issue is that there is no documentation at all to be found about using VC6.
So, I downloaded the relevant driver code in the linux kernel (more specifically: the entire kernel and culling it), and I'm trying to get the relevant funtionality working from there.

The other thing I tried is looking at similar projects in other languages (notably python, the project link is above) and destill the relevant stuff from there. That went well up to a certain extent.

TBH it's an ordeal. If you know of a better approach, please tell.

@madtom1999
Copy link

madtom1999 commented Jul 10, 2020 via email

@wimrijnders
Copy link
Contributor

wimrijnders commented Jul 10, 2020 via email

@geerlingguy
Copy link

Also noting that you can overclock the GPU cores to 750 MHz (using gpu_freq=750 in /boot/config.txt—also set over_voltage=6), which would bring about 48 Gflop/s, right?

@wimrijnders
Copy link
Contributor

@geerlingguy Hey, interesting! So I add that line to config.txt and reboot, is it really that simple?

@geerlingguy
Copy link

@wimrijnders - Yes, though I would also recommend either a good heatsink or any kind of fan to move air over the SoC after the overclock, as it will make it a little warmer and could lead to throttling if it hits 85°C.

@doleron
Copy link

doleron commented Jan 16, 2021

Hi @wimrijnders, sorry for ask again. But do you have any news about PI4 support? Thank you in advanced for all the great job on QPULib!

@wimrijnders
Copy link
Contributor

@doleron Wow, your timing is perfect. I'm just lost for words.

I just launched today. Have a look at V3DLib, the spinoff of this project, with added VideoCore VI.

@doleron
Copy link

doleron commented Jan 16, 2021

@wimrijnders there are no words to say how it is amazing! Looking forward to check it there! Cloning V3Dlib in 3... 2... 1...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants