change example job a bit

This commit is contained in:
Alex Dadgar 2019-01-23 10:56:22 -08:00
parent 48dfbbcad9
commit 3ecc68c6a6

View file

@ -224,7 +224,15 @@ job "gpu-test" {
}
resources {
device "nvidia/gpu/Tesla K80" {}
device "nvidia/gpu" {
count = 1
# Add an affinity for a particular model
affinity {
attribute = "${device.model}"
value = "Tesla K80"
}
}
}
}
}