Skip to content

[Driver][SYCL] Do device section checking only when offloading is enabled #5384

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
Jan 26, 2022

Conversation

qichaogu
Copy link
Contributor

@qichaogu qichaogu commented Jan 25, 2022

Currently, device section checking is always called whether
offloading is enabled or not.
However, it is not needed when offloading is not enabled.

Signed-off-by: Qichao Gu [email protected]

…bled

Currently, device section checking is always called whether
offloading is enabled or not.
However, it is not needed when offloading is not enabledd.

Signed-off-by: Qichao Gu <[email protected]>
@qichaogu qichaogu requested a review from a team as a code owner January 25, 2022 08:11
@qichaogu qichaogu changed the title [Driver][SYCL] Do device section checking only when offloading is ena… [Driver][SYCL] Do device section checking only when offloading is enabled Jan 25, 2022
// in FPGA Hardware/Simulation mode.
if (!C.getDriver().isFPGAEmulationMode() &&
hasFPGABinary(C, LA.str(), types::TY_FPGA_AOCO))
if (Args.hasFlag(options::OPT_fsycl, options::OPT_fno_sycl, false)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be moved up further to line 5882. Also, it may not be a bad idea to move this entire static lib unbundling to a separate function as part of OffloadingActionBuilder, cleaning up this area to be a bit more concise.

Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

@bader bader merged commit 3742b93 into intel:sycl Jan 26, 2022
@qichaogu qichaogu deleted the disable-check-section-for-no-offloading branch March 23, 2022 09:38
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