Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@RElbers
Copy link

@RElbers RElbers commented Oct 12, 2025

The Roctracer has a limit on the max number of GPU events before it stops tracing. This limit was stored in a uint32_t variable maxBufferSize_. This limit can be changed using ROCTRACER_MAX_EVENTS, which is parsed as a signed int32_t. This means that there is still a hard limit on the number of GPU events at just over 2.1 billion (2^31 − 1). This may sound like an unreasonable number of events in a single trace, but I think users should at least be given the option to do so. And right now, it's impossible given the 32bit types.

This pull requests changes the relevant types to 64 bit integers. For extra context, the maxBufferSize_ is being compared to a size_t and logged here.

@meta-cla
Copy link

meta-cla bot commented Oct 12, 2025

Hi @RElbers!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

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.

1 participant