Before you create an instance with a GPU, select which boot disk image you want to use for the instance, and ensure that the appropriate GPU driver is installed.
To create an instance with one or more GPUs using the Google Cloud Platform Console,
-
Go to the VM instances page.
-
Click Create instance.
-
Select a zone where GPUs are available. See the list of available zones with GPUs.
-
In the Machine configuration section, select the machine type that you want to use for this instance. Alternatively, you can specify custom machine type settings if desired.
-
In the Machine configuration section, click CPU platform and GPU to see advanced machine type options and available GPUs.
-
Click GPUs to see the list of available GPUs.
-
Specify the GPU type and the number of GPUs that you need.
-
If necessary, adjust the machine type to accommodate your desired GPU settings. If you leave these settings as they are, the instance uses the predefined machine type that you specified before opening the machine type customization screen.
-
To configure your boot disk, in the Boot disk section, click Change.
-
In the OS images tab, choose an image.
-
Click Select to confirm your boot disk options.
-
Configure any other instance settings that you require. For example, you can change the Preemptibility settings to configure your instance as a preemptible instance. This reduces the cost of your instance and the attached GPUs.
-
At the bottom of the page, click Create to create the instance.
Install the GPU driver on your instance so that your system can use the device.