-
Notifications
You must be signed in to change notification settings - Fork 204
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
ffmpeg nvmpi usage from within a docker container #108
Comments
It should be possible, I would imagine, if you can figure out what resources to passthrough to the container Nvidia has data on using regular PCI-E cards for GPU acceleration in docker containers You would probably be better served by starting with the docker AI/ML accelerators on jetson, like something here: |
@grantthomas thx for poiting this out. What would be needed to copy the binaries themselves into the container? |
I think it'd depend on how you wanted to structure it. You could roll the binaries in, or do a volume, so long as the docker container has access to the files. Probably better practice to roll them in, but would be easier to update the bins without having to rebuild the docker container. I moved a pre-compiled binary along with the proper .so objects from one Jetson NX to another, and was able to get it to work after installing the so files globally. I don't think you need to do the full compliation, as long as you have the kernel modules available. I would assume you'd need to passthrough whatever nvidia suggests regarding the typical jetson platform GPU usage, but that's just a guess. Good luck, and please report back if/when you get it working, I'm sure you won't be the only one who's interested. |
Actually, on second though, rolling them in would probably the the only way to have it consistent since the .so file(s) need to be present and loaded at boot unless you want to bootstrap loading the modules for every container start. |
These are the devices needed to be passed to the container :
Or just pass the privileged flag if security is not a priority in your use case. |
Is it possible to use the binaries from within a docker container?
Anybody has a sample Dockerfile for this?
The text was updated successfully, but these errors were encountered: