Skip to content

Conversation

@whitneywhtsang
Copy link
Contributor

@whitneywhtsang whitneywhtsang commented Dec 1, 2025

Check the driver version at runtime instead of build time.

Fixes #5574

@whitneywhtsang whitneywhtsang marked this pull request as draft December 1, 2025 05:28
@Stonepia
Copy link
Contributor

Stonepia commented Dec 1, 2025

Do you know why there are no artifacts in the second attempts?
https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/19810488598?pr=5585

Only the first attempt run have the artifacts of the triton pacakge, but what within is triton-3.6.0+gitef79ef60-cp310-cp310-linux_x86_64.whl, and doesn't match this PR's commit.

@whitneywhtsang
Copy link
Contributor Author

Please don’t try yet, noticed from CI failures that still need more changes.

@whitneywhtsang whitneywhtsang marked this pull request as ready for review December 3, 2025 00:37
@whitneywhtsang
Copy link
Contributor Author

@Stonepia It should be good now, please give it another try.

- return mapType(T, BM->addFloatType(16, FPEncodingBFloat16KHR));
+ // Workaround for LTS2 driver.
+ const char *driverVersion = std::getenv("INTEL_XPU_BACKEND_DRIVER_VERSION");
+ if (driverVersion && std::string(driverVersion) != "1.6.33578+38") {
Copy link
Contributor

Choose a reason for hiding this comment

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

If the LTS2 driver is updated, this code will break. Is it enough to use some substring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you know what's the driver version pattern? Are you suggesting to omit +38?

Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately no, my guess is that only this part will not change: 1.6.*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Triton update introduced "unknown extension 'SPV_KHR_bfloat16'"

5 participants