1
1
# Intel GPU NFD hook
2
2
3
+ Table of Contents
4
+
5
+ * [ Introduction] ( #introduction )
6
+ * [ GPU memory] ( #gpu-memory )
7
+ * [ Default labels] ( #default-labels )
8
+ * [ PCI-groups (optional)] ( #pci-groups-optional )
9
+ * [ Capability labels (optional)] ( #capability-labels-optional )
10
+ * [ Limitations] ( #limitations )
11
+
12
+ ## Introduction
13
+
3
14
This is the [ Node Feature Discovery] ( https://github.com/kubernetes-sigs/node-feature-discovery )
4
- binary hook implementation for the Intel GPUs. The intel-gpu-initcontainer which
5
- is built among other images can be placed as part of the gpu-plugin deployment,
6
- so that it copies this hook to the host system only in those hosts, in which also
7
- gpu-plugin is deployed.
15
+ binary hook implementation for the Intel GPUs. The intel-gpu-initcontainer (which
16
+ is built with the other images) can be used as part of the gpu-plugin deployment
17
+ to copy hook to the host systems on which gpu-plugin itself is deployed.
8
18
9
19
When NFD worker runs this hook, it will add a number of labels to the nodes,
10
20
which can be used for example to deploy services to nodes with specific GPU
@@ -15,7 +25,7 @@ In the NFD deployment, the hook requires `/host-sys` -folder to have the host `/
15
25
16
26
## GPU memory
17
27
18
- GPU memory amount is read from sysfs gt/gt* files and turned into a label.
28
+ GPU memory amount is read from sysfs ` gt/gt* ` files and turned into a label.
19
29
There are two supported environment variables named ` GPU_MEMORY_OVERRIDE ` and
20
30
` GPU_MEMORY_RESERVED ` . Both are supposed to hold numeric byte amounts. For systems with
21
31
older kernel drivers or GPUs which do not support reading the GPU memory
@@ -65,14 +75,14 @@ If the value of the `pci-groups` label would not fit into the 63 character lengt
65
75
Capability labels are created from information found inside debugfs, and therefore
66
76
unfortunately require running the NFD worker as root. Due to coming from debugfs,
67
77
which is not guaranteed to be stable, these are not guaranteed to be stable either.
68
- If you don't need these, simply do not run NFD worker as root, that is also more secure.
78
+ If you do not need these, simply do not run NFD worker as root, that is also more secure.
69
79
Depending on your kernel driver, running the NFD hook as root may introduce following labels:
70
80
71
81
name | type | description|
72
82
-----|------|------|
73
83
|` gpu.intel.com/platform_gen ` | string | GPU platform generation name, typically an integer. Deprecated.
74
- |` gpu.intel.com/media_version ` | string | GPU platform Media pipeline generation name, typically a number.
75
- |` gpu.intel.com/graphics_version ` | string | GPU platform graphics/compute pipeline generation name, typically a number.
84
+ |` gpu.intel.com/media_version ` | string | GPU platform Media pipeline generation name, typically a number. Deprecated.
85
+ |` gpu.intel.com/graphics_version ` | string | GPU platform graphics/compute pipeline generation name, typically a number. Deprecated.
76
86
|` gpu.intel.com/platform_<PLATFORM_NAME>.count ` | number | GPU count for the named platform.
77
87
|` gpu.intel.com/platform_<PLATFORM_NAME>.tiles ` | number | GPU tile count in the GPUs of the named platform.
78
88
|` gpu.intel.com/platform_<PLATFORM_NAME>.present ` | string | "true" for indicating the presense of the GPU platform.
0 commit comments