Skip to content

[SYCL][Driver] Fix default device compilation for CL mode #734

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 1 commit into from
Oct 16, 2019

Conversation

AGindinson
Copy link
Contributor

When compiling with -fsycl and providing no triples to some
-fsycl*targets option, a default device target triple is chosen.
For CL mode, it is spir64-unknown-[[os]]-sycldevice-coff. Leaving
object format unset for CL mode resulted in inability to find the
toolchain with a matching triple.

Signed-off-by: Artem Gindinson artem.gindinson@intel.com

When compiling with -fsycl and providing no triples to some
-fsycl*targets option, a default device target triple is chosen.
For CL mode, it is spir64-unknown-[[os]]-sycldevice-coff. Leaving
object format unset for CL mode is not right, as this results in
SYCLActionBuilder's inability to find the toolchain with a matching
triple.

Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
@AGindinson AGindinson force-pushed the private/agindins/fix-clang-cl branch 2 times, most recently from 6f91538 to 259f39e Compare October 15, 2019 15:22
Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

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

LGTM

mdtoguchi
mdtoguchi previously approved these changes Oct 15, 2019
v-klochkov
v-klochkov previously approved these changes Oct 15, 2019
@AGindinson AGindinson dismissed stale reviews from v-klochkov and mdtoguchi via 70aa1da October 15, 2019 17:08
@AGindinson AGindinson force-pushed the private/agindins/fix-clang-cl branch from 259f39e to 70aa1da Compare October 15, 2019 17:08
@romanovvlad romanovvlad merged commit 587b27d into intel:sycl Oct 16, 2019
@AGindinson AGindinson deleted the private/agindins/fix-clang-cl branch October 29, 2019 16:09
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.

5 participants