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

Add flag ROC_SIGNAL_POOL_SIZE_PROFILE and update default value #71

Closed
wants to merge 1 commit into from

Conversation

preda
Copy link

@preda preda commented Mar 25, 2024

The change is two-fold:

The new default of 1000 has this rationale: it allows up to 4 queues to fit within the 4094 events provided by the kernel (with a little margin).

The change is two-fold:

- add a flag to configure the pool size used when profiling,
this allows to clearly configure the two values (profile vs. not-profile).

- change the size of the profile pool down from 4096 which was too large:
the kernel only provides 4094 events for DGPUs, *and* using two command-queues
in OpenCL results in the bug described here:
ROCm/ROCR-Runtime#186

The new default of 1000 has this rationale: it allows up to 4 queues to fit
within the 4094 events provided by the kernel (with a little margin).
@mangupta mangupta requested a review from saleelk March 25, 2024 15:55
@saleelk
Copy link
Contributor

saleelk commented Mar 25, 2024

Thanks for digging this up, I have an internal change that makes #signals not just for profiling but for everything to 64 per queue. That would fix your issue and also addresses the issue in ROCr, I would guess.

@preda
Copy link
Author

preda commented Mar 29, 2024

@saleelk thanks, this is the commit with the change BTW
c157bfb

@preda preda closed this Mar 29, 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