dev: fixed an issues with CMP170 #6

Merged
clore merged 16 commits from dev into main 2025-10-15 19:13:45 +00:00
2 changed files with 1 additions and 6 deletions
Showing only changes of commit 9d61280f7a - Show all commits

View File

@ -554,7 +554,7 @@ class CloreClient:
try:
await monitoring.put("specs_service")
current_specs = await specs.get()
print(current_specs)
if self.last_hw_specs_submit < (utils.unix_timestamp()-1800):
self.last_hw_specs_submit=utils.unix_timestamp()
await self.submit_specs(current_specs)

View File

@ -100,14 +100,9 @@ def init(gpu_specs_file=None, allow_hive_binaries=True):
gpu_uuid = pynvml.nvmlDeviceGetUUID(gpu_handle)
gpu_name = pynvml.nvmlDeviceGetName(gpu_handle)
print(gpu_name)
gpu_device_id = hex(pynvml.nvmlDeviceGetPciInfo(gpu_handle).pciDeviceId).lower()
print(gpu_device_id)
print(constants.GPU_ID_TO_NAME)
if gpu_name == "NVIDIA Graphics Device" and gpu_device_id in constants.GPU_ID_TO_NAME:
gpu_name = constants.GPU_ID_TO_NAME[gpu_device_id]
print(gpu_name)
gpu_name_list.append(gpu_name)
if not f"{i}-{gpu_uuid}" in parsed_specs_keys: