Enable Mthreads GPU sharing
Introduction
HAMi now supports mthreads.com/vgpu by implementing most device-sharing features as NVIDIA GPUs, including:
GPU sharing: Each task can allocate a portion of GPU instead of a whole GPU card, thus GPU can be shared among multiple tasks.
Device Memory Control: GPUs can be allocated with a specific device memory size on certain types (e.g., MTT S4000), with hard limits enforced to prevent exceeding the allocation.
Device Core Control: GPUs can be allocated with limited compute cores on certain types (e.g., MTT S4000), with hard limits enforced to prevent exceeding the allocation.
Important Notes
-
Device sharing for multi-cards is not supported.
-
Only one Mthreads device can be shared in a pod (even if there are multiple containers).
-
Support allocating exclusive Mthreads GPU by specifying mthreads.com/vgpu only.
-
These features are tested on MTT S4000