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

[EXP][CMDBUF] Add support for recovering CommandBuffer profiling information #1035

Merged
merged 5 commits into from
Jan 11, 2024

Conversation

mfrancepillois
Copy link
Contributor

@mfrancepillois mfrancepillois commented Nov 3, 2023

Copy command-buffer event timestamps into a dedicated USM memory region.
Get the command-buffer start and end timestamps from this memory.
Move events reset from the middle command list to the first to allow the copy of the profiling info in the last command list and relax command list order.

@mfrancepillois
Copy link
Contributor Author

Linked DPC++ PR: intel/llvm#11324

@mfrancepillois mfrancepillois force-pushed the cmd-buffer-profiling-l0 branch from 7cf777a to 4808c63 Compare November 6, 2023 17:10
source/adapters/level_zero/command_buffer.cpp Outdated Show resolved Hide resolved
source/adapters/level_zero/command_buffer.cpp Show resolved Hide resolved
source/adapters/level_zero/event.cpp Outdated Show resolved Hide resolved
@mfrancepillois mfrancepillois changed the title [EXP][CMDBUF] Add extra event to get CommandBuffer start time [EXP][CMDBUF] Add support for recovering CommandBuffer profiling information Nov 13, 2023
@mfrancepillois mfrancepillois marked this pull request as ready for review November 22, 2023 15:29
@mfrancepillois mfrancepillois requested review from a team as code owners November 22, 2023 15:29
@EwanC EwanC requested a review from jandres742 November 28, 2023 10:44
@EwanC
Copy link
Contributor

EwanC commented Nov 30, 2023

@jandres742 Could you take another look at this PR and see if the responses to your questions are satisfactory.

@fabiomestre fabiomestre changed the base branch from adapters to main December 5, 2023 16:51
@fabiomestre
Copy link
Contributor

I have updated the target branch of this PR from the adapters branch to the main branch.
Development in UR is moving back to main. The adapters branch will soon be deleted.

@EwanC
Copy link
Contributor

EwanC commented Dec 6, 2023

@jandres742 reminder that this PR is waiting on your review.

@EwanC EwanC added the v0.8.x Include in the v0.8.x release label Dec 6, 2023
@EwanC EwanC added ready to merge Added to PR's which are ready to merge and removed v0.8.x Include in the v0.8.x release labels Dec 7, 2023
Adds an extra event in the first command list associated to the CommandBuffer execution to obtain the start time of the graph execution.
Get the command-buffer start and end timestamps from this memory.
Move events reset from the middle command list to the first to allow the copy of the profiling info in the last command list and relax command list order.
@kbenzie kbenzie force-pushed the cmd-buffer-profiling-l0 branch from 465197a to 35b6a5e Compare January 9, 2024 11:23
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (12a67f5) 15.74% compared to head (35b6a5e) 15.73%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1035      +/-   ##
==========================================
- Coverage   15.74%   15.73%   -0.01%     
==========================================
  Files         223      223              
  Lines       31478    31477       -1     
  Branches     3558     3558              
==========================================
- Hits         4955     4954       -1     
  Misses      26472    26472              
  Partials       51       51              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants