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

Running on Docker #118

Open
Dall127 opened this issue Oct 26, 2023 · 2 comments
Open

Running on Docker #118

Dall127 opened this issue Oct 26, 2023 · 2 comments

Comments

@Dall127
Copy link

Dall127 commented Oct 26, 2023

Is there a kind soul that has used this to get video acceleration on a docker image? I'm currently working on trying to get hardware acceleration for Obico's 3D printing machine learning model. Ive got a darknet build that supports opencl and specifically will run on the raspberry pi via this package, but every time I've tried to bring up the GPU, I've been getting CL_INVALID_CONTEXT. My best hypothesis is that I'm not passing through the correct devices in the docker image, or incorrectly configured settings on the raspberry pi (model 3a+) to bring up the gpu and make it accessible. Any help would be greatly appreciated!

@doe300
Copy link
Owner

doe300 commented Oct 26, 2023

VC4CL directly accesses hardware registers and memory-maps GPU memory, so I doubt it will run in any container.
But at least it will need access to (some of the) following:

  • /dev/vcsm-cma or /dev/vcsm
  • /dev/vcio
  • /dev/mem

@Dall127
Copy link
Author

Dall127 commented Oct 26, 2023

Thank you so much! I believe that docker has a mode called privileged that gives lower level access to the hardware, so I'll map those devices and set that flag and give it a try. I'll report back to this issue on the success of it. Thank you again!

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

2 participants