Skip to content

Commit

Permalink
Support TPU v6e w/ gVisor.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 687514246
  • Loading branch information
milantracy authored and gvisor-bot committed Oct 19, 2024
1 parent 0b59173 commit 17edc72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/abi/tpu/tpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions runsc/cmd/chroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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*"))
Expand Down

0 comments on commit 17edc72

Please sign in to comment.