intel / intel-technology-enabling-for-openshift

This project enables Intel® platform technologies (SGX, QAT) and GPUs on Red Hat OpenShift Container Platform
https://intel.github.io/intel-technology-enabling-for-openshift/
Apache License 2.0
16 stars 9 forks source link

How to enable GPU SRIOV in KubeVirt pod? #102

Open SGShen opened 1 year ago

SGShen commented 1 year ago

There are use cases like Windows Cloud Gaming that may run in VM (KubeVirt). At the same time, vGPU (SRIOV) may be needed as well to support multiple instances of the workload.

Is there a BKM to enable GPU SRIOV in KubeVirt for Intel dGPU (Flex 140 or 170)?

tkatila commented 12 months ago

We don't currently have a way to configure SR-IOV via GPU plugin. That would have to be done manually unfortunately. When SR-IOV is configured, the gpu.intel.com/i915 resource could be leveraged in the KubeVirt's VirtualMachineInstance. Though, Intel GPU plugin considers all the GPUs as same. Meaning, if you have a mix of configurations (some with SR-IOV, some not) requesting an i915 resource could get you either one.

Proper SR-IOV support is coming later via DRA.