Skip to content

[SYCL][PTX][CUDA] Fixes debug info cloning for implicit global offset #2129

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

Conversation

steffenlarsen
Copy link
Contributor

The implicit global offset pass does not clone the debug information when cloning functions. This is fixed by inserting the new function before cloning so the parents of the clone and the original are the same, allowing the following call to CloneFunctionInto to also clone the debug information.

@bader
Copy link
Contributor

bader commented Jul 16, 2020

@steffenlarsen, can add a small regression test for this change?

Signed-off-by: Steffen Larsen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner July 16, 2020 16:19
@steffenlarsen steffenlarsen requested a review from againull July 16, 2020 16:19
@bader bader added the cuda CUDA back-end label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SYCL][CUDA] Link error will happen with '-g' compiling option
3 participants