-
Notifications
You must be signed in to change notification settings - Fork 787
[Driver][SYCL] Allow for known aliases to be used for -fsycl-targets #3984
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
When using -fsycl-targets, usage is clumsy as we want the full triple to be used: spir64-unknown-unknown-sycldevice Allow for just the 'arch' to be specified, which will be expanded: spir64 -> spir64-unknown-unknown-sycldevice spir64_gen -> spir64_gen-unknown-unknown-sycldevice spir64_fpga -> spir64_fpga-unknown-unknown-sycldevice spir64_x86_64 -> spir64_x86_64-unknown-unknown-sycldevice
@mdtoguchi, I suggest we update out documentation together with this change. Currently Getting Started Guide and User Manual suggest using full triple. |
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.
Thanks Mike for simplifying this!
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 LGTM after the recent update to reuse MakeSYCLDeviceTriple
; comments are minor.
When using -fsycl-targets, usage is clumsy as we want the full triple to
be used: spir64-unknown-unknown-sycldevice
Allow for just the 'arch' to be specified, which will be expanded:
spir64 -> spir64-unknown-unknown-sycldevice
spir64_gen -> spir64_gen-unknown-unknown-sycldevice
spir64_fpga -> spir64_fpga-unknown-unknown-sycldevice
spir64_x86_64 -> spir64_x86_64-unknown-unknown-sycldevice