Skip to content

Support for Sorting Drivers based on the devices provided - #259

Merged
nrspruit merged 4 commits into
oneapi-src:masterfrom
nrspruit:driver_sorting
Jan 22, 2025
Merged

nrspruit merged 4 commits into
oneapi-src:masterfrom
nrspruit:driver_sorting

Conversation

@nrspruit

Copy link
Copy Markdown
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
Comment thread samples/zello_world/zello_world.cpp Resolved
Comment thread source/loader/ze_loader_internal.h Resolved
rwmcguir
rwmcguir previously approved these changes Jan 16, 2025

@rwmcguir rwmcguir left a comment

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.

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.

Comment thread source/loader/ze_loader_internal.h Resolved
Comment thread source/loader/ze_loader.cpp Resolved
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
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