Commit 311e549
committed
Add --device-id flag to nvidia-ctk cdi generate command
This change allows device IDs to be specified when generating CDI specs using
the nvidia-ctk cdi generate CDI. The command now accepts a (repeatable) CLI
flag allowing device IDs to be specified. These can be indices or uuids.
The devices IDs can also be specified as a comma-separated list using the
NVIDIA_CTK_CDI_GENERATE_DEVICE_IDS environment variable.
Signed-off-by: Evan Lezar <elezar@nvidia.com>1 parent 4372ea6 commit 311e549
2 files changed
+37
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
243 | 252 | | |
244 | 253 | | |
245 | 254 | | |
| |||
381 | 390 | | |
382 | 391 | | |
383 | 392 | | |
384 | | - | |
| 393 | + | |
385 | 394 | | |
386 | 395 | | |
387 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
50 | 72 | | |
51 | 73 | | |
52 | 74 | | |
| |||
452 | 474 | | |
453 | 475 | | |
454 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
455 | 481 | | |
456 | 482 | | |
457 | 483 | | |
| |||
481 | 507 | | |
482 | 508 | | |
483 | 509 | | |
484 | | - | |
| 510 | + | |
485 | 511 | | |
486 | 512 | | |
487 | 513 | | |
| |||
0 commit comments