-
Notifications
You must be signed in to change notification settings - Fork 788
[HIP] Changes for device_globals and enable tests #12165
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! I'm glad to see the program-metadata approach not being too much of a pain to include into the HIP backend. Thank you, @hdelan !
I have a question. Does hipcc see a global symbol by making visibility of symbols ? Thanks. |
Hi @jinz2014 it seems that HIPCC gives device globals |
update the tag and we're good to go @hdelan |
Thanks @aarongreig ! Have updated |
ah might have been too quick on the draw from #12381 merging you'll need to resolve the conflict |
Yep just resolved. Will need to wait for pipeline I imagine |
aa1be5a
to
e8bf853
Compare
@intel/dpcpp-clang-driver-reviewers please review |
@steffenlarsen we are blocked here awaiting @intel/dpcpp-clang-driver-reviewers . Quite a small group and it seems they are off atm. What should we do here? |
I believe they should be back today. Tag @mdtoguchi. If I am wrong, I think we can merge and allow for a post-commit review if needed, though the driver changes don't seem so intrusive to me. Let's give it another day though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Driver changes are OK - could you add some LIT testing to verify the additional option passing to sycl-post-link
and compile step?
Add a test to check that -fvisibility=hidden is not used for SYCL HIP compilation, and also add test that program metadata is emitted for SYCL HIP
Thanks @mdtoguchi have added a test for driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
@intel/llvm-gatekeepers please merge |
Enable
device_global
for AMDGPU. Related to oneapi-src/unified-runtime#1186 .In order for
hipModuleGetGlobal
to see a global symbol we need to not make the visibility of the symbol hidden. Perhaps changing this as a default is not always a good idea. Could also do this in the SYCL headers using an attribute to specify the visibility of thedevice_global
var