Skip to content

Commit 9a8a484

Browse files
committed
Remove support for nvidia driver capabilities
This chanage updates the device spec to allow for a driver OR capabilities to be specified. It also removes the NVIDIA capabilitied from the documentation of the gpus.capabilities field. Signed-off-by: Evan Lezar <[email protected]>
1 parent a0d3b94 commit 9a8a484

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

schema/compose-spec.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,17 @@
12261226
},
12271227
"additionalProperties": false,
12281228
"patternProperties": {"^x-": {}},
1229-
"required": [
1230-
"capabilities"
1229+
"oneOf": [
1230+
{
1231+
"required": [
1232+
"capabilities"
1233+
]
1234+
},
1235+
{
1236+
"required": [
1237+
"driver"
1238+
]
1239+
}
12311240
]
12321241
}
12331242
},
@@ -1247,7 +1256,7 @@
12471256
"properties": {
12481257
"capabilities": {
12491258
"$ref": "#/definitions/list_of_strings",
1250-
"description": "List of capabilities the GPU needs to have (e.g., 'compute', 'utility')."
1259+
"description": "List of capabilities the GPU needs to have."
12511260
},
12521261
"count": {
12531262
"type": ["string", "integer"],
@@ -1259,7 +1268,7 @@
12591268
},
12601269
"driver": {
12611270
"type": "string",
1262-
"description": "GPU driver to use (e.g., 'nvidia')."
1271+
"description": "GPU driver to use (e.g., 'nvidia'). If this is not specified any available driver with the 'gpu' capability will be selected."
12631272
},
12641273
"options": {
12651274
"$ref": "#/definitions/list_or_dict",

0 commit comments

Comments
 (0)