gpustack-runtime 0.1.38__py3-none-any.whl → 0.1.38.post2__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.
- gpustack_runtime/_version.py +2 -2
- gpustack_runtime/_version_appendix.py +1 -1
- gpustack_runtime/detector/amd.py +13 -4
- gpustack_runtime/detector/hygon.py +1 -1
- gpustack_runtime/detector/pyhsa/__init__.py +7 -7
- gpustack_runtime/detector/pyrocmsmi/__init__.py +1 -8
- {gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/METADATA +2 -2
- {gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/RECORD +11 -11
- {gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/WHEEL +0 -0
- {gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/entry_points.txt +0 -0
- {gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/licenses/LICENSE +0 -0
gpustack_runtime/_version.py
CHANGED
|
@@ -27,8 +27,8 @@ version_tuple: VERSION_TUPLE
|
|
|
27
27
|
__commit_id__: COMMIT_ID
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
|
|
30
|
-
__version__ = version = '0.1.38'
|
|
31
|
-
__version_tuple__ = version_tuple = (0, 1, 38)
|
|
30
|
+
__version__ = version = '0.1.38.post2'
|
|
31
|
+
__version_tuple__ = version_tuple = (0, 1, 38, 'post2')
|
|
32
32
|
try:
|
|
33
33
|
from ._version_appendix import git_commit
|
|
34
34
|
__commit_id__ = commit_id = git_commit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
git_commit = "
|
|
1
|
+
git_commit = "2567d66"
|
gpustack_runtime/detector/amd.py
CHANGED
|
@@ -107,8 +107,12 @@ class AMDDetector(Detector):
|
|
|
107
107
|
asic_serial = dev_gpu_asic_info.get("asic_serial")
|
|
108
108
|
dev_uuid = f"GPU-{(asic_serial[2:]).lower()}"
|
|
109
109
|
else:
|
|
110
|
-
dev_uuid =
|
|
111
|
-
|
|
110
|
+
dev_uuid = ""
|
|
111
|
+
with contextlib.suppress(pyrocmsmi.ROCMSMIError):
|
|
112
|
+
dev_uuid = (
|
|
113
|
+
f"GPU-{pyrocmsmi.rsmi_dev_unique_id_get(dev_idx)[2:]}"
|
|
114
|
+
)
|
|
115
|
+
dev_hsa_agent = hsa_agents.get(dev_uuid, pyhsa.Agent())
|
|
112
116
|
|
|
113
117
|
dev_gpu_driver_info = pyamdsmi.amdsmi_get_gpu_driver_info(dev)
|
|
114
118
|
dev_driver_ver = dev_gpu_driver_info.get("driver_version")
|
|
@@ -119,8 +123,13 @@ class AMDDetector(Detector):
|
|
|
119
123
|
|
|
120
124
|
dev_cc = dev_hsa_agent.compute_capability
|
|
121
125
|
if not dev_cc:
|
|
122
|
-
|
|
123
|
-
dev_cc =
|
|
126
|
+
if "target_graphics_version" in dev_gpu_asic_info:
|
|
127
|
+
dev_cc = dev_gpu_asic_info.get("target_graphics_version")
|
|
128
|
+
else:
|
|
129
|
+
with contextlib.suppress(pyrocmsmi.ROCMSMIError):
|
|
130
|
+
dev_cc = pyrocmsmi.rsmi_dev_target_graphics_version_get(
|
|
131
|
+
dev_idx,
|
|
132
|
+
)
|
|
124
133
|
|
|
125
134
|
dev_bdf = None
|
|
126
135
|
dev_card_id = None
|
|
@@ -108,7 +108,7 @@ class HygonDetector(Detector):
|
|
|
108
108
|
dev_index = dev_idx
|
|
109
109
|
|
|
110
110
|
dev_uuid = f"GPU-{pyrocmsmi.rsmi_dev_unique_id_get(dev_idx)[2:]}"
|
|
111
|
-
dev_hsa_agent = hsa_agents.get(dev_uuid)
|
|
111
|
+
dev_hsa_agent = hsa_agents.get(dev_uuid, pyhsa.Agent())
|
|
112
112
|
|
|
113
113
|
dev_name = dev_hsa_agent.name
|
|
114
114
|
if not dev_name:
|
|
@@ -446,13 +446,13 @@ def has_agent_get_asic_family_id(agent):
|
|
|
446
446
|
|
|
447
447
|
@dataclass
|
|
448
448
|
class Agent:
|
|
449
|
-
device_type: int
|
|
450
|
-
device_id: str
|
|
451
|
-
uuid: str
|
|
452
|
-
name: str
|
|
453
|
-
compute_capability: str
|
|
454
|
-
compute_units: int
|
|
455
|
-
asic_family_id: int | None
|
|
449
|
+
device_type: int | None = None
|
|
450
|
+
device_id: str | None = None
|
|
451
|
+
uuid: str | None = None
|
|
452
|
+
name: str | None = None
|
|
453
|
+
compute_capability: str | None = None
|
|
454
|
+
compute_units: int | None = None
|
|
455
|
+
asic_family_id: int | None = None
|
|
456
456
|
|
|
457
457
|
|
|
458
458
|
def get_agents() -> list[Agent]:
|
|
@@ -223,14 +223,7 @@ def rsmi_dev_target_graphics_version_get(device=0):
|
|
|
223
223
|
c_version = c_uint64()
|
|
224
224
|
ret = rocmsmiLib.rsmi_dev_target_graphics_version_get(device, byref(c_version))
|
|
225
225
|
_rocmsmiCheckReturn(ret)
|
|
226
|
-
version =
|
|
227
|
-
if len(version) == 4:
|
|
228
|
-
dev_name = rsmi_dev_name_get(device)
|
|
229
|
-
if "Instinct MI2" in dev_name:
|
|
230
|
-
hex_part = str(hex(int(version[2:]))).replace("0x", "")
|
|
231
|
-
version = version[:2] + hex_part
|
|
232
|
-
else:
|
|
233
|
-
version = str(c_version.value // 10 + c_version.value % 10)
|
|
226
|
+
version = hex(c_version.value)[2:]
|
|
234
227
|
return "gfx" + version
|
|
235
228
|
except AttributeError:
|
|
236
229
|
return None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gpustack-runtime
|
|
3
|
-
Version: 0.1.38
|
|
3
|
+
Version: 0.1.38.post2
|
|
4
4
|
Summary: GPUStack Runtime is library for detecting GPU resources and launching GPU workloads.
|
|
5
5
|
Project-URL: Homepage, https://github.com/gpustack/runtime
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/gpustack/gpustack/issues
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Requires-Dist: argcomplete>=3.6.3
|
|
17
17
|
Requires-Dist: docker
|
|
18
|
-
Requires-Dist: gpustack-runner
|
|
18
|
+
Requires-Dist: gpustack-runner==0.1.22.post6
|
|
19
19
|
Requires-Dist: kubernetes
|
|
20
20
|
Requires-Dist: nvidia-ml-py>=13.580.65
|
|
21
21
|
Requires-Dist: pyyaml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
gpustack_runtime/__init__.py,sha256=kKcK6DMIXOdpWhgMS7xlsNrBNvEmY0L8eyQtBIC3CU4,160
|
|
2
2
|
gpustack_runtime/__main__.py,sha256=Peh1iQnBiQ8GS0lew9rDwlciAHFJn2x7Tm8jyx1PJW8,3488
|
|
3
|
-
gpustack_runtime/_version.py,sha256=
|
|
3
|
+
gpustack_runtime/_version.py,sha256=ouuYyFNWHR0cA89x0BUEhiLvsudYfbD6bnvl5BAIkko,792
|
|
4
4
|
gpustack_runtime/_version.pyi,sha256=A42NoSgcqEXVy2OeNm4LXC9CbyonbooYrSUBlPm2lGY,156
|
|
5
5
|
gpustack_runtime/envs.py,sha256=qvGn57dVQSdC01QtIQQ7gVRJEls-IvrWXk7WHmPCZM0,25750
|
|
6
6
|
gpustack_runtime/logging.py,sha256=h_fvD5FV7GHCo00IUDLQmkPR-H6r66IX_WSwZwl0mCw,6869
|
|
@@ -17,10 +17,10 @@ gpustack_runtime/deployer/kuberentes.py,sha256=Ftvt2cGsrYUf6MZI3czOwGM_G-C5kFLUK
|
|
|
17
17
|
gpustack_runtime/detector/__init__.py,sha256=kLVxZ9iud2aLwqqAOanIYNb4QSHavUPhqay-FU5ndbU,5443
|
|
18
18
|
gpustack_runtime/detector/__types__.py,sha256=nVh9OV8tZdHFjHPlYul3u2zMvnpa9KOL5GxlPJhEvGk,13163
|
|
19
19
|
gpustack_runtime/detector/__utils__.py,sha256=Yj4GvGvuDuscDG5OpExYdv-1VhmEHBpRrBC9rTsB-kA,24584
|
|
20
|
-
gpustack_runtime/detector/amd.py,sha256=
|
|
20
|
+
gpustack_runtime/detector/amd.py,sha256=_9E1168KvMYeax7XDn_oxGmQO2pR7YC9nVuJeV8z1nU,18785
|
|
21
21
|
gpustack_runtime/detector/ascend.py,sha256=VkmNM-enbjMNVXKFfv7z6S-4BkwD6YkBmcC0J1ZGEuc,18588
|
|
22
22
|
gpustack_runtime/detector/cambricon.py,sha256=bqWo2mUuf3a5kV8NC1PzFtHIUhVQkSejUSWR5Z5XaGA,3899
|
|
23
|
-
gpustack_runtime/detector/hygon.py,sha256=
|
|
23
|
+
gpustack_runtime/detector/hygon.py,sha256=ieXIPS99ITx8aCyfg7IDoLkE7ZnZNt2SCL2yrmh9uxo,13352
|
|
24
24
|
gpustack_runtime/detector/iluvatar.py,sha256=1fbkfE2w_MH36YgQDv21xb76sl6GvYxVd3qSYXjET0g,10372
|
|
25
25
|
gpustack_runtime/detector/metax.py,sha256=YRpZVfz_nG7QTEMqTxqpgi9x5aPYy4gfvYhiUpbz8R8,10146
|
|
26
26
|
gpustack_runtime/detector/mthreads.py,sha256=PoGirid-rboH4Nm6sKnv424ULax1eu1rEaAsWKPT02g,11105
|
|
@@ -30,7 +30,7 @@ gpustack_runtime/detector/pyamdgpu/__init__.py,sha256=vFIOA072L01Nxvzgixns-wNrQJ
|
|
|
30
30
|
gpustack_runtime/detector/pyamdsmi/__init__.py,sha256=BXAOVnoew6MliU86ci73Rk2yWPeXRUBicFKFWh-r2s0,929
|
|
31
31
|
gpustack_runtime/detector/pycuda/__init__.py,sha256=o2Oj3l0HsXNttwnUylxerbupK-45gZWbluqfEvBDQ38,16673
|
|
32
32
|
gpustack_runtime/detector/pydcmi/__init__.py,sha256=KVmem7Cd6ZoQ-irB_WOsDVOiyGr5Cv69_rm1NNBpkxo,37129
|
|
33
|
-
gpustack_runtime/detector/pyhsa/__init__.py,sha256=
|
|
33
|
+
gpustack_runtime/detector/pyhsa/__init__.py,sha256=v2rWLyyqNQ24Jpy-7MoBbctd797gHN_6JNrFA84AjxM,15445
|
|
34
34
|
gpustack_runtime/detector/pyixml/__init__.py,sha256=oYFAfQ8ZbPg7oMFXFfLjJuCBEV7hWQpFqMMVcN99Sxs,166564
|
|
35
35
|
gpustack_runtime/detector/pymtml/__init__.py,sha256=hfaVZysit_MUTDs0qsnOBgKXq_8DKlCb0Jv00WasU0w,22008
|
|
36
36
|
gpustack_runtime/detector/pymxsml/__init__.py,sha256=spHMs9t2tiV-C9kO-cV_230CBVAZ-j2DWtLfiFU5V3E,25
|
|
@@ -38,10 +38,10 @@ gpustack_runtime/detector/pymxsml/mxsml.py,sha256=nRuKSVxIsJj2SJX-SYnE9NGZ7hGjWO
|
|
|
38
38
|
gpustack_runtime/detector/pymxsml/mxsml_extension.py,sha256=zfWFRGa9eSup336t2lPhIvCbPpa7Prn-7xCHRljg4CI,26967
|
|
39
39
|
gpustack_runtime/detector/pymxsml/mxsml_mcm.py,sha256=a4rX7hJNJKTqLodKU9rYeDaAEKef6UNVThl1w-aiFsA,15363
|
|
40
40
|
gpustack_runtime/detector/pyrocmcore/__init__.py,sha256=8XxKmwLX4-uoP7cfxjGoEmk9qlrGf0804pgyb74mJKs,2108
|
|
41
|
-
gpustack_runtime/detector/pyrocmsmi/__init__.py,sha256=
|
|
42
|
-
gpustack_runtime/_version_appendix.py,sha256=
|
|
43
|
-
gpustack_runtime-0.1.38.dist-info/METADATA,sha256=
|
|
44
|
-
gpustack_runtime-0.1.38.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
45
|
-
gpustack_runtime-0.1.38.dist-info/entry_points.txt,sha256=bBO_61GxP6dIT74uZwbSDgW5Vt2pTePUS3CgjUJkUgg,68
|
|
46
|
-
gpustack_runtime-0.1.38.dist-info/licenses/LICENSE,sha256=OiPibowBvB-NHV3TP_NOj18XNBlXcshXZFMpa3uvKVE,10362
|
|
47
|
-
gpustack_runtime-0.1.38.dist-info/RECORD,,
|
|
41
|
+
gpustack_runtime/detector/pyrocmsmi/__init__.py,sha256=wuSue_p48-JjkdCK82pd1KS9c42w_xkBPmhGnu5kp-k,11481
|
|
42
|
+
gpustack_runtime/_version_appendix.py,sha256=0uQRTtcOX04gPFN1zUuiipbVLMP5bnddPMs9ZGKfgPU,23
|
|
43
|
+
gpustack_runtime-0.1.38.post2.dist-info/METADATA,sha256=EuFK6z_K-7EfwQh9rfbc-H3NwVX8nPtCmsB7cpYluxc,1971
|
|
44
|
+
gpustack_runtime-0.1.38.post2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
45
|
+
gpustack_runtime-0.1.38.post2.dist-info/entry_points.txt,sha256=bBO_61GxP6dIT74uZwbSDgW5Vt2pTePUS3CgjUJkUgg,68
|
|
46
|
+
gpustack_runtime-0.1.38.post2.dist-info/licenses/LICENSE,sha256=OiPibowBvB-NHV3TP_NOj18XNBlXcshXZFMpa3uvKVE,10362
|
|
47
|
+
gpustack_runtime-0.1.38.post2.dist-info/RECORD,,
|
|
File without changes
|
{gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{gpustack_runtime-0.1.38.dist-info → gpustack_runtime-0.1.38.post2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|