mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Support TPU v6e w/ gVisor.
PiperOrigin-RevId: 687514246
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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*"))
|
||||
|
||||
Reference in New Issue
Block a user