Compare commits

..

No commits in common. "97c6c549c1f9d52b062f0f064835b116ad390c0c" and "4d2510eb2be360e16cbfbd370f1b5aaae8ee68c5" have entirely different histories.

2 changed files with 2 additions and 12 deletions

View File

@ -485,10 +485,10 @@ class CloreClient:
log.debug("Submitting \"gpu_oc_specs\"") log.debug("Submitting \"gpu_oc_specs\"")
self.last_oc_service_submit = utils.unix_timestamp() self.last_oc_service_submit = utils.unix_timestamp()
await WebSocketClient.send({ await WebSocketClient.send({
"set_gpu_info":self.gpu_oc_specs, "set_gpu_info":oc_conf[1],
"xorg_valid": True "xorg_valid": True
}) })
if oc_conf[0] and type(oc_conf[2])==dict and oc_apply_allowed: if oc_conf[0] and len(oc_conf[2].keys())>0 and oc_apply_allowed:
if utils.normalize_rule(self.last_applied_oc)!=utils.normalize_rule(oc_conf[2]) or (self.last_oc_apply_time < utils.unix_timestamp()-300): if utils.normalize_rule(self.last_applied_oc)!=utils.normalize_rule(oc_conf[2]) or (self.last_oc_apply_time < utils.unix_timestamp()-300):
self.last_oc_apply_time = utils.unix_timestamp() self.last_oc_apply_time = utils.unix_timestamp()
log.debug(f"Applying OC | {json.dumps(oc_conf[2], separators=(',',':'))}") log.debug(f"Applying OC | {json.dumps(oc_conf[2], separators=(',',':'))}")

View File

@ -221,16 +221,6 @@ def set_oc(settings):
try: try:
gpu_count = pynvml.nvmlDeviceGetCount() gpu_count = pynvml.nvmlDeviceGetCount()
settings_keys = settings.keys() settings_keys = settings.keys()
if len(settings_keys)==0: # Configure default clocks/pl
settings={}
for i in range(0,gpu_count):
settings[str(i)]={
"core":0,
"mem":0,
"pl": all_gpus_data_list[i]["default_power_limit"]
}
settings_keys = settings.keys()
log.debug(f"Rewriting settings with: {json.dumps(settings)}")
for oc_gpu_index in settings_keys: for oc_gpu_index in settings_keys:
if oc_gpu_index.isdigit(): if oc_gpu_index.isdigit():
oc_gpu_index=int(oc_gpu_index) oc_gpu_index=int(oc_gpu_index)