News for hackers. Stuff that matters.
Re:CoreOS is building a container runtime, Rocket by billconan on Monday December 01, 2014 @02:45PM (#8683229)
This may be a noob question,

I'm looking into using containers for ui applications. I need to access GPU within the application. is this doable with Rocket or Docker?

Also does Rocket have to be used with CoreOS?

Re:CoreOS is building a container runtime, Rocket by ozzyjohnson on Monday December 01, 2014 @05:29PM (#8684388)
Have a look at this container [1] I put together for accessing GPU instances on AWS via Docker. Runs various compute tasks including multiple containers against a single GPU without issue.

From the looks of your other comments in this tangent it might be exactly what you need or a starting point at least.

It's a base for these BOINC [2] and F@H [3] containers.

1: https://registry.hub.docker.com/u/ozzyjohnson/cuda/

2: https://registry.hub.docker.com/u/ozzyjohnson/boinc-gpu/

3: https://registry.hub.docker.com/u/ozzyjohnson/cuda-fah/

Re:CoreOS is building a container runtime, Rocket by billconan on Monday December 01, 2014 @06:15PM (#8684680)
Thank you very much! this is really useful information. Aside from cuda, I also want to make EGL/opengl work with docker, hopefully I can find examples for that.
Re:CoreOS is building a container runtime, Rocket by wmf on Monday December 01, 2014 @03:08PM (#8683409)
Re:CoreOS is building a container runtime, Rocket by billconan on Monday December 01, 2014 @04:33PM (#8683972)
thank you very much. I will take a look. but the fact that this is tied to Gnome worries me. I actually need a console application with gpu access.
Re:CoreOS is building a container runtime, Rocket by wmf on Monday December 01, 2014 @05:04PM (#8684195)
Ah, in that case Docker may be a better choice. You can (probably?) use volumes to expose /dev/drm and such into the container.
Re:CoreOS is building a container runtime, Rocket by pipeep on Monday December 01, 2014 @03:04PM (#8683388)
Certainly. The kernel can simply pass through the device, although you lose some of the security of containerization that way. There may be issues with multiple containers sharing the same GPU though.
Re:CoreOS is building a container runtime, Rocket by billconan on Monday December 01, 2014 @04:33PM (#8683976)
I indeed need multiple containers to share the same gpu. :(
Re:CoreOS is building a container runtime, Rocket by jambay on Monday December 01, 2014 @03:20PM (#8683490)
no, rocket does not require coreos, just linux, see: https://github.com/coreos/rocket#trying-out-rocket
Re:CoreOS is building a container runtime, Rocket by pron on Monday December 01, 2014 @02:51PM (#8683283)
I'm interested: why do you need a container for a UI application? It would be better for your users if it could run as a simple process.
Re:CoreOS is building a container runtime, Rocket by billconan on Monday December 01, 2014 @04:31PM (#8683956)
I actually need gpu, not the ui. I need it to do scientific computation. Video streaming service is another case. gpu has better video encoding capabilities.

I previously heard that docker has trouble loading device drivers.

Re:CoreOS is building a container runtime, Rocket by tedreed on Monday December 01, 2014 @04:45PM (#8684052)
Not the parent poster, but needing GPU isn't necessarily the same as having UI. You can use GPU for a variety of general purpose math (Example: mining bitcoins, or doing stuff like Folding@Home), or for offline rendering.
Re:CoreOS is building a container runtime, Rocket by billconan on Monday December 01, 2014 @06:17PM (#8684686)
yes, I understand offline rendering. I'm looking into egl off screen rendering. But due to historical reason, the current gpu drivers (NVIDIA) need x server.