Skip to content

Conversation

@adurang
Copy link
Contributor

@adurang adurang commented Nov 27, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the Level Zero plugin to look up both global variables and function symbols when resolving offload variable device addresses. Previously, only global pointers were searched; now function pointers are also checked.

Key Changes:

  • Modified getOffloadVarDeviceAddr to attempt function pointer lookup after global pointer lookup fails
  • Added dynamic wrapper for zeModuleGetFunctionPointer API
  • Removed unnecessary std::string conversion of CName parameter

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
offload/plugins-nextgen/level_zero/src/L0Program.cpp Extended symbol lookup to check both global and function pointers, eliminated redundant string conversion
offload/plugins-nextgen/level_zero/src/L0DynWrapper.cpp Added dynamic wrapper for zeModuleGetFunctionPointer API

@adurang adurang merged commit 82bc212 into l0_plugin Nov 28, 2025
5 checks passed
@bader bader deleted the l0_lookup_funcs branch January 23, 2026 19:26
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