We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 049e61e commit c321262Copy full SHA for c321262
runner/internal/shim/docker.go
@@ -151,6 +151,14 @@ func (d *DockerRunner) restoreStateFromContainers(ctx context.Context) error {
151
gpuIDs = append(gpuIDs, device.PathOnHost)
152
}
153
154
+ case host.GpuVendorTenstorrent:
155
+ for _, device := range containerFull.HostConfig.Resources.Devices {
156
+ if strings.HasPrefix(device.PathOnHost, "/dev/tenstorrent/") {
157
+ // Extract the device ID from the path
158
+ deviceID := strings.TrimPrefix(device.PathOnHost, "/dev/tenstorrent/")
159
+ gpuIDs = append(gpuIDs, deviceID)
160
+ }
161
162
case host.GpuVendorIntel:
163
for _, envVar := range containerFull.Config.Env {
164
if indices, found := strings.CutPrefix(envVar, "HABANA_VISIBLE_DEVICES="); found {
0 commit comments