Skip to content

Commit

Permalink
Force cgroupfs in TensorDock
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor-S committed Oct 30, 2023
1 parent 3bb54a4 commit ab7c27a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/dstack/_internal/core/backends/tensordock/compute.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from typing import List, Optional

import requests
Expand Down Expand Up @@ -73,6 +74,22 @@ def run_job(
"runcmd": [
["sh", "-c", " && ".join(commands)],
],
"write_files": [
{
"path": "/etc/docker/daemon.json",
"content": json.dumps(
{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": [],
}
},
"exec-opts": ["native.cgroupdriver=cgroupfs"],
}
),
}
],
},
)
except requests.HTTPError:
Expand Down

0 comments on commit ab7c27a

Please sign in to comment.