Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.46 KB

File metadata and controls

29 lines (20 loc) · 1.46 KB

GPU Host Requirement

This has now been implemented:

Below is the original proposal.

Goal

This proposal adds GPU support to the existing host requirements properties.

Proposal

We propose to add a new gpu property to the hostRequirements object in the devcontainer.json schema. The property can be a boolean value, the string optional or an object:

(Additional row for the existing table in the spec.)

Property Type Description
hostRequirements.gpu 🏷️ boolean | 'optional' Indicates whether or not a GPU is required. A value 'optional' indicates that might be used if available. The object is described in the table below. The default is false. For example: "hostRequirements": "optional"

The object value can have the following properties:

Property Type Description
hostRequirements.gpu.cores 🏷️ integer Indicates the minimum required number of cores. For example: "hostRequirements": { "gpu": {"cores": 2} }
hostRequirements.gpu.memory 🏷️ string A string indicating minimum memory requirements with a tb, gb, mb, or kb suffix. For example, "hostRequirements": {"memory": "4gb"}