KEMBAR78
Support for Sorting Drivers based on the devices provided by nrspruit · Pull Request #259 · oneapi-src/level-zero · GitHub
Skip to content

Conversation

@nrspruit
Copy link
Contributor

  • Added support for reporting drivers sorted based on the types of devices returned.

  • By default, drivers will be sorted such that the ordering will be:

    • Drivers with Discrete GPUs only - Drivers with Discrete and Integrated GPUs - Drivers with Integrated GPUs - Drivers with Mixed Devices Types (ie GPU + NPU) - Drivers with Non GPU Devices Only
  • If ZE_ENABLE_PCI_ID_DEVICE_ORDER is set, then the following ordering is provided:

    • Drivers with Integrated GPUs - Drivers with Discrete and Integrated GPUs - Drivers with Discrete GPUs only - Drivers with Mixed Devices Types (ie GPU + NPU) - Drivers with Non GPU Devices Only
  • Expanded the zello_world sample to test both init paths for easy prototyping.

- Added support for reporting drivers sorted based on the types of
  devices returned.
- By default, drivers will be sorted such that the ordering will be:
	- Drivers with Discrete GPUs only
        - Drivers with Discrete and Integrated GPUs
        - Drivers with Integrated GPUs
        - Drivers with Mixed Devices Types (ie GPU + NPU)
        - Drivers with Non GPU Devices Only
- If ZE_ENABLE_PCI_ID_DEVICE_ORDER is set, then the following ordering
  is provided:
	- Drivers with Integrated GPUs
        - Drivers with Discrete and Integrated GPUs
        - Drivers with Discrete GPUs only
        - Drivers with Mixed Devices Types (ie GPU + NPU)
        - Drivers with Non GPU Devices Only

- Expanded the zello_world sample to test both init paths for easy
  prototyping.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
@nrspruit nrspruit marked this pull request as ready for review January 15, 2025 14:36
rwmcguir
rwmcguir previously approved these changes Jan 16, 2025
Copy link
Contributor

@rwmcguir rwmcguir left a comment

Choose a reason for hiding this comment

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

Other than silly comments, I don't have any commentary on the ordering mechanism. Seems simple and easily modifiable via the ENUM, which is ... well pretty cool.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
@nrspruit nrspruit merged commit af726f2 into oneapi-src:master Jan 22, 2025
26 checks passed
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