Skip to main content

XProf Profiler Plugin

Project description

XProf (+ Tensorboard Profiler Plugin)

XProf includes a suite of tools for JAX, TensorFlow, and PyTorch/XLA. These tools help you understand, debug and optimize programs to run on CPUs, GPUs and TPUs.

XProf offers a number of tools to analyse and visualize the performance of your model across multiple devices. Some of the tools include:

  • Overview: A high-level overview of the performance of your model. This is an aggregated overview for your host and all devices. It includes:
    • Performance summary and breakdown of step times.
    • A graph of individual step times.
    • A table of the top 10 most expensive operations.
  • Trace Viewer: Displays a timeline of the execution of your model that shows:
    • The duration of each op.
    • Which part of the system (host or device) executed an op.
    • The communication between devices.
  • Memory Profile Viewer: Monitors the memory usage of your model.
  • Graph Viewer: A visualization of the graph structure of HLOs of your model.

Demo

First time user? Come and check out this Colab Demo.

Prerequisites

  • tensorboard-plugin-profile >= 2.19.0
  • (optional) TensorBoard >= 2.19.0

Note: XProf requires access to the Internet to load the Google Chart library. Some charts and tables may be missing if you run TensorBoard entirely offline on your local machine, behind a corporate firewall, or in a datacenter.

To profile on a single GPU system, the following NVIDIA software must be installed on your system:

  1. NVIDIA GPU drivers and CUDA Toolkit:

    • CUDA 12.5 requires 525.60.13 and higher.
  2. Ensure that CUPTI 10.1 exists on the path.

    $ /sbin/ldconfig -N -v $(sed 's/:/ /g' <<< $LD_LIBRARY_PATH) | grep libcupti
    

    If you don't see libcupti.so.12.5 on the path, prepend its installation directory to the $LD_LIBRARY_PATH environmental variable:

    $ export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
    

    Run the ldconfig command above again to verify that the CUPTI 12.5 library is found.

    If this doesn't work, try:

    $ sudo apt-get install libcupti-dev
    

To profile a system with multiple GPUs, see this guide for details.

To profile multi-worker GPU configurations, profile individual workers independently.

To profile cloud TPUs, you must have access to Google Cloud TPUs.

Quick Start

In order to get the latest version of the profiler plugin, you can install the nightly package.

To install the nightly version of profiler:

$ pip uninstall tensorboard-plugin-profile
$ pip install tbp-nightly

Without TensorBoard:

$ xprof --logdir=profiler/demo --port=6006

With TensorBoard:

$ tensorboard --logdir=profiler/demo

If you are behind a corporate firewall, you may need to include the --bind_all tensorboard flag.

Go to localhost:6006/#profile of your browser, you should now see the demo overview page show up. Congratulations! You're now ready to capture a profile.

Next Steps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xprof-2.19.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xprof-2.19.6-cp312-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.12Windows x86-64

xprof-2.19.6-cp312-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.12

xprof-2.19.6-cp312-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

xprof-2.19.6-cp311-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.11Windows x86-64

xprof-2.19.6-cp311-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.11

xprof-2.19.6-cp311-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

xprof-2.19.6-cp310-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.10Windows x86-64

xprof-2.19.6-cp310-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.10

xprof-2.19.6-cp310-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

xprof-2.19.6-cp39-none-win_amd64.whl (3.7 kB view details)

Uploaded CPython 3.9Windows x86-64

xprof-2.19.6-cp39-none-manylinux2014_x86_64.whl (3.7 kB view details)

Uploaded CPython 3.9

xprof-2.19.6-cp39-none-macosx_12_0_arm64.whl (3.7 kB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

Details for the file xprof-2.19.6.tar.gz.

File metadata

  • Download URL: xprof-2.19.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.6.tar.gz
Algorithm Hash digest
SHA256 c2a16fcfe2c6dc58393155ee52c002b30b6ef1f380a704074673c84b7d411175
MD5 ef40d36f86b31b3ffe417083db8a34d0
BLAKE2b-256 c8e96301cbf5fc93b1d62ba93abcfa2427d68772b0d2a96fc04cabc4f95e4f5c

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp312-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.19.6-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.6-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 598533dc2ac98debaf8afd92a0fc205945cff1d94fdabb81853fda1695aaa80d
MD5 ac72d29700083559a2377f3ee99ef20a
BLAKE2b-256 f68c89446efdc5cb68bdebcdf922c0eb4a8e549242563469369bdecc4d56c4c1

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp312-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a00c36213d393cb752d36624e03d2da39bdb23edd75612829b5c745c8fb6e8be
MD5 9e523428b01d0fbb834fb91965e0bab8
BLAKE2b-256 981c4febb00e6b0bf1805bae44d8df19b10c74df3800b85d7038582a2305ff80

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp312-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp312-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4540a9a9f39413f82433bd56dac05689630a9ab3962c4680f3f69ca2852b44b4
MD5 92d30b8622100e198b549044163aff3b
BLAKE2b-256 b3639dfda6336787a4fc51997e289c85dfe5ad1404063111602aef94f832a5c3

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp311-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.19.6-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.6-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 b4e16e2698ac7ec322764dbd02494b8115bbf33c74f7d1a1d728f265910b0d1a
MD5 d734ddcd02d3595d8270c82e859f2399
BLAKE2b-256 8a742182440bce3c62481b8585ccddbd15484a968466ca80908db957df340916

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp311-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57a143bcd38cd02bb281fb37b8eab448667061c702206b1756c9dd9e4877a241
MD5 0842f4a9047863d54a22ad93eb058006
BLAKE2b-256 f969861a57fb5ef587d3d479ac8271706d3bf1253bc6ea43cbc696dc7f6c2b79

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp311-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp311-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a200b992cf69d3df040e8069e6578f0536bc2719dbdb6237218ad5b2b599a39a
MD5 303ad3cfae0fbce75ea08c0aa38e3d5f
BLAKE2b-256 1252fb2bfff69126768a2be835d61ff31a37fa2f787cd2044571b11d26353ac4

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp310-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.19.6-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.6-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 e1bd4b6b56fec87e80d4d53098cc1a6f58bd5e721141e01fc38e8508345743f2
MD5 27546bdfc72af30a66338f3788d5590e
BLAKE2b-256 ab9c72a5c10389183ba0925c4e21fb7f6d2c139ea684070c953d27b54448719d

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp310-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fec8215f2cf6c1b9430b6941ca4a42fe644c9449743e9e9c22539f386e410d3
MD5 83c0ac53aeb0559e376bcc3a74ffe33e
BLAKE2b-256 2b57e34f3ac62b641b05b89d51c160b9b9128a59c7a072dd34a58bcec64e6d58

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp310-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp310-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 76d451d6703c74071448e56b066eab45411098d3304fa58ecfea262445c2f149
MD5 a70b2af1b542cce0b1fcf5d26bc23e6a
BLAKE2b-256 b2e0b4278d6ee047d11ef0902b390af504851c2a6eb951318f5b4d409123342d

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp39-none-win_amd64.whl.

File metadata

  • Download URL: xprof-2.19.6-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xprof-2.19.6-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 18fc628c4d377685bb3b81ea47c31c5c5414cb4539665c15882f8d6998bc7c06
MD5 dd26407ab4200c6a05b8f8df93adba0e
BLAKE2b-256 5563c4bff3b14654684d5775ccb21e19125520534b47f52393ece7f6f5056721

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp39-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 039b1ad91b33aba466e6e4d05ce94244d8045dc587dc208d7c83a84b93804aa9
MD5 39771f7f5784b4538a22da7c962e8db5
BLAKE2b-256 6596b8a3d5e6e5c797185f773fac0ea70909dc577d8dd2467efe328f853f4049

See more details on using hashes here.

File details

Details for the file xprof-2.19.6-cp39-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for xprof-2.19.6-cp39-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 85adfeed36af22fc3a0a1b830686451515b6026ddc8005350b7ee8a9aa27cf95
MD5 b02ed74bc3a51341b29ed7c2a06f70f0
BLAKE2b-256 54fb37deedb4452875a69e31036e13f3948b49f4e2bfd85026c663c110355c4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page