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

only log MDAPI event profiling errors for kernel events #379

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

bashbaug
Copy link
Contributor

Description of Changes

With the current implementation in the GPU drivers MDAPI metrics are only included for kernels, and are not included for other event types, such as clEnqueueReadBuffer, clEnqueueWriteBuffer, etc. This causes distracting error messages to be printed because the calls to get MDAPI event profiling info for the other types of events is failing. This PR filters these events so the error messages are only printed for kernel events, where the failure is currently unexpected.

Testing Done

Tested with a MDAPI event based sampling enabled and a sample app that enqueues kernels and other commands. Observed that MDAPI metrics are collected for kernels and no errors are seen.

@bashbaug bashbaug merged commit 391607c into intel:main Sep 20, 2024
7 checks passed
@bashbaug bashbaug deleted the filter-mdapi-error-logging branch September 20, 2024 04:26
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