Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: add support for int and float payloads #90

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Conversation

jfaust
Copy link

@jfaust jfaust commented Feb 15, 2024

As referenced in #89

In addition to the basic unit tests, I've confirmed that nsys and Nsight systems see the payloads properly via a simple script:

import nvtx
import time

for i in range(0, 100):
    with nvtx.annotate('loop', payload=i):
        nvtx.mark('intvalue', payload=i)
        nvtx.mark('floatvalue', payload=float(i))
        time.sleep(0.01)

image
image
image

@jfaust jfaust mentioned this pull request Feb 15, 2024
Copy link
Contributor

@shwina shwina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@shwina shwina merged commit 728b675 into NVIDIA:dev Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants