Skip to content

Commit e5c3050

Browse files
KornevNikitabb-ur
authored andcommitted
Support sycl_ext_oneapi_clock on L0 (#20131)
Follow-up to intel/llvm#20070
1 parent 2457a96 commit e5c3050

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/adapters/level_zero/device.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,15 @@ ur_result_t urDeviceGetInfo(
14521452
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
14531453
}
14541454
}
1455+
case UR_DEVICE_INFO_CLOCK_SUB_GROUP_SUPPORT_EXP: {
1456+
// IGC supports this since v.2.16.0
1457+
return ReturnValue(
1458+
Device->Platform->isDriverVersionNewerOrSimilar(1, 6, 34666));
1459+
}
1460+
case UR_DEVICE_INFO_CLOCK_WORK_GROUP_SUPPORT_EXP:
1461+
case UR_DEVICE_INFO_CLOCK_DEVICE_SUPPORT_EXP:
1462+
// Currently GPUs only support sub-group clock.
1463+
return ReturnValue(false);
14551464
default:
14561465
UR_LOG(ERR, "Unsupported ParamName in urGetDeviceInfo");
14571466
UR_LOG(ERR, "ParamNameParamName={}(0x{})", ParamName,

0 commit comments

Comments
 (0)