habana-pyhlml 1.16.2.2__py3-none-any.whl → 1.17.0.495__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of habana-pyhlml might be problematic. Click here for more details.
- {habana_pyhlml-1.16.2.2.dist-info → habana_pyhlml-1.17.0.495.dist-info}/METADATA +1 -1
- habana_pyhlml-1.17.0.495.dist-info/RECORD +10 -0
- pyhlml/hlml_types.py +18 -16
- pyhlml/main.py +4 -4
- habana_pyhlml-1.16.2.2.dist-info/RECORD +0 -10
- {habana_pyhlml-1.16.2.2.dist-info → habana_pyhlml-1.17.0.495.dist-info}/LICENSE +0 -0
- {habana_pyhlml-1.16.2.2.dist-info → habana_pyhlml-1.17.0.495.dist-info}/WHEEL +0 -0
- {habana_pyhlml-1.16.2.2.dist-info → habana_pyhlml-1.17.0.495.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pyhlml/__init__.py,sha256=VjbHqSSypSMmVK7UTxuCyOs_AE8HhTXX9EGr6NbaQNk,25
|
|
2
|
+
pyhlml/hlml_error.py,sha256=GQulGXf-jX38jEASXF22qJ0yL8eC57vUo8s9lVI7q_E,2113
|
|
3
|
+
pyhlml/hlml_lib.py,sha256=JiHRLl3vpAozhCSs9eJC8xlhIMxR2wNVZdmahjlgDfc,1430
|
|
4
|
+
pyhlml/hlml_types.py,sha256=znPABbbwxHfSRiUO4lepgnJumVweRx3AWoU9R84aTss,10603
|
|
5
|
+
pyhlml/main.py,sha256=r9wnlzK9qVY2RdxoSpGxbnYyQbS1HKijPkHjogeEEwY,36135
|
|
6
|
+
habana_pyhlml-1.17.0.495.dist-info/LICENSE,sha256=_J8fTEtZF8y69onNU5_EAdOn0AC9RM2uHPh_q36-5bc,1065
|
|
7
|
+
habana_pyhlml-1.17.0.495.dist-info/METADATA,sha256=LpJrS0Vbdq1s8t3lZskTRyVFZZqHOjlsuWQSCZ3Ro1Y,1457
|
|
8
|
+
habana_pyhlml-1.17.0.495.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
9
|
+
habana_pyhlml-1.17.0.495.dist-info/top_level.txt,sha256=0jXJHTTotoeuyzpI1dcVr0mzCVB0NKY7LyCF4OwoMZU,7
|
|
10
|
+
habana_pyhlml-1.17.0.495.dist-info/RECORD,,
|
pyhlml/hlml_types.py
CHANGED
|
@@ -5,7 +5,7 @@ Python bindings for HLML types
|
|
|
5
5
|
import ctypes
|
|
6
6
|
|
|
7
7
|
class HLML_DEVICE:
|
|
8
|
-
TYPE = ctypes.c_void_p
|
|
8
|
+
TYPE = ctypes.c_void_p
|
|
9
9
|
|
|
10
10
|
class HLML_DEFINE:
|
|
11
11
|
PCI_DOMAIN_LEN = 5
|
|
@@ -35,12 +35,12 @@ class COMMON_DEFINE:
|
|
|
35
35
|
STATUS_MAX_LEN = 30
|
|
36
36
|
|
|
37
37
|
class HLML_AFFINITY_SCOPE:
|
|
38
|
-
TYPE = ctypes.c_uint
|
|
38
|
+
TYPE = ctypes.c_uint
|
|
39
39
|
HLML_AFFINITY_SCOPE_NODE = 0
|
|
40
40
|
HLML_AFFINITY_SCOPE_SOCKET = 1
|
|
41
41
|
|
|
42
42
|
class HLML_RETURN:
|
|
43
|
-
TYPE = ctypes.c_uint
|
|
43
|
+
TYPE = ctypes.c_uint
|
|
44
44
|
HLML_SUCCESS = 0
|
|
45
45
|
HLML_ERROR_UNINITIALIZED = 1
|
|
46
46
|
HLML_ERROR_INVALID_ARGUMENT = 2
|
|
@@ -56,7 +56,7 @@ class HLML_RETURN:
|
|
|
56
56
|
HLML_ERROR_UNKNOWN = 49
|
|
57
57
|
|
|
58
58
|
class HLML_CLOCK_TYPE:
|
|
59
|
-
TYPE = ctypes.c_uint
|
|
59
|
+
TYPE = ctypes.c_uint
|
|
60
60
|
HLML_CLOCK_SOC = 0
|
|
61
61
|
HLML_CLOCK_IC = 1
|
|
62
62
|
HLML_CLOCK_MME = 2
|
|
@@ -64,14 +64,16 @@ class HLML_CLOCK_TYPE:
|
|
|
64
64
|
HLML_CLOCK_COUNT = 4
|
|
65
65
|
|
|
66
66
|
class HLML_TEMP_SENS:
|
|
67
|
-
TYPE = ctypes.c_uint
|
|
67
|
+
TYPE = ctypes.c_uint
|
|
68
68
|
HLML_TEMPERATURE_ON_AIP = 0
|
|
69
69
|
HLML_TEMPERATURE_ON_BOARD = 1
|
|
70
70
|
HLML_TEMPERATURE_OTHER = 2
|
|
71
71
|
HLML_TEMPERATURE_HBM = 3
|
|
72
|
+
HLML_TEMPERATURE_VRM = 4
|
|
73
|
+
HLML_TEMPERATURE_CTEMP = 5
|
|
72
74
|
|
|
73
75
|
class HLML_TEMP_THRESH:
|
|
74
|
-
TYPE = ctypes.c_uint
|
|
76
|
+
TYPE = ctypes.c_uint
|
|
75
77
|
HLML_TEMPERATURE_THRESHOLD_SHUTDOWN = 0
|
|
76
78
|
HLML_TEMPERATURE_THRESHOLD_SLOWDOWN = 1
|
|
77
79
|
HLML_TEMPERATURE_THRESHOLD_MEM_MAX = 2
|
|
@@ -79,50 +81,50 @@ class HLML_TEMP_THRESH:
|
|
|
79
81
|
HLML_TEMPERATURE_THRESHOLD_COUNT = 4
|
|
80
82
|
|
|
81
83
|
class HLML_ENABLE_STATE:
|
|
82
|
-
TYPE = ctypes.c_uint
|
|
84
|
+
TYPE = ctypes.c_uint
|
|
83
85
|
HLML_FEATURE_DISABLED = 0
|
|
84
86
|
HLML_FEATURE_ENABLED = 1
|
|
85
87
|
|
|
86
88
|
class HLML_P_STATES:
|
|
87
|
-
TYPE = ctypes.c_uint
|
|
89
|
+
TYPE = ctypes.c_uint
|
|
88
90
|
HLML_PSTATE_0 = 0
|
|
89
91
|
HLML_PSTATE_UNKNOWN = 32
|
|
90
92
|
|
|
91
93
|
class HLML_MEMORY_ERROR:
|
|
92
|
-
TYPE = ctypes.c_uint
|
|
94
|
+
TYPE = ctypes.c_uint
|
|
93
95
|
HLML_MEMORY_ERROR_TYPE_CORRECTED = 0 # NOT SUPPORTED BY HLML
|
|
94
96
|
HLML_MEMORY_ERROR_TYPE_UNCORRECTED = 1
|
|
95
97
|
HLML_MEMORY_ERROR_TYPE_COUNT = 2
|
|
96
98
|
|
|
97
99
|
class HLML_MEMORY_LOCATION:
|
|
98
|
-
TYPE = ctypes.c_uint
|
|
100
|
+
TYPE = ctypes.c_uint
|
|
99
101
|
HLML_MEMORY_LOCATION_SRAM = 0
|
|
100
102
|
HLML_MEMORY_LOCATION_DRAM = 1
|
|
101
103
|
HLML_MEMORY_LOCATION_COUNT = 2
|
|
102
104
|
|
|
103
105
|
class HLML_ECC_COUNTER:
|
|
104
|
-
TYPE = ctypes.c_uint
|
|
106
|
+
TYPE = ctypes.c_uint
|
|
105
107
|
HLML_VOLATILE_ECC = 0
|
|
106
108
|
HLML_AGGREGATE_ECC = 1
|
|
107
109
|
HLML_ECC_COUNTER_TYPE_COUNT = 2
|
|
108
110
|
|
|
109
111
|
class HLML_PCIE_UTIL_COUNTER:
|
|
110
|
-
TYPE = ctypes.c_uint
|
|
112
|
+
TYPE = ctypes.c_uint
|
|
111
113
|
HLML_PCIE_UTIL_TX_BYTES = 0
|
|
112
114
|
HLML_PCIE_UTIL_RX_BYTES = 1
|
|
113
115
|
HLML_PCIE_UTIL_COUNT = 2
|
|
114
116
|
|
|
115
117
|
class HLML_EVENT_SET:
|
|
116
|
-
TYPE = ctypes.c_void_p
|
|
118
|
+
TYPE = ctypes.c_void_p
|
|
117
119
|
|
|
118
120
|
class HLML_ROW_REPLACEMENT_CAUSE:
|
|
119
|
-
TYPE = ctypes.c_uint
|
|
121
|
+
TYPE = ctypes.c_uint
|
|
120
122
|
HLML_ROW_REPLACEMENT_CAUSE_MULTIPLE_SINGLE_BIT_ECC_ERRORS = 0,
|
|
121
123
|
HLML_ROW_REPLACEMENT_CAUSE_DOUBLE_BIT_ECC_ERROR = 1,
|
|
122
124
|
HLML_ROW_REPLACEMENT_CAUSE_COUNT = 2
|
|
123
125
|
|
|
124
126
|
class HLML_PERF_POLICY:
|
|
125
|
-
TYPE = ctypes.c_uint
|
|
127
|
+
TYPE = ctypes.c_uint
|
|
126
128
|
HLML_PERF_POLICY_POWER = 0,
|
|
127
129
|
HLML_PERF_POLICY_THERMAL = 1,
|
|
128
130
|
HLML_PERF_POLICY_COUNT = 0
|
|
@@ -131,7 +133,7 @@ class _struct_c_hlml_unit(ctypes.Structure):
|
|
|
131
133
|
pass # opaque handle
|
|
132
134
|
|
|
133
135
|
class HLML_UNIT:
|
|
134
|
-
TYPE = _struct_c_hlml_unit
|
|
136
|
+
TYPE = _struct_c_hlml_unit
|
|
135
137
|
|
|
136
138
|
class _PrintS(ctypes.Structure):
|
|
137
139
|
"""
|
pyhlml/main.py
CHANGED
|
@@ -100,7 +100,7 @@ def hlmlDeviceGetHandleByPCIBusID(pci_addr: str) -> hlml_t.HLML_DEVICE.TYPE:
|
|
|
100
100
|
"""
|
|
101
101
|
global _hlmlOBJ
|
|
102
102
|
|
|
103
|
-
device = hlml_t.HLML_DEVICE.TYPE
|
|
103
|
+
device = hlml_t.HLML_DEVICE.TYPE()
|
|
104
104
|
fn = _hlmlOBJ.get_func_ptr("hlml_device_get_handle_by_pci_bus_id")
|
|
105
105
|
ret = fn(str.encode(pci_addr), ctypes.byref(device))
|
|
106
106
|
|
|
@@ -115,7 +115,7 @@ def hlmlDeviceGetHandleByIndex(index: int) -> hlml_t.HLML_DEVICE.TYPE:
|
|
|
115
115
|
device (HLML_DEVICE.TYPE) - The handle for the habana device.
|
|
116
116
|
"""
|
|
117
117
|
global _hlmlOBJ
|
|
118
|
-
device = hlml_t.HLML_DEVICE.TYPE
|
|
118
|
+
device = hlml_t.HLML_DEVICE.TYPE()
|
|
119
119
|
|
|
120
120
|
fn = _hlmlOBJ.get_func_ptr("hlml_device_get_handle_by_index")
|
|
121
121
|
ret = fn(index, ctypes.byref(device))
|
|
@@ -131,7 +131,7 @@ def hlmlDeviceGetHandleByUUID(uuid: str) -> hlml_t.HLML_DEVICE.TYPE:
|
|
|
131
131
|
device (HLML_DEVICE.TYPE) - The handle for the habana device.
|
|
132
132
|
"""
|
|
133
133
|
global _hlmlOBJ
|
|
134
|
-
device = hlml_t.HLML_DEVICE.TYPE
|
|
134
|
+
device = hlml_t.HLML_DEVICE.TYPE()
|
|
135
135
|
|
|
136
136
|
fn = _hlmlOBJ.get_func_ptr("hlml_device_get_handle_by_UUID")
|
|
137
137
|
ret = fn(str.encode(uuid), ctypes.byref(device))
|
|
@@ -444,7 +444,7 @@ def hlmlEventSetCreate() -> hlml_t.HLML_EVENT_SET.TYPE:
|
|
|
444
444
|
st (HLML_EVENT_SET) - An empty set of events.
|
|
445
445
|
"""
|
|
446
446
|
global _hlmlOBJ
|
|
447
|
-
st = hlml_t.HLML_EVENT_SET.TYPE
|
|
447
|
+
st = hlml_t.HLML_EVENT_SET.TYPE()
|
|
448
448
|
|
|
449
449
|
fn = _hlmlOBJ.get_func_ptr("hlml_event_set_create")
|
|
450
450
|
ret = fn(ctypes.byref(st))
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
pyhlml/__init__.py,sha256=VjbHqSSypSMmVK7UTxuCyOs_AE8HhTXX9EGr6NbaQNk,25
|
|
2
|
-
pyhlml/hlml_error.py,sha256=GQulGXf-jX38jEASXF22qJ0yL8eC57vUo8s9lVI7q_E,2113
|
|
3
|
-
pyhlml/hlml_lib.py,sha256=JiHRLl3vpAozhCSs9eJC8xlhIMxR2wNVZdmahjlgDfc,1430
|
|
4
|
-
pyhlml/hlml_types.py,sha256=0Zu6iFIU8u625-C1H4c9wGr2VLeoSt3kVZFoA5FHlno,10539
|
|
5
|
-
pyhlml/main.py,sha256=BI7vPUDevH4gPF_aaD3n4s4GuiC9J6G5pVb8lLryI9o,36127
|
|
6
|
-
habana_pyhlml-1.16.2.2.dist-info/LICENSE,sha256=_J8fTEtZF8y69onNU5_EAdOn0AC9RM2uHPh_q36-5bc,1065
|
|
7
|
-
habana_pyhlml-1.16.2.2.dist-info/METADATA,sha256=KlpBO2THWZIUkVZh_FnRf5kIpl-thwNOT4KepcE78qM,1455
|
|
8
|
-
habana_pyhlml-1.16.2.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
9
|
-
habana_pyhlml-1.16.2.2.dist-info/top_level.txt,sha256=0jXJHTTotoeuyzpI1dcVr0mzCVB0NKY7LyCF4OwoMZU,7
|
|
10
|
-
habana_pyhlml-1.16.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|