gpustack-runtime 0.1.38.post1__py3-none-any.whl → 0.1.38.post3__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.
@@ -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.post1'
31
- __version_tuple__ = version_tuple = (0, 1, 38, 'post1')
30
+ __version__ = version = '0.1.38.post3'
31
+ __version_tuple__ = version_tuple = (0, 1, 38, 'post3')
32
32
  try:
33
33
  from ._version_appendix import git_commit
34
34
  __commit_id__ = commit_id = git_commit
@@ -1 +1 @@
1
- git_commit = "bc41720"
1
+ git_commit = "44deb12"
@@ -123,8 +123,13 @@ class AMDDetector(Detector):
123
123
 
124
124
  dev_cc = dev_hsa_agent.compute_capability
125
125
  if not dev_cc:
126
- with contextlib.suppress(pyrocmsmi.ROCMSMIError):
127
- dev_cc = pyrocmsmi.rsmi_dev_target_graphics_version_get(dev_idx)
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
+ )
128
133
 
129
134
  dev_bdf = None
130
135
  dev_card_id = None
@@ -223,15 +223,9 @@ 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 = str(c_version.value)
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)
234
- return "gfx" + version
226
+ if c_version.value < 2000:
227
+ return "gfx" + str(c_version.value)
228
+ return "gfx" + hex(c_version.value)[2:]
235
229
  except AttributeError:
236
230
  return None
237
231
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gpustack-runtime
3
- Version: 0.1.38.post1
3
+ Version: 0.1.38.post3
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>=0.1.22.post4
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=OL0x1mL7zWxdM3E6wbnkkl0iND8oh7AgIPGj-vARcX0,792
3
+ gpustack_runtime/_version.py,sha256=NcnhwE5rFYwXU-9cz63plF5i8EfO1Bb8PCRufy4usv4,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,7 +17,7 @@ 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=D9LU-K1XyVUa21MJ9yrxBEOrghGtr8aUfj1PxZQbgKI,18535
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
23
  gpustack_runtime/detector/hygon.py,sha256=ieXIPS99ITx8aCyfg7IDoLkE7ZnZNt2SCL2yrmh9uxo,13352
@@ -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=OmvfJepAtEnDKBMLrktMXlRbJEZttMDQ2R4ztD8kLGg,11806
42
- gpustack_runtime/_version_appendix.py,sha256=eSDPMHhW7cMSRZgbhvMCJNkKL04971DtJpYmrWRgJuI,23
43
- gpustack_runtime-0.1.38.post1.dist-info/METADATA,sha256=5zwJmOqCEGBnh-SjiLpYcS2lBmwxFeNlKBraHuFgJRc,1971
44
- gpustack_runtime-0.1.38.post1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
45
- gpustack_runtime-0.1.38.post1.dist-info/entry_points.txt,sha256=bBO_61GxP6dIT74uZwbSDgW5Vt2pTePUS3CgjUJkUgg,68
46
- gpustack_runtime-0.1.38.post1.dist-info/licenses/LICENSE,sha256=OiPibowBvB-NHV3TP_NOj18XNBlXcshXZFMpa3uvKVE,10362
47
- gpustack_runtime-0.1.38.post1.dist-info/RECORD,,
41
+ gpustack_runtime/detector/pyrocmsmi/__init__.py,sha256=gtyiS4vXpuc9Y9xt3cw_ObqiivbsU8_xi48TIqZA0hk,11538
42
+ gpustack_runtime/_version_appendix.py,sha256=pcbCix50ttSTjQE6CHNg0h6U2gPliZ5NxpVcxWQsmaM,23
43
+ gpustack_runtime-0.1.38.post3.dist-info/METADATA,sha256=Eo5VNc6h82U5kYvDZUF172N_2S71omuxMPbp6m_nUHQ,1971
44
+ gpustack_runtime-0.1.38.post3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
45
+ gpustack_runtime-0.1.38.post3.dist-info/entry_points.txt,sha256=bBO_61GxP6dIT74uZwbSDgW5Vt2pTePUS3CgjUJkUgg,68
46
+ gpustack_runtime-0.1.38.post3.dist-info/licenses/LICENSE,sha256=OiPibowBvB-NHV3TP_NOj18XNBlXcshXZFMpa3uvKVE,10362
47
+ gpustack_runtime-0.1.38.post3.dist-info/RECORD,,