Skip to content

[SYCL] fix for device global / device image dependency#21657

Open
cperkinsintel wants to merge 8 commits intointel:syclfrom
cperkinsintel:cperkins-dg-link-fix-02
Open

[SYCL] fix for device global / device image dependency#21657
cperkinsintel wants to merge 8 commits intointel:syclfrom
cperkinsintel:cperkins-dg-link-fix-02

Conversation

@cperkinsintel
Copy link
Copy Markdown
Contributor

@cperkinsintel cperkinsintel commented Mar 30, 2026

CMPLRLLVM-74325

The SCYL mechanism for handling device globals does not currently take into account image dependencies, instead it only handles the globals present in the main image. This PR fixes that. It requires newer drivers ( 37170 or later).

Seems to be working on L0 and the OpenCL CPU device, but, surprisingly, not the OCL:GPU device.

@cperkinsintel cperkinsintel marked this pull request as ready for review April 3, 2026 15:08
@cperkinsintel cperkinsintel requested review from a team as code owners April 3, 2026 15:08
@cperkinsintel cperkinsintel requested a review from againull April 3, 2026 15:08
Copy link
Copy Markdown
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

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

llvm/lib/SYCLPostLink/ComputeModuleRuntimeInfo.cpp LGTM
Few nits.

continue;

// Check if it's a device_global by type name (declarations don't have
// attributes)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
// attributes)
// attributes).

Copy link
Copy Markdown
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

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

forgot to change to approve.

@YuriPlyakhin
Copy link
Copy Markdown
Contributor

in description: SCYL -> SYCL

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.

2 participants