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 xprof
$ pip install xprof-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.20.4.tar.gz (6.0 MB view details)

Uploaded Source

Built Distributions

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

xprof-2.20.4-cp312-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.12Windows x86-64

xprof-2.20.4-cp312-none-manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.12

xprof-2.20.4-cp312-none-macosx_12_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

xprof-2.20.4-cp311-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.11Windows x86-64

xprof-2.20.4-cp311-none-manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.11

xprof-2.20.4-cp311-none-macosx_12_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

xprof-2.20.4-cp310-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.10Windows x86-64

xprof-2.20.4-cp310-none-manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.10

xprof-2.20.4-cp310-none-macosx_12_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

xprof-2.20.4-cp39-none-win_amd64.whl (10.6 MB view details)

Uploaded CPython 3.9Windows x86-64

File details

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

File metadata

  • Download URL: xprof-2.20.4.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.4.tar.gz
Algorithm Hash digest
SHA256 f6699224785cdc711a7dad373d2466a200e91be2c493048be81837de501491eb
MD5 bcba4e8f7354532cf1a0badf017f3e86
BLAKE2b-256 cd15af69a67eda5397ec54c5404589b7c846a96a26794a1b1fef8a4e0f1dc88a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.20.4-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.4-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 0e1064ccb45a824477d520abe837a6e46d6b06be571d0032937c34f59a932436
MD5 0a78e50ad3957fdc32c96ad22bffac2b
BLAKE2b-256 e033ffe8a6d7335701578d1bc38c675067af6e0c431d7a9f9d9049f544b070bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.20.4-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 97c76f1dfff3a37d6f2d2b86530e4cf37f113bbf3e7acb12a400b4fa1f60d2fd
MD5 287c2bc32a5b3d9e813dab49bf3b456e
BLAKE2b-256 70bf14ad6be9c29c28d7c0479b2b3a7ded298a42ddeecf1f1c7329081b609717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.20.4-cp312-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 11eef62b90660bbf97452f010000539e21d11c61b9a69619291ae818bcc2e0a4
MD5 4a3f82330dd510ab1246fd79f8c479ac
BLAKE2b-256 bdce2a4ddd81483104767398bf8037cbf48a818c2ed84a0351033981cd8257d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.20.4-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.4-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 84e1e2b6ef4284a14d347044fcf6d9e72963a93d7c7d95ea1bca087d59b4686d
MD5 49bb3cf0be3ad290a76a4535620a69c3
BLAKE2b-256 825ca77b07380db209fe444a45d75c64c4271d7198d868fadcedecd690fa29bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.20.4-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 50fe477fa7905f0eb38b75d30d1cb1fb8d0bba47b19b08056cb6baffd2d5a979
MD5 8c91332497c90354d79c4e95c0ff3944
BLAKE2b-256 160387cb881b758a9e2db788bb828f8d71729bbd2eab5744d7645737ec63c11d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.20.4-cp311-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 47b46127cdd8ccc9304152d3c62324ff6b56776c223473e3f56d0e2d02fd40ac
MD5 c6dd7697ac614a03c9f8664dc2dd8576
BLAKE2b-256 991c37eb59f31c916dfa801e91ae80629648314ee095c99c0cd1ef6b9165c003

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.20.4-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.4-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 c330abb96b52c3a68cceac2b2097266de423402ec28cc3333e04cd9c20a1d849
MD5 ad72829beaa73f847f817166e42649da
BLAKE2b-256 f54c210ba1791a68f25b29612235fe005829094ff0b5f63f00f02c3e85c1351d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.20.4-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 50c2edb88dc34afa1234069a98f05b2289d871b3b22fae9d9ae7c44e306b11d2
MD5 8f700af320e01db8209ed7daee21eced
BLAKE2b-256 eebcb7cb4584d68ec0ec72c6a273abd8a9c70bfb45a18ddaac8a2078e75ff24a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xprof-2.20.4-cp310-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 8526b2de16d593dee16f6e648d0b708cce48439c4042ece944fe082fa76dbb07
MD5 42fe60dd7d10e2ee5de9be8daf5a4f60
BLAKE2b-256 e70c7081869563eb4b1420257f1cb7a8f04c64e200d235a4a5407dd679014bbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprof-2.20.4-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for xprof-2.20.4-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 b9129a03a350aa14d823d3eea364ffcd89ae16a38dc86bb1f7451ceb5ecd678f
MD5 e683867be2f2c884e820e326ff0092f9
BLAKE2b-256 d538e51f2159a4b265eea9fa5adfeeb1d5a09f250407c89f00da15ac23b51a6d

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