Skip to content
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

Promote pointers passed via Kernarg to point to the global address space #145

Merged
merged 3 commits into from
May 18, 2018

Conversation

AlexVlx
Copy link

@AlexVlx AlexVlx commented May 13, 2018

This is applies a trivial optimisation which follows from the language invariants established by HC and HIP: since a pointer passed to a kernel can only point to the global address space, it is suboptimal to not expose that information to the BE. Note that the pass is quite minimalistic and does not attempt to walk down an indirection chain / a nested data structure - it only applies to direct arguments.

Copy link

@scchan scchan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@whchung whchung left a comment

Choose a reason for hiding this comment

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

LGTM

@whchung whchung merged commit fbbfcbe into amd-hcc May 18, 2018
@AlexVlx AlexVlx deleted the feature_pointer_kernarg_promotion branch April 23, 2019 11:41
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