KEMBAR78
Fix driver sorting given driver failures and instrumentation by nrspruit · Pull Request #288 · oneapi-src/level-zero · GitHub
Skip to content

Conversation

@nrspruit
Copy link
Contributor

  • To avoid issues when sorting of the drivers can cause an invalid call during instrumentation after driver failures, then the driver sorting has been moved to occur during the call to zeDriverGet or zeinitDrivers.
  • In addition, the driver type is not init to UINT32_MAX in the enum such that all failing drivers are forced to the back of the sorted list.

@nrspruit nrspruit requested a review from rwmcguir February 26, 2025 16:05
@nrspruit nrspruit force-pushed the delay_driver_sorting branch 2 times, most recently from dbe5e16 to 0276d13 Compare February 26, 2025 16:43
rwmcguir
rwmcguir previously approved these changes Feb 26, 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.

Looks ok to me, let's get one more review.

@nrspruit nrspruit force-pushed the delay_driver_sorting branch 4 times, most recently from e2d5fdd to 5e2e830 Compare March 3, 2025 23:12
@nrspruit nrspruit force-pushed the delay_driver_sorting branch from 5e2e830 to 92fd19a Compare March 10, 2025 18:56
- To avoid issues when sorting of the drivers can cause an invalid call
  during instrumentation after driver failures, then the driver sorting
has been moved to occur during the call to zeDriverGet or zeinitDrivers.
- In addition, the driver type is not init to UINT32_MAX in the enum
  such that all failing drivers are forced to the back of the sorted
list.

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>
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
…rting once

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
@nrspruit nrspruit force-pushed the delay_driver_sorting branch from 92fd19a to 3f97d1e Compare March 10, 2025 22:11
@nrspruit nrspruit merged commit e1c7124 into oneapi-src:master Mar 10, 2025
49 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