Skip to content

DPC++ daily 2022-08-31

Pre-release
Pre-release
Compare
Choose a tag to compare
@bb-sycl bb-sycl released this 31 Aug 16:19
· 128934 commits to sycl since this release
1d95f2e
[Driver][SYCL] Add support for -fsycl-force-target (#6653)

Introduce -fsycl-force-target=arg support.  This is used along with -fsycl
to allow the user to override the target used to unbundle device objects
from fat objects and archives.

For example, object.o is built from -fsycl-targets=spir64.  The user wants
to build with -fsycl-targets=spir64_gen and object.o.  Use of
-fsycl-force-target=spir64 allows for this to be accomplished.

Additional notes:
  - Only valid when used with a single triple from -fsycl-targets
  - Applies to all unbundled archives and objects