Skip to content

Commit f02acfc

Browse files
committed
Add pip dependency: pyamdgpuinfo, create new file to get gpu usage
1 parent 0316ddb commit f02acfc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pyamdgpuinfo
2+
3+
4+
def collect_all():
5+
gpus = pyamdgpuinfo.detect_gpus()
6+
7+
if len(gpus) == 0:
8+
return

requirements/robot.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ protobuf==3.20.3 # Required for mycroft-mimic3-tts, but we want to enshure that
55
pyttsx3
66
playsound
77
simpleeval
8+
pyamdgpuinfo

0 commit comments

Comments
 (0)