@@ -34,11 +34,13 @@ from ._backend cimport ( # noqa: E211
34
34
DPCTLDevice_GetBackend,
35
35
DPCTLDevice_GetDeviceType,
36
36
DPCTLDevice_GetDriverVersion,
37
+ DPCTLDevice_GetGlobalMemSize,
37
38
DPCTLDevice_GetImage2dMaxHeight,
38
39
DPCTLDevice_GetImage2dMaxWidth,
39
40
DPCTLDevice_GetImage3dMaxDepth,
40
41
DPCTLDevice_GetImage3dMaxHeight,
41
42
DPCTLDevice_GetImage3dMaxWidth,
43
+ DPCTLDevice_GetLocalMemSize,
42
44
DPCTLDevice_GetMaxComputeUnits,
43
45
DPCTLDevice_GetMaxNumSubGroups,
44
46
DPCTLDevice_GetMaxReadImageArgs,
@@ -656,6 +658,22 @@ cdef class SyclDevice(_SyclDevice):
656
658
"""
657
659
return DPCTLDevice_GetPreferredVectorWidthHalf(self ._device_ref)
658
660
661
+ @property
662
+ def global_mem_size (self ):
663
+ """ Returns the size of global memory on this device in bytes.
664
+ """
665
+ cdef size_t global_mem_size = 0
666
+ global_mem_size = DPCTLDevice_GetGlobalMemSize(self ._device_ref)
667
+ return global_mem_size
668
+
669
+ @property
670
+ def local_mem_size (self ):
671
+ """ Returns the size of local memory on this device in bytes.
672
+ """
673
+ cdef size_t local_mem_size = 0
674
+ local_mem_size = DPCTLDevice_GetLocalMemSize(self ._device_ref)
675
+ return local_mem_size
676
+
659
677
@property
660
678
def vendor (self ):
661
679
""" Returns the device vendor name as a string.
0 commit comments