Skip to main content

A thin python wrapper for the nvToolsExt (NVTX) library, using pybind11

Project description

PyNVTX

A thin python wrapper for the nvToolsExt (NVTX) library, using pybind11. This wrapper is meant to be as thin as possible -- so only provides minimal support. Currently supported features are:

  1. NVTX markers: nvtxRangePushA and nvtxRangePop
  2. Function decorator: PyNVTX.wrap

NVTX Markers (nvtxRangePushA / nvtxRangePop)

import PyNVTX as nvtx

nvtx.RangePushA("Doing some work")

# code to time goes here

nvtx.RangePop()

Function Decorator

This will put RangePushA and RangePop the the beginning and and of the function call:

@nvtx.mark("test_function")
def test():
    # You code goes here

Example Code

To get you started, take a look at test/test-nvtx.py

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

PyNVTX-0.1.2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file PyNVTX-0.1.2.tar.gz.

File metadata

  • Download URL: PyNVTX-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for PyNVTX-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c3f1e856f94c3ba2d00e26cc427e2548c84f3b427eb6cff9d9f3faa7c7f4444d
MD5 b8eab1a954e665b85b16fae7181ac548
BLAKE2b-256 17aa678a7007be3244c01edfe820abdb085506853c3cd97679f93bcec274afd7

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