Skip to content

Commit

Permalink
Merge branch 'socket' into 'master'
Browse files Browse the repository at this point in the history
add topology field for nvidia device plugin

See merge request nvidia/kubernetes/device-plugin!4
  • Loading branch information
RenaudWasTaken committed Oct 3, 2019
2 parents 030fadb + cc0aad8 commit e156610
Show file tree
Hide file tree
Showing 603 changed files with 292,915 additions and 125,057 deletions.
80 changes: 55 additions & 25 deletions Gopkg.lock

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

14 changes: 11 additions & 3 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
Expand Down Expand Up @@ -29,13 +29,21 @@
branch = "master"
name = "github.com/NVIDIA/gpu-monitoring-tools"

[[constraint]]
name = "github.com/fsnotify/fsnotify"
version = "1.4.7"

[[constraint]]
branch = "master"
name = "golang.org/x/net"

[[constraint]]
name = "google.golang.org/grpc"
version = "1.7.5"
version = "1.24.0"

[[constraint]]
name = "k8s.io/kubernetes"
version = "1.11.0"
version = "1.16.0"

[prune]
go-tests = true
Expand Down
8 changes: 7 additions & 1 deletion nvidia.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ func getDevices() []*pluginapi.Device {
devs = append(devs, &pluginapi.Device{
ID: d.UUID,
Health: pluginapi.Healthy,
})
Topology: &pluginapi.TopologyInfo{
Nodes: []*pluginapi.NUMANode{
&pluginapi.NUMANode{
ID: int64(*(d.CPUAffinity)),
},
},
}})
}

return devs
Expand Down

0 comments on commit e156610

Please sign in to comment.