Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add GPU to an existing VM instance Google Compute Engine

I have created an instance with only CPUs for Deep learning (cs231n) with Google Compute Engine. I have upgraded my account and my GPU quota is 1 now. However, following the documentation to add GPU to an existing instance did not work.
The documentation recommends editing the VM, however, after stopping the VM, there is no button/option to edit the VM instance.
I have seen answers on StackOverflow recommending the same as the documentation, it feels like the documentation is not aligned the interface.

I was wondering if anyone has been able to edit the VM and add GPUs to an existing VM instance?

like image 519
JolesS Avatar asked Jun 13 '26 22:06

JolesS


2 Answers

The current documentation is a bit out of date. There's no "Edit" button, user should simply click on a VM Instance name and then select "customize" as on this picture: enter image description here.

like image 99
Lukasz Tracewski Avatar answered Jun 17 '26 23:06

Lukasz Tracewski



My GPU Quota is 1 and I have an instance(1) with GPU already. When I wanted another instance(2) with GPU, I removed the GPU from instance 1 and tried to add to instance 2. But the add GPU button was grayed out and I was not allowed to add a GPU to it. But when I tried to add it to another instance it was possible. I tried creating a "Create SImilar " option which is a new feature to GCP, it still did not allow me to add a GPU. Even created a snapshot and tried to create a new instance but failed.


  • Finally found the reason, which is* only N1 typed machines are allowed to add GPUs.

like image 21
Gayal Kuruppu Avatar answered Jun 17 '26 23:06

Gayal Kuruppu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!