Skip to content

Commit

Permalink
cuda and nvidia version added (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan-spheron authored Nov 7, 2024
1 parent 58d116a commit 202908e
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 29 deletions.
2 changes: 2 additions & 0 deletions docs/proto/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,8 @@
| `name` | [string](#string) | | |
| `resources` | [NodeResources](#akash.inventory.v1.NodeResources) | | |
| `capabilities` | [NodeCapabilities](#akash.inventory.v1.NodeCapabilities) | | |
| `cuda_version` | [string](#string) | | |
| `nvidia_driver_version` | [string](#string) | | |



Expand Down
2 changes: 2 additions & 0 deletions go/inventory/v1/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func (nd *Node) Dup() Node {
Name: nd.Name,
Resources: nd.Resources.Dup(),
Capabilities: nd.Capabilities.Dup(),
CudaVersion: nd.CudaVersion,
NvidiaDriverVersion: nd.NvidiaDriverVersion,
}

return res
Expand Down
165 changes: 136 additions & 29 deletions go/inventory/v1/node.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions proto/provider/akash/inventory/v1/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,18 @@ message Node {
(gogoproto.jsontag) = "capabilities",
(gogoproto.moretags) = "yaml:\"capabilities\""
];

string cuda_version = 4 [
(gogoproto.nullable) = true,
(gogoproto.customname) = "CudaVersion",
(gogoproto.jsontag) = "cuda_version",
(gogoproto.moretags) = "yaml:\"cuda_version\""
];

string nvidia_driver_version = 5 [
(gogoproto.nullable) = true,
(gogoproto.customname) = "NvidiaDriverVersion",
(gogoproto.jsontag) = "nvidia_driver_version",
(gogoproto.moretags) = "yaml:\"nvidia_driver_version\""
];
}

0 comments on commit 202908e

Please sign in to comment.