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] Support for Node Profiling #5

Closed
wants to merge 15 commits into from

Conversation

mfrancepillois
Copy link

@mfrancepillois mfrancepillois commented Jan 25, 2024

  • Adds a new entry point urEventGetSyncPointProfilingInfoExp. This function queries the profiling information of a sync-point. It takes the handle of the event returned from the graph submission and the sync-point associated with the node from which we want to obtain the profiling information.
  • Implements node profiling support

@mfrancepillois
Copy link
Author

Linked DPC++ PR : reble/llvm#353

scripts/core/exp-command-buffer.yml Outdated Show resolved Hide resolved
scripts/core/exp-command-buffer.yml Outdated Show resolved Hide resolved
- type: size_t*
name: pPropSizeRet
desc: "[out][optional] pointer to the actual size in bytes returned in propValue"
returns:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could have an error $X_RESULT_ERROR_INVALID_COMMAND_BUFFER_SYNC_POINT_EXP if syncPoint doesn't correspond to a graph node in event.

Copy link
Author

Choose a reason for hiding this comment

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

This error has been added.

Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks, could have a sub-bullet point describing when this error is returned

scripts/core/EXP-COMMAND-BUFFER.rst Show resolved Hide resolved
source/adapters/level_zero/command_buffer.cpp Outdated Show resolved Hide resolved
source/adapters/level_zero/command_buffer.cpp Outdated Show resolved Hide resolved
// Get SyncPoint profiling information
${x}_event_handle_t event;

${x}CommandBufferEnqueueExp(hCommandBuffer, hQueue, 0, nullptr,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to call ${x}CommandBufferFinalizeExp before this

- type: size_t*
name: pPropSizeRet
desc: "[out][optional] pointer to the actual size in bytes returned in propValue"
returns:
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks, could have a sub-bullet point describing when this error is returned

@mfrancepillois
Copy link
Author

UR Upstream PR: oneapi-src#1309

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.

4 participants