Skip to content

[UR] Mechanism for adapter filtering during loader initialization #18952

@kswiecicki

Description

@kswiecicki

Is your feature request related to a problem? Please describe

The L0 V2 adapter should be enabled by default on newer platforms. To implement this, we need to determine platform compatibility during the adapter load phase.

Platform identification in L0 adapter case requires:

  • Loading the L0 driver
  • Executing the function sequence: zeInit()->zeDriverGet()->zeDeviceGetProperties()

Describe the solution you would like

The most straightforward approach is to:

  1. Temporarily load the driver
  2. Query the necessary platform information
  3. Unload based on the results

Image

UR loader can access the necessary function through ur_loader::LibLoader::getFunctionPtr() and execute the retrieved function to validate platform compatibility.

Describe alternatives you have considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions