Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get total gpu memory

import os
print("GPU Dedicated Memory:", int(os.popen("wmic path win32_VideoController get AdapterRAM").read().split("

")[1]) / 1000000000)
# It's in GB if you wish for something else chnage the number you divide by at the end.
# Runs The wmic command in command line and splits it to get the value.
# Works With My Radeon XFX 570
 
PREVIOUS NEXT
Tagged: #python #total #gpu #memory
ADD COMMENT
Topic
Name
6+6 =