Skip to content

[sycl-post-link][NFC] Another portion of small refactorings #4807

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

mlychkov
Copy link
Contributor

  • Removed unused variable and unnecessary members of ImagePropSaveInfo struct
  • Several logical parts of functions are moved in a separate functions
  • Several variable definitions moved closer to their use
  • Aliasing is used to reduce variable names

Signed-off-by: Mikhail Lychkov [email protected]

* Removed unused variable and unnecessary members of ImagePropSaveInfo struct
* Several logical parts of functions are moved in a separate functions
* Several variable definitions moved closer to their use
* Aliasing is used to reduce variable names

Signed-off-by: Mikhail Lychkov <[email protected]>
if (HasIndirectlyCalledAssert)
continue;

HasAssertStatus HasAssert = hasAssertInFunctionCallGraph(&F);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at implementation of this method I think this is very inefficient approach to find kernels calling __devicelib_assert_fail. IMHO, bottom-up approach is way more efficient. I.e. start with __devicelib_assert_fail function declaration and travers users gathering kernels.
Current implementation goes over all functions in the module even if __devicelib_assert_fail not declared!
Please, consider refactoring this code to improve performance.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fully agree with the suggestion, @mlychkov, could you please create a tracker for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll create it.

Signed-off-by: Mikhail Lychkov <[email protected]>
@bader bader merged commit a5f2937 into intel:sycl Oct 26, 2021
@mlychkov mlychkov deleted the private/mlychkov/sycl_post_link_improvements branch January 12, 2022 12:23
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.

3 participants