Update cuda_malloc.py

This commit is contained in:
patientx 2024-08-26 14:42:12 +03:00 committed by GitHub
parent 58594a0b47
commit d7f28efe8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,12 +56,14 @@ def cuda_malloc_supported():
except:
names = set()
for x in names:
if "NVIDIA" in x:
if "AMD" in x:
return False
elif "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
#returned to older version.
if not args.cuda_malloc: