Skip to content

Malformed L0 driver version string from github release packages #826

Open
@ph0b

Description

@ph0b

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:

std::string driverVersionString = std::to_string(ZE_MAJOR_VERSION(apiVersion)) + "." + std::to_string(ZE_MINOR_VERSION(apiVersion)) + "." + std::to_string(NEO_VERSION_BUILD);
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions