Creating vm's using GPU core instead of CPU

My Requirements is : Im running ubuntu VM in HyperV with 16cores and the application is docker My application consumes all 16 cores when peak usage, so If can I create VM with 8 cpu cores and 16 GPU Core?

Hello,

It is not possible to create a VM that directly uses GPU cores to function.
However, you are able to use GPU passthrough in HyperV (How to add video card in Hyper-V virtual machine? - Microsoft Q&A), which will allow access to the GPU from within the VM.
So, if the docker application runs on the VM which has access to the GPU, you are able to modify your docker run command to include this GPU, which might help.

I suggest approaching Microsoft with the same question since this is HyperV, they might be able to assist further.

Best Regards,
Jonathan.

1 Like