diff --git a/website/source/docs/job-specification/resources.html.md b/website/source/docs/job-specification/resources.html.md
index f4733737b..1a7e2db1a 100644
--- a/website/source/docs/job-specification/resources.html.md
+++ b/website/source/docs/job-specification/resources.html.md
@@ -36,6 +36,10 @@ job "docs" {
static = 22
}
}
+
+ device "nvidia/gpu" {
+ count = 2
+ }
}
}
}
@@ -48,9 +52,12 @@ job "docs" {
- `memory` `(int: 300)` - Specifies the memory required in MB
-- `network` ([Network][]: ) - Specifies the network
+- `network` ([Network][]: <optional>) - Specifies the network
requirements, including static and dynamic port allocations.
+- `device` ([Device][]: <optional>) - Specifies the device
+ requirements. This may be repeated to request multiple device types.
+
## `resources` Examples
The following examples only show the `resources` stanzas. Remember that the
@@ -86,4 +93,18 @@ resources {
}
```
+### Devices
+
+This example shows a device constraints as specified in the [device][] stanza
+which require two nvidia GPUs to be made available:
+
+```hcl
+resources {
+ device "nvidia/gpu" {
+ count = 2
+ }
+}
+```
+
[network]: /docs/job-specification/network.html "Nomad network Job Specification"
+[device]: /docs/job-specification/device.html "Nomad device Job Specification"