Skip to content

Commit

Permalink
os arch cudaversion nvidiaversion added (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan-spheron authored Oct 29, 2024
1 parent daba8c9 commit 58d116a
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 50 deletions.
4 changes: 4 additions & 0 deletions docs/proto/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,10 @@
| `volumes_mounted` | [ResourcePair](#akash.inventory.v1.ResourcePair) | | |
| `version` | [string](#string) | | |
| `bandwidth` | [string](#string) | | |
| `os` | [string](#string) | | |
| `arch` | [string](#string) | | |
| `cuda_version` | [string](#string) | | |
| `nvidia_driver_version` | [string](#string) | | |



Expand Down
14 changes: 9 additions & 5 deletions go/inventory/v1/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ type ResourcesMetric struct {
}

type NodeMetrics struct {
Name string `json:"name"`
Allocatable ResourcesMetric `json:"allocatable"`
Available ResourcesMetric `json:"available"`
Bandwidth string `json:"bandwidth,omitempty"`
Version string `json:"version,omitempty"`
Name string `json:"name"`
Allocatable ResourcesMetric `json:"allocatable"`
Available ResourcesMetric `json:"available"`
Bandwidth string `json:"bandwidth,omitempty"`
Version string `json:"version,omitempty"`
Os string `json:"os,omitempty"`
Arch string `json:"arch,omitempty"`
CudaVersion string `json:"cuda_version,omitempty"`
NvidiaDriverVersion string `json:"nvidia_driver_version,omitempty"`
}

type Metrics struct {
Expand Down
4 changes: 4 additions & 0 deletions go/inventory/v1/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ func (s *NodeResources) Dup() NodeResources {
VolumesMounted: s.VolumesMounted.Dup(),
Version: s.Version,
Bandwidth: s.Bandwidth,
Os: s.Os,
Arch: s.Arch,
CudaVersion: s.CudaVersion,
NvidiaDriverVersion: s.NvidiaDriverVersion,
}

return res
Expand Down
303 changes: 258 additions & 45 deletions go/inventory/v1/resources.pb.go

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

Loading

0 comments on commit 58d116a

Please sign in to comment.