Skip to content

[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

Merged
merged 5 commits into from
Jun 28, 2021

Conversation

mdtoguchi
Copy link
Contributor

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

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 mdtoguchi requested a review from AGindinson as a code owner June 24, 2021 01:17
@bader
Copy link
Contributor

bader commented Jun 24, 2021

@mdtoguchi, I suggest we update out documentation together with this change. Currently Getting Started Guide and User Manual suggest using full triple.
Considering that we are going to drop -sycldevice soon (#3929), it would be great if we can migrate to the short aliases ASAP.

@mdtoguchi mdtoguchi requested review from bader and pvchupin as code owners June 24, 2021 20:43
pvchupin
pvchupin previously approved these changes Jun 24, 2021
Copy link
Contributor

@pvchupin pvchupin left a 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!

AGindinson
AGindinson previously approved these changes Jun 25, 2021
Copy link
Contributor

@AGindinson AGindinson left a 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.

@bader bader requested review from pvchupin and AGindinson June 27, 2021 20:20
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.

4 participants