Skip to content

[L0][v2] Fix segfault from null zeDeviceGetVectorWidthPropertiesExt - #22974

Draft
kweronsx wants to merge 2 commits into
intel:syclfrom
kweronsx:fix-null-func-ptr-segfault
Draft

[L0][v2] Fix segfault from null zeDeviceGetVectorWidthPropertiesExt#22974
kweronsx wants to merge 2 commits into
intel:syclfrom
kweronsx:fix-null-func-ptr-segfault

Conversation

@kweronsx

@kweronsx kweronsx commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Fall back to default vector-width properties,
when the function pointer is null.
Fixes: #22834

Fall back to default vector-width properties,
when the function pointer is null.
@kweronsx
kweronsx force-pushed the fix-null-func-ptr-segfault branch from a7ddcd5 to c94151d Compare August 21, 2026 06:04
@kweronsx
kweronsx marked this pull request as ready for review August 21, 2026 07:49
@kweronsx
kweronsx requested a review from a team as a code owner August 21, 2026 07:49
Comment on lines +2077 to +2102
@@ -2087,7 +2099,7 @@ ur_result_t ur_device_handle_t_::initialize(int SubSubDeviceOrdinal,
ZeStruct<ze_device_vector_width_properties_ext_t>
MaxVectorWidthProperties;

ZE_CALL_NOCHECK(zeDeviceGetVectorWidthPropertiesExt,
ZE_CALL_NOCHECK(zeDeviceGetVectorWidthPropertiesExtFn,

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.

Move this to platform initialization.

@kweronsx
kweronsx marked this pull request as draft August 21, 2026 10:15
Move query to platform initialization
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.

Segmentation fault when trying to run pytorch with intel kernels

2 participants