@@ -54,6 +54,13 @@ from ._backend cimport ( # noqa: E211
54
54
DPCTLDevice_GetMaxWorkItemSizes3d,
55
55
DPCTLDevice_GetMaxWriteImageArgs,
56
56
DPCTLDevice_GetName,
57
+ DPCTLDevice_GetNativeVectorWidthChar,
58
+ DPCTLDevice_GetNativeVectorWidthDouble,
59
+ DPCTLDevice_GetNativeVectorWidthFloat,
60
+ DPCTLDevice_GetNativeVectorWidthHalf,
61
+ DPCTLDevice_GetNativeVectorWidthInt,
62
+ DPCTLDevice_GetNativeVectorWidthLong,
63
+ DPCTLDevice_GetNativeVectorWidthShort,
57
64
DPCTLDevice_GetParentDevice,
58
65
DPCTLDevice_GetPartitionMaxSubDevices,
59
66
DPCTLDevice_GetPlatform,
@@ -942,6 +949,55 @@ cdef class SyclDevice(_SyclDevice):
942
949
"""
943
950
return DPCTLDevice_GetPreferredVectorWidthHalf(self ._device_ref)
944
951
952
+ @property
953
+ def native_vector_width_char (self ):
954
+ """ Returns the native ISA vector width size for built-in scalar
955
+ types that can be put into vectors.
956
+ """
957
+ return DPCTLDevice_GetNativeVectorWidthChar(self ._device_ref)
958
+
959
+ @property
960
+ def native_vector_width_short (self ):
961
+ """ Returns the native ISA vector width size for built-in scalar
962
+ types that can be put into vectors.
963
+ """
964
+ return DPCTLDevice_GetNativeVectorWidthShort(self ._device_ref)
965
+
966
+ @property
967
+ def native_vector_width_int (self ):
968
+ """ Returns the native ISA vector width size for built-in scalar
969
+ types that can be put into vectors.
970
+ """
971
+ return DPCTLDevice_GetNativeVectorWidthInt(self ._device_ref)
972
+
973
+ @property
974
+ def native_vector_width_long (self ):
975
+ """ Returns the native ISA vector width size for built-in scalar
976
+ types that can be put into vectors.
977
+ """
978
+ return DPCTLDevice_GetNativeVectorWidthLong(self ._device_ref)
979
+
980
+ @property
981
+ def native_vector_width_float (self ):
982
+ """ Returns the native ISA vector width size for built-in scalar
983
+ types that can be put into vectors.
984
+ """
985
+ return DPCTLDevice_GetNativeVectorWidthFloat(self ._device_ref)
986
+
987
+ @property
988
+ def native_vector_width_double (self ):
989
+ """ Returns the native ISA vector width size for built-in scalar
990
+ types that can be put into vectors.
991
+ """
992
+ return DPCTLDevice_GetNativeVectorWidthDouble(self ._device_ref)
993
+
994
+ @property
995
+ def native_vector_width_half (self ):
996
+ """ Returns the native ISA vector width size for built-in scalar
997
+ types that can be put into vectors.
998
+ """
999
+ return DPCTLDevice_GetNativeVectorWidthHalf(self ._device_ref)
1000
+
945
1001
@property
946
1002
def global_mem_size (self ):
947
1003
""" Returns the size of global memory on this device in bytes.
0 commit comments