Adds a new xla_client.Traceback API that can collect Python tracebacks cheaply (~2us). This is several orders of magnitude cheaper than using the Python `inspect.stack` API. Add a facility to attach a traceback to every buffer and executable object describing its creation context. To avoid paying a runtime cost when not debugging, tracebacks collection is optional and disabled by default. PiperOrigin-RevId: 314793876 Change-Id: Ie5f509364065739c1da4d1a8a729c4c6f56e2d03 |
||
---|---|---|
.. | ||
client | ||
platform/external | ||
BUILD | ||
direct_tpu_driver.cc | ||
event_id.h | ||
grpc_tpu_driver.cc | ||
grpc_tpu_driver.h | ||
README.md | ||
recording_tpu_driver.cc | ||
tpu_driver.cc | ||
tpu_driver.h | ||
tpu_driver.proto | ||
tpu_service.proto |
TPU Driver API
This repository contains the TPU driver API and network (gRPC) transport implementation for high-performance access to TPU hardware.
Building
Bazel is used to build the driver library and tests. Remote tests will require access to a Cloud TPU.
Fetching Bazel
Download the latest copy of Bazel from https://github.com/bazelbuild/bazel/releases.
Building
bazel build ...
Testing
bazel test ...