Skip to content
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

[Driver][SYCL] refactor -fsycl-device-only behaviors #2713

Merged

Conversation

mdtoguchi
Copy link
Contributor

Update -fsycl-device-only to go through the offload path, effectively
removing the host dependencies when it is used. This allows for a
cleaner representation of SYCL device specific compilation needs.

@mdtoguchi mdtoguchi requested a review from AGindinson as a code owner October 31, 2020 00:37
Update -fsycl-device-only to go through the offload path, effectively
removing the host dependencies when it is used.  This allows for a
cleaner representation of SYCL device specific compilation needs.
@mdtoguchi mdtoguchi force-pushed the private/mdtoguchi/fsycl-device-offload branch from 0d10dbb to 5fcc96e Compare October 31, 2020 15:22
@mdtoguchi mdtoguchi requested a review from bader as a code owner October 31, 2020 19:00
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.

A great improvement overall! Just a few questions on my side to fully understand the changes.

clang/lib/Driver/Driver.cpp Show resolved Hide resolved
clang/lib/Driver/Driver.cpp Outdated Show resolved Hide resolved
clang/lib/Driver/Driver.cpp Show resolved Hide resolved
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.

LGTM!
As for the 1-line change in libclc, I get it @bader will be offline for the duration of the week. @romanovvlad, do you think this PR can be merged earlier as an exception?

@romanovvlad romanovvlad merged commit c23c339 into intel:sycl Nov 2, 2020
jsji pushed a commit that referenced this pull request Sep 21, 2024
In LLVM, array allocations might have constant size:

%array = alloca i32, i64 4, align 4
Represent this kind of allocations using OpVariable + OpBitcast.

Before this patch, the SPV_INTEL_variable_length_array extension was used.

Signed-off-by: Victor Perez <victor.perez@codeplay.com>

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@ea2fcc172f6861e
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.

3 participants