Skip to content

[SYCL] Clang driver support of existing AOT features #710

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 4 commits into from
Oct 10, 2019

Conversation

AGindinson
Copy link
Contributor

Please see individual commit messages for detailed descriptions.

Artem Gindinson added 2 commits October 9, 2019 06:46
SYCL Runtime will need to know the target information for each image so
that the images can be properly dispatched between correspondent devices

Signed-off-by: Sergey Semenov <[email protected]>
Signed-off-by: Artem Gindinson <[email protected]>
Up until now, multiple use cases did not function properly.
These can be divided into 2 groups:

1) multiple triples for different binaries not being propagated to
the final offload;

2) misbehaviour of -fsycl-targets and -fsycl-add-targets options'
conjunction, Driver not constructing jobs for the former.

Main steps taken:

1) -fsycl-add-targets option conjunction & syntax checking was
moved from SYCL's SpecializedBuilder to the Driver class to
unify its handling with -fsycl-targets & -fsycl-link-targets;

2) separate toolchains are now constructed for -fsycl-add-targets'
triples in order to conviniently propagate the triples to the offload
jobs;

3) default toolchain construction is now switched off by
-fsycl-add-targets, as is the case with other -fsycl*targets options;

4) clear differentiation between -fsycl-add-targets' AOT inputs
and other option's inputs (including AOT) at the SpecializedBuilder
level was added to create necessary jobs both for -fsycl-targets and
-fsycl-add-targets.

Signed-off-by: Artem Gindinson <[email protected]>
Artem Gindinson added 2 commits October 9, 2019 21:22
Code duplication and deep nesting are thus reduced

Signed-off-by: Artem Gindinson <[email protected]>
hchilama
hchilama previously approved these changes Oct 9, 2019
@AGindinson
Copy link
Contributor Author

@agozillon Thanks for the review!

@romanovvlad romanovvlad merged commit a2bb53a into intel:sycl Oct 10, 2019
@AGindinson AGindinson deleted the private/agindins/fsycl-add-targets branch October 10, 2019 19:23
vladimirlaz added a commit that referenced this pull request Feb 18, 2020
Resolve merge conflict in README.md
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.

7 participants