compute-runtime icon indicating copy to clipboard operation
compute-runtime copied to clipboard

Malformed L0 driver version string from github release packages

Open ph0b opened this issue 9 months ago • 0 comments

This issue got discovered and root caused initially from Blender: https://projects.blender.org/blender/blender/issues/137277 that cannot use Intel GPUs when using the latest packages published on github, due to their malformed version string.

When using .deb packages from github releases, such as https://github.com/intel/compute-runtime/releases/tag/25.09.32961.5, zeIntelGetDriverVersionString which is supposed to report the driver version in the form: Major.Minor.Patch+Optional as defined in https://github.com/intel/compute-runtime/blob/master/level_zero/doc/experimental_extensions/GET_DRIVER_VERSION_STRING.md, doesn't.

Instead of 1.6.32961+5 for this recent release, it returns 1.6.32961.500000. This issue is present since at least https://github.com/intel/compute-runtime/releases/tag/24.39.31294.12

Since the code: https://github.com/intel/compute-runtime/blob/a6a176e62dce63468bef8e92f5760d56ab2e14ba/level_zero/api/driver_experimental/public/zex_driver.cpp#L53 does try to create a string with the correct form but std::to_string(32961.5) is 32961.500000, my analysis is that instead of being built with NEO_VERSION_BUILD=32961 and NEO_VERSION_HOTFIX=5, the packages are built with NEO_VERSION_BUILD=32961.5 and NEO_VERSION_HOTFIX=0.

ph0b avatar Apr 11 '25 04:04 ph0b