UCL-INGI / INGInious

INGInious is a secure and automated exercises assessment platform using your own tests, also providing a pluggable interface with your existing LMS.
http://www.inginious.org
Other
207 stars 140 forks source link

[agent_docker] add support for nvidia runtime #915

Closed anthonygego closed 1 year ago

anthonygego commented 1 year ago

This PRs adds support for the NVIDIA runtime to leverage GPU usage. This implementation as a seperate runtime was prefered over a GPU option in the environment config for the following reasons :

An additional label is introduced to restrict usage of a Docker image to the nvidia environment type only.

As mentioned in the provided documentation, the nvidia/cuda:x.y.z-base-rockylinux8 works in replacement of rockylinux:8 as base for the ingi/inginious-c-base container. This was not included in this PR yet as it would require some practical usage tests to evaluate how accurate it would be.