@@ -44,7 +44,9 @@ from ._backend cimport ( # noqa: E211
44
44
DPCTLDevice_GetImage3dMaxHeight,
45
45
DPCTLDevice_GetImage3dMaxWidth,
46
46
DPCTLDevice_GetLocalMemSize,
47
+ DPCTLDevice_GetMaxClockFrequency,
47
48
DPCTLDevice_GetMaxComputeUnits,
49
+ DPCTLDevice_GetMaxMemAllocSize,
48
50
DPCTLDevice_GetMaxNumSubGroups,
49
51
DPCTLDevice_GetMaxReadImageArgs,
50
52
DPCTLDevice_GetMaxWorkGroupSize,
@@ -1294,6 +1296,30 @@ cdef class SyclDevice(_SyclDevice):
1294
1296
raise RuntimeError (" Failed to get device timer resolution." )
1295
1297
return timer_res
1296
1298
1299
+ @property
1300
+ def max_clock_frequency (self ):
1301
+ """ Maximal clock frequency in MHz.
1302
+
1303
+ Returns:
1304
+ int: Frequency in MHz
1305
+ """
1306
+ cdef uint32_t clock_fr = DPCTLDevice_GetMaxClockFrequency(
1307
+ self ._device_ref
1308
+ )
1309
+ return clock_fr
1310
+
1311
+ @property
1312
+ def max_mem_alloc_size (self ):
1313
+ """ Maximum size of memory object than can be allocated.
1314
+
1315
+ Returns:
1316
+ int: Maximum size of memory object in bytes
1317
+ """
1318
+ cdef uint64_t max_alloc_sz = DPCTLDevice_GetMaxMemAllocSize(
1319
+ self ._device_ref
1320
+ )
1321
+ return max_alloc_sz
1322
+
1297
1323
@property
1298
1324
def global_mem_cache_type (self ):
1299
1325
""" Global device cache memory type.
0 commit comments