Skip to content

[SYCL] Add code location data to XPTI trace in case of exception thrown #8101

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

Merged
merged 38 commits into from
Mar 9, 2023

Conversation

KseniyaTikhomirova
Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova commented Jan 25, 2023

Adds extra information about code location of command submission to exception message.
Now instrumented a few sycl::queue non-variadic methods which takes code location from parameter.
Also instrumented variadic parallel_for where code location is extracted from kernel info.

Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws January 25, 2023 15:40 — with GitHub Actions Inactive
@@ -959,9 +959,10 @@ class Framework {
// have 'nullptr' for both the Parent and Object only if UserData is
// provided and the trace_point_type is function_begin/function_end.
// This allows us to trace function calls without too much effort.
std::array<trace_point_type_t, 13> AllowedTypes = {
std::array<trace_point_type_t, 14> AllowedTypes = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

also to clarify with Vasanth if there was an idea that could block me on there changes.

@KseniyaTikhomirova
Copy link
Contributor Author

to run clang-format on all files. Some commits were uploaded skipping this step.

@@ -0,0 +1,8 @@
add_subdirectory(xptitest_subscriber)

add_definitions(-DXPTI_ENABLE_INSTRUMENTATION -gdwarf-4 -O0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws January 26, 2023 12:23 — with GitHub Actions Inactive
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 6, 2023 11:16 — with GitHub Actions Inactive
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 6, 2023 13:19 — with GitHub Actions Inactive
Copy link
Contributor

@tovinkere tovinkere left a comment

Choose a reason for hiding this comment

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

LGTM

@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 7, 2023 00:27 — with GitHub Actions Inactive
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 7, 2023 13:25 — with GitHub Actions Inactive
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Overall the runtime changes look good! Couple of small comments.

Could you please add a summary to the PR description?

@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 7, 2023 14:18 — with GitHub Actions Inactive
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 7, 2023 18:21 — with GitHub Actions Inactive
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 8, 2023 17:50 — with GitHub Actions Inactive
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 8, 2023 19:53 — with GitHub Actions Inactive
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 9, 2023 04:16 — with GitHub Actions Inactive
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 9, 2023 04:57 — with GitHub Actions Inactive
@bader
Copy link
Contributor

bader commented Mar 9, 2023

@KseniyaTikhomirova, please, address this comment from @steffenlarsen:

Could you please add a summary to the PR description?

I think you missed one suggestion from me - #8101 (comment). Do you mind making this change?

Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova
Copy link
Contributor Author

@KseniyaTikhomirova, please, address this comment from @steffenlarsen:

Could you please add a summary to the PR description?

I think you missed one suggestion from me - #8101 (comment). Do you mind making this change?

Hi, added description and fixed your comment. Thank you.

@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 9, 2023 12:43 — with GitHub Actions Inactive
@KseniyaTikhomirova KseniyaTikhomirova temporarily deployed to aws March 9, 2023 13:20 — with GitHub Actions Inactive
@bader bader merged commit f90e9d8 into intel:sycl Mar 9, 2023
@bader
Copy link
Contributor

bader commented Mar 9, 2023

@KseniyaTikhomirova, there are failures in post-commit. Please, address them ASAP. NOTE: there are a few different issues, please, read all logs. https://github.com/intel/llvm/actions/runs/4376461454

@KseniyaTikhomirova
Copy link
Contributor Author

@KseniyaTikhomirova, there are failures in post-commit. Please, address them ASAP. NOTE: there are a few different issues, please, read all logs. https://github.com/intel/llvm/actions/runs/4376461454

working on it, thanks

@KseniyaTikhomirova
Copy link
Contributor Author

#8598 waiting for CI checks

@bader
Copy link
Contributor

bader commented Mar 9, 2023

#8598 waiting for CI checks

Thanks. I updated PR title. Please, let me know if you have any comments.

@KseniyaTikhomirova
Copy link
Contributor Author

#8598 waiting for CI checks

Thanks. I updated PR title. Please, let me know if you have any comments.

All is perfect. Sorry and thanks a lot.

againull pushed a commit that referenced this pull request Mar 9, 2023
FreddyLeaf pushed a commit that referenced this pull request Mar 10, 2023
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.

6 participants