-
Notifications
You must be signed in to change notification settings - Fork 792
[SYCL] Add generation of sycl-module-id attribute for kernels #694
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
[SYCL] Add generation of sycl-module-id attribute for kernels #694
Conversation
This is part of device code splitting feature. Please refer #631 for full design doc. |
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.
Is it reliable way to get unique id for the module? Can't we have two different modules with the same module id?
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.
This is a valid concern. It seems hard to come up with 100% reliable ID, so at least a TODO should be added to the code.
Other ideas to make it more reliable: add compilation time, addresses of Function objects corresponding to kernels in this translation unit.
Not 100% reliability should be OK, though, as the worst result is kernels going to the same module rather than different ones.
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.
Added a TODO comment to address this concern later.
This attribute contains string with module identifier. This information will be used to split fully linked device modules into smaller ones. Signed-off-by: Mariya Podchishchaeva <[email protected]> Signed-off-by: Sergey Semenov <[email protected]>
Signed-off-by: Sergey Semenov <[email protected]>
c5f18db
to
885515a
Compare
Per our agreement with Mariya, I'll be driving this PR for now. |
885515a
to
6e06ec8
Compare
Ping. |
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
New option allows to specify which version of extended instruction set for representing debug info should be used
This attribute contains string with module identifier. This information
will be used to split fully linked device modules into smaller ones.
Signed-off-by: Mariya Podchishchaeva [email protected]