-
Notifications
You must be signed in to change notification settings - Fork 120
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 #1309
Open
mfrancepillois
wants to merge
17
commits into
oneapi-src:main
Choose a base branch
from
Bensuo:cmdbuf-profiling-sync-point
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
260e7e1
[EXP][CMDBUF] Support for Node Profiling
mfrancepillois 2353f0c
removes unused variable.
mfrancepillois b09de11
Merge branch 'main' into cmdbuf-profiling-sync-point
mfrancepillois 965695a
Fixes naming issue
mfrancepillois 27450f3
Removes const in casting
mfrancepillois 27bdbe2
Adds missing declarations
mfrancepillois cb295ca
Update scripts/core/exp-command-buffer.yml
mfrancepillois 7b67e78
Update scripts/core/exp-command-buffer.yml
mfrancepillois ced8cae
Adds generated files + updates variable names + format
mfrancepillois 7d89bae
Updates parameter names
mfrancepillois 5905073
typos
mfrancepillois b5535a3
Merge branch 'main' into cmdbuf-profiling-sync-point
mfrancepillois 306bd82
Updates generated files
mfrancepillois 82fcf63
Merge branch 'main' into cmdbuf-profiling-sync-point
mfrancepillois fdb228d
updates generated files
mfrancepillois c805e6d
Merge branch 'main' into cmdbuf-profiling-sync-point
mfrancepillois d448ab6
Merge branch 'main' into cmdbuf-profiling-sync-point
mfrancepillois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,6 +295,20 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetCommandBufferExpProcAddrTable( | |
return retVal; | ||
} | ||
|
||
UR_DLLEXPORT ur_result_t UR_APICALL urGetEventExpProcAddrTable( | ||
ur_api_version_t version, ///< [in] API version requested | ||
ur_event_exp_dditable_t | ||
*pDdiTable ///< [in,out] pointer to table of DDI function pointers | ||
) { | ||
auto retVal = validateProcInputs(version, pDdiTable); | ||
if (UR_RESULT_SUCCESS != retVal) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as the other case wrt the Yoda notation used for the comparsion. |
||
return retVal; | ||
} | ||
pDdiTable->pfnGetSyncPointProfilingInfoExp = | ||
urEventGetSyncPointProfilingInfoExp; | ||
return retVal; | ||
} | ||
|
||
UR_DLLEXPORT ur_result_t UR_APICALL urGetUsmP2PExpProcAddrTable( | ||
ur_api_version_t version, ur_usm_p2p_exp_dditable_t *pDdiTable) { | ||
auto retVal = validateProcInputs(version, pDdiTable); | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Prefer regular
lhs_val == const_rhs_val
, i.e. retVal != UR_RESULT_SUCCESS over the Yoda notation, for readability reasons. This is not a blocker.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little confused by your comments (this one and following), because all the conditions in these files use Yoda notation.