Skip to content

Commit e156610

Browse files
Merge branch 'socket' into 'master'
add topology field for nvidia device plugin See merge request nvidia/kubernetes/device-plugin!4
2 parents 030fadb + cc0aad8 commit e156610

File tree

603 files changed

+292915
-125057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

603 files changed

+292915
-125057
lines changed

Gopkg.lock

Lines changed: 55 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gopkg.toml example
22
#
3-
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
3+
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
44
# for detailed Gopkg.toml documentation.
55
#
66
# required = ["github.com/user/thing/cmd/thing"]
@@ -29,13 +29,21 @@
2929
branch = "master"
3030
name = "github.com/NVIDIA/gpu-monitoring-tools"
3131

32+
[[constraint]]
33+
name = "github.com/fsnotify/fsnotify"
34+
version = "1.4.7"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "golang.org/x/net"
39+
3240
[[constraint]]
3341
name = "google.golang.org/grpc"
34-
version = "1.7.5"
42+
version = "1.24.0"
3543

3644
[[constraint]]
3745
name = "k8s.io/kubernetes"
38-
version = "1.11.0"
46+
version = "1.16.0"
3947

4048
[prune]
4149
go-tests = true

nvidia.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ func getDevices() []*pluginapi.Device {
4343
devs = append(devs, &pluginapi.Device{
4444
ID: d.UUID,
4545
Health: pluginapi.Healthy,
46-
})
46+
Topology: &pluginapi.TopologyInfo{
47+
Nodes: []*pluginapi.NUMANode{
48+
&pluginapi.NUMANode{
49+
ID: int64(*(d.CPUAffinity)),
50+
},
51+
},
52+
}})
4753
}
4854

4955
return devs

0 commit comments

Comments
 (0)