Support TPU v6e w/ gVisor.

PiperOrigin-RevId: 687514246
This commit is contained in:
Jing Chen
2024-10-18 20:43:34 -07:00
committed by gVisor bot
parent 0b59173cff
commit 17edc7260e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -44,6 +44,9 @@ const (
// TPUV5pDeviceID is the PCI device ID of TPU V5p hardware.
TPUV5pDeviceID = 0x0062
// TPUV6eDeviceID is the PCI device ID of TPU V6e hardware.
TPUV6eDeviceID = 0x006f
)
// TPUV4InterruptsMap maps BAR indices to valid register offsets.
+1
View File
@@ -146,6 +146,7 @@ func tpuProxyUpdateChroot(hostRoot, chroot string, spec *specs.Spec, conf *confi
}
allowedDeviceIDs[tpu.TPUV5pDeviceID] = struct{}{}
allowedDeviceIDs[tpu.TPUV5eDeviceID] = struct{}{}
allowedDeviceIDs[tpu.TPUV6eDeviceID] = struct{}{}
}
if len(allowedDeviceIDs) == 0 {
paths, err = filepath.Glob(path.Join(hostRoot, "dev/accel*"))