amdgpu-pro questions - Overclock.net - An Overclocking Community

Forum Jump: 

amdgpu-pro questions

 
Thread Tools
post #1 of 4 (permalink) Old 02-05-2019, 09:02 AM - Thread Starter
New to Overclock.net
 
Join Date: Dec 2011
Location: 7200 ft above sea level
Posts: 2,582
amdgpu-pro questions

After tearing my hair out trying to get openCL working in Mint 19, I switch to Ubuntu 18.04.1 and it installed just fine. I have my 480 and 470 crunching away at some SETI now.



But these cards are running hotter and louder than they ever did in Windows. I am trying to find some documentation on configuring these drivers, in this case to reduce power, voltage, clocks, fan speed. My Google searches are failing me, any of you using these drivers have any idea where to find documentation beyond installation instructions and release notes?

Quote:I'm gonna throw in my 2 cents. Not because I'm an expert but because I have a keyboard.


bfromcolo is offline  
Sponsored Links
Advertisement
 
post #2 of 4 (permalink) Old 02-05-2019, 09:43 AM
New to Overclock.net
 
deepor's Avatar
 
Join Date: Feb 2013
Posts: 4,597
Rep: 463 (Unique: 311)
Hey, I don't quite know about AMDGPU-PRO because I never used the full package. It is possible to use just the OpenCL files from the PRO package, on top of the amdgpu driver inside the normal Linux kernel and side-by-side with the normal Mesa OpenGL drivers. I only know about how things work on that kind of setup.

There's a chance that the following works with the special amdgpu kernel driver that comes with the PRO package, but I only know for sure that it works with the version of the driver in the normal Linux kernel:

With the normal Linux kernel, you can enable access to the overclocking features by adding the following to the kernel command line:

Code:
amdgpu.ppfeaturemask=0xffffffff
And then after rebooting you can view your current configuration of the first card like this:

Code:
$ cat /sys/class/drm/card0/device/pp_od_clk_voltage 
OD_SCLK:
0:        300MHz        800mV
1:        608MHz        818mV
2:        930MHz        824mV
3:       1097MHz        887mV
4:       1137MHz        912mV
5:       1177MHz        937mV
6:       1216MHz        962mV
7:       1256MHz        987mV
OD_MCLK:
0:        300MHz        800mV
1:       2000MHz        930mV
OD_RANGE:
SCLK:     300MHz       2000MHz
MCLK:     300MHz       2250MHz
VDDC:     800mV        1175mV
If you look over this output closely, you can see that this is the same stuff that you can view and tweak through Wattman in Windows. The card has a list of power states and each state has a clock rate and a voltage. You can change all of those values.

Changing the states manually is done like this:

Code:
$ echo "s 7 1306 1100" | sudo tee /sys/class/drm/card0/device/pp_od_clk_voltage

$ echo "m 1 1750 1000" | sudo tee /sys/class/drm/card0/device/pp_od_clk_voltage

$ echo "c" | sudo tee /sys/class/drm/card0/device/pp_od_clk_voltage
This would change state number 7 for the GPU core, and state 1 of the card's memory chips. The "c" at the end means "commit", that's when the values will actually change in the card.

The script I'm using to set all states on my RX480 is this here:

http://ix.io/1A2o
deepor is offline  
post #3 of 4 (permalink) Old 02-05-2019, 10:02 AM - Thread Starter
New to Overclock.net
 
Join Date: Dec 2011
Location: 7200 ft above sea level
Posts: 2,582
Thank you very much!



I installed the openCL only from the pro driver as far as I know. "amdgpu-pro-install -y --opencl=legacy" is all I had to do in Ubuntu. It wasn't working in Mint even after I changed the files to get around the unsupported OS error. So hopefully what you provided will work.


I will try to get this working in the next few days.

Quote:I'm gonna throw in my 2 cents. Not because I'm an expert but because I have a keyboard.


bfromcolo is offline  
Sponsored Links
Advertisement
 
post #4 of 4 (permalink) Old 02-05-2019, 10:16 PM
2+2=5
 
tictoc's Avatar
 
Join Date: Feb 2011
Posts: 4,291
The amdgpu.ppfeaturemask values will work fine with the way you installed the driver, which is the open driver with the OpenCl bits tacked on top.

If you are going to use a script to automate control of your GPUs, be sure and follow the example from deepor's linked script. Virtual rep+ @deepor
The /sys/class/drm/card0/ directory is a symlink, and can change to card1, card2, card3, etc after a reboot if you have multiple GPUs in the system. Not a big deal if you have a single GPU or you are going to just control the GPUs manually.


Here's a link to the full kernel documentation on controlling fans, power, and clocks. https://www.kernel.org/doc/html/late...and-monitoring


BOINC||Join OCN BOINC Team||My BOINC Stats||
[email protected]||Join OCN [email protected] Team||My [email protected] Stats||
TickTockArch
(10 items)
TickTockCruncher
(18 items)
TickTock4
(12 items)
CPU
AMD Ryzen 7 1700
Motherboard
Asus Prime X370-Pro
GPU
MSI GTX 1070 SeaHawk EK
GPU
Radeon RX Vega 64
RAM
Crucial Ballistix Sport
Hard Drive
Adata XPG 8200
Power Supply
EVGA SuperNova 1300 G2
Cooling
Watercool Heatkiller IV Basic Acetal
Cooling
EK-FC Radeon Vega Acetal+Nickel
Operating System
Arch Linux
CPU
intel E5-2670 v2 ES
CPU
intel E5-2670 v2 ES
Motherboard
AsRock EP2C602-4L/D16
GPU
EVGA GTX 1070 SC
GPU
Sapphire R9 290
GPU
Sapphire R9 290
GPU
NVIDIA GTX 980 Classified Kingpin Edition
RAM
Samsung ECC 1866 MHz
Hard Drive
SanDisk Extreme PRO
Hard Drive
SanDisk SSD Plus
Power Supply
EVGA 1000 G2
Cooling
Watercool Heatkiller IV Pro Acetal Clean x2
Cooling
EK-FC R9-290X x2
Operating System
Arch Linux
Monitor
Dell Ultrashrp U3415W
Keyboard
Max Keyboard Blackbird
Mouse
Logitech MX Master
Other
Seasonic X-760
CPU
intel i7-4790k @ 4.8 GHz
Motherboard
ASUS Maximus VI IMPACT
GPU
XFX R9 Fury X
RAM
Crucial Ballistix Tactical ulp
Hard Drive
Crucial M500
Hard Drive
Crucial MX200
Power Supply
Seasonic X-1050
Cooling
Watercool Heatkiller IV Pro Intel
Cooling
EK-FC R9 Fury X
Case
Thermaltake Core X5
Operating System
Arch Linux
Monitor
Headless
▲ hide details ▲


tictoc is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off