Skip to content

[SYCL] Rename helper functions to avoid collision #3665

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 2 commits into from
May 4, 2021

Conversation

vladimirlaz
Copy link
Contributor

Helper functions have the same names but different signatures to the
ones to be mapped to SPIR-V operations. That makes some backends
generate external calls for them which causes undefined reference
on JIT compilation. The problem is seen only when compiling with
-O0 or -O1 optimization options because when -O3 or -O2 are used
helper functions are inlined and definitions are removed from final
code eliminating the issue.

Helper functions have the same names but different signatures to the
ones to be mapped to SPIR-V operations. That makes some backends
generate external calls for them which causes undefined reference
on JIT compilation. The problem is seen only when compiling with
-O0 or -O1 optimization options because when -O3 or -O2 are used
helper functions are inlined and definitions are removed from final
code eliminating the issue.
@vladimirlaz vladimirlaz requested a review from a team as a code owner April 30, 2021 07:42
@vladimirlaz
Copy link
Contributor Author

@rbegam, @romanovvlad, could you please have a look?

@vladimirlaz vladimirlaz merged commit 9f2fd98 into intel:sycl May 4, 2021
@vladimirlaz vladimirlaz deleted the fix_spirv_ambiguity branch October 8, 2021 06:18
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.

2 participants