cancel
Showing results for 
Search instead for 
Did you mean: 

Newcomers Start Here

colesdav
MVP

AMD rocm-smi does not report GPU utilization. Can someone please explain why?

Hello,

I have been looking for a means to monitor and control my GPU's on Ubuntu 16.04 LTS running with amdgpu-pro-18.10-572953 drivers.
I would prefer to use a GUI to do this.

I have managed to compile Radeon Profile successfully and it seems to run o.k. but there is a problem that GPU Utilization is not reported.

I have also installed ROCm and  rocm-smi.

I looked at rocm-smi and I see that there is no way to report GPU Utilization in a similar mannmer to that reported on AMD Adrenalin Drivers for Windows.

Here are the options I see:

/opt/rocm/bin/rocm-smi -h

usage: rocm-smi [-h] [-d DEVICE] [-i] [-v] [-hw] [-t] [-c] [-g] [-f] [-p] [-P] [-o] [-l] [-s] [-a] [-r]

                [--setsclk LEVEL [LEVEL ...]] [--setmclk LEVEL [LEVEL ...]] [--resetfans] [--setfan LEVEL]

                [--setperflevel LEVEL] [--setoverdrive %] [--setprofile # # # # #] [--resetprofile]

                [--load FILE | --save FILE] [--autorespond RESPONSE]

AMD ROCm System Management Interface

optional arguments:

  -h, --help                   show this help message and exit

  --load FILE                  Load Clock, Fan, Performance and Profile settings from FILE

  --save FILE                  Save Clock, Fan, Performance and Profile settings to FILE

  -d DEVICE, --device DEVICE   Execute command on specified device

  -i, --showid                 Show GPU ID

  -v, --showvbios              Show VBIOS version

  -hw, --showhw                Show Hardware details

  -t, --showtemp               Show current temperature

  -c, --showclocks             Show current clock frequencies

  -g, --showgpuclocks          Show current GPU clock frequencies

  -f, --showfan                Show current fan speed

  -p, --showperflevel          Show current PowerPlay Performance Level

  -P, --showpower              Show current power consumption

  -o, --showoverdrive          Show current OverDrive level

  -l, --showprofile            Show Compute Profile attributes

  -s, --showclkfrq             Show supported GPU and Memory Clock

  -a, --showallinfo            Show Temperature, Fan and Clock values

  -r, --resetclocks            Reset sclk and mclk to default (auto)

  --setsclk LEVEL [LEVEL ...]  Set GPU Clock Frequency Level(s) (manual)

  --setmclk LEVEL [LEVEL ...]  Set GPU Memory Clock Frequency Level(s) (manual)

  --resetfans                  Reset fans to automatic (driver) control

  --setfan LEVEL               Set GPU Fan Speed Level

  --setperflevel LEVEL         Set PowerPlay Performance Level

  --setoverdrive %             Set GPU OverDrive level (manual|high)

  --setprofile # # # # #       Specify Compute Profile attributes (auto)

  --resetprofile               Reset Compute Profile to default values

  --autorespond RESPONSE       Response to automatically provide for all prompts (NOT RECOMMENDED)

Is there any reason why rocm-smi does not report GPU Utilization?

I was hoping to be able to run a simple Linux Script to report the utilization in a shell using command similar to this:

clear; for i in {1..1000} ; do /opt/rocm/bin/rocm-smi -P ; sleep 1 ; clear; done

Which is set up to report GPU Power 1000 times, with a pause interval of ~ 1.
It produces an output like this:

====================ROCm System Management Interface====================

================================================================================

GPU[1]    : Average GPU Power: 10.25 W
GPU[0]    : Average GPU Power: 15.112 W

================================================================================

====================       End of ROCm SMI Log      ====================

System Information is below:

Motherboard Asus Z97 Deluxe.

CPU i7-4790K.

GPU1: R9 Fury X.

GPU 2. R9 Nano

PSU Corsair AX1200i

SSHD 2TB Seagate.

OS: Ubuntu 16.04 LTS.

Thanks.

0 Likes
5 Replies
dipak
Staff
Staff

Re: AMD rocm-smi does not report GPU utilization. Can someone please explain why?

Hi,

ROCm related support is provided at the GitHub site itself. Please post your query here: Issues · RadeonOpenCompute/ROC-smi · GitHub

Thanks.

0 Likes
colesdav
MVP

Re: AMD rocm-smi does not report GPU utilization. Can someone please explain why?

OK.

It looks like this might be the correct answer.

It looks like a new Linux kernel patch will be released to expose GPU usage information in future: "A patch has been submitted to expose GPU usage via Sysfs: https://lists.freedesktop.org/archives/amd-gfx/2018-June/023283.html It would likely appear in Linux 4.19.

Bye.

0 Likes
colesdav
MVP

Re: AMD rocm-smi does not report GPU utilization. Can someone please explain why?

Hi

Issue and question opened here:

rocm-smi does not report GPU Utilization · Issue #37 · RadeonOpenCompute/ROC-smi · GitHub

Whilst I understand you are not expected to answer the question - can I please leave this post open, and maybe unmark it as a question?
Others on the AMD Community Forum may be interested to know when GPU utilization report will be made available.

Thanks.

0 Likes
dipak
Staff
Staff

Re: AMD rocm-smi does not report GPU utilization. Can someone please explain why?

Sure, I'm leaving the post open as it is. Once you get the answer, please share it and update the status accordingly.

colesdav
MVP

Re: AMD rocm-smi does not report GPU utilization. Can someone please explain why?

Hi,

Thank you dipak

I will update the post as soon as I get more details.

Thanks again.

Bye.

0 Likes