File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
unified-runtime/source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -284,11 +284,11 @@ ur_result_t urDeviceGetInfo(
284284 // Supports reading and writing of images.
285285 SupportedExtensions += (" cl_khr_3d_image_writes " );
286286
287- // L0 does not tell us if bfloat16 is supported.
288- // For now, assume ATS and PVC support it.
289- // TODO: change the way we detect bfloat16 support.
290- if ((Device->ZeDeviceProperties ->deviceId & 0xfff ) == 0x201 ||
291- (Device->ZeDeviceProperties ->deviceId & 0xff0 ) == 0xbd0 )
287+ if (Device-> Platform -> zeDriverExtensionMap . count (
288+ ZE_BFLOAT16_CONVERSIONS_EXT_NAME))
289+ SupportedExtensions += ( " cl_intel_bfloat16_conversions " );
290+ else if ((Device->ZeDeviceProperties ->deviceId & 0xfff ) == 0x201 ||
291+ (Device->ZeDeviceProperties ->deviceId & 0xff0 ) == 0xbd0 )
292292 SupportedExtensions += (" cl_intel_bfloat16_conversions " );
293293
294294 return ReturnValue (SupportedExtensions.c_str ());
You can’t perform that action at this time.
0 commit comments