Update GPU detection logic in cuda_malloc.py

Refactor GPU check logic to return True for NVIDIA GPUs.
This commit is contained in:
patientx 2025-12-22 02:18:29 +03:00 committed by GitHub
parent ce2cdd0161
commit 2edfcd6141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,14 +56,11 @@ def cuda_malloc_supported():
except:
names = set()
for x in names:
if "AMD" in x:
return False
elif "NVIDIA" in x:
if "NVIDIA" in x:
for b in blacklist:
if b in x:
return False
return False
#We don't need malloc at all with amd gpu's. So disabling all together.
return True
version = ""