Skip to content

Commit

Permalink
gpu support
Browse files Browse the repository at this point in the history
  • Loading branch information
ironicbadger committed Mar 18, 2024
1 parent 187bbd2 commit 29bfb91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ services:
resources:
reservations:
devices:
- driver: nvidia
count: {{ container.deploy.resources.reservations.devices.driver.count | default("1") }}
capabilities: [gpu]
- driver: nvidia
count: {{ container.deploy.resources.reservations.devices.driver.count | default("1") }}
capabilities: [gpu]
{% endif %}
{% if container.restart is defined %}
restart: {{ container.restart }}
Expand Down

0 comments on commit 29bfb91

Please sign in to comment.