forked from earlvanze/AMD-ROCm-Miner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-oc.sh
executable file
·49 lines (41 loc) · 2.74 KB
/
start-oc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#Here is the example for the dreaded pirate roberts 570 samsung nitro's
#set fan to 50%
/opt/rocm/bin/rocm-smi --setfan 130
#Use the command to find all the cards at once
#find /sys | grep power_dpm_state
#find /sys | grep power_dpm_force_performance_level
echo performance > /sys/devices/pci0000:00/0000:00:1c.1/0000:06:00.0/power_dpm_state
echo performance > /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/power_dpm_state
echo performance > /sys/devices/pci0000:00/0000:00:1c.6/0000:08:00.0/power_dpm_state
echo performance > /sys/devices/pci0000:00/0000:00:1c.0/0000:05:00.0/power_dpm_state
echo performance > /sys/devices/pci0000:00/0000:00:1b.4/0000:04:00.0/power_dpm_state
echo performance > /sys/devices/pci0000:00/0000:00:1c.7/0000:09:00.0/power_dpm_state
echo high > /sys/devices/pci0000:00/0000:00:1c.1/0000:06:00.0/power_dpm_force_performance_level
echo high > /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/power_dpm_force_performance_level
echo high > /sys/devices/pci0000:00/0000:00:1c.6/0000:08:00.0/power_dpm_force_performance_level
echo high > /sys/devices/pci0000:00/0000:00:1c.0/0000:05:00.0/power_dpm_force_performance_level
echo high > /sys/devices/pci0000:00/0000:00:1b.4/0000:04:00.0/power_dpm_force_performance_level
echo high > /sys/devices/pci0000:00/0000:00:1c.7/0000:09:00.0/power_dpm_force_performance_level
echo 1 > /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.1/remove
echo 1 > /sys/devices/pci0000:00/0000:00:1b.4/0000:04:00.1/remove
echo 1 > /sys/devices/pci0000:00/0000:00:1c.0/0000:05:00.1/remove
echo 1 > /sys/devices/pci0000:00/0000:00:1c.1/0000:06:00.1/remove
echo 1 > /sys/devices/pci0000:00/0000:00:1c.6/0000:08:00.1/remove
echo 1 > /sys/devices/pci0000:00/0000:00:1c.7/0000:09:00.1/remove
#Run the first command and then then it will give you the find command to run to
#get the over drive paths
#lspci | grep VGA | awk '{print $1}'| sed s/^/find\ \\/sys\ \|\ egrep\ \-v\ volt\|grep\ od\|grep\ clk\|grep\ /
#find /sys | egrep -v volt|grep od|grep clk|grep 00:02.0
#find /sys | egrep -v volt|grep od|grep clk|grep 02:00.0
#find /sys | egrep -v volt|grep od|grep clk|grep 04:00.0
#find /sys | egrep -v volt|grep od|grep clk|grep 05:00.0
#find /sys | egrep -v volt|grep od|grep clk|grep 06:00.0
#find /sys | egrep -v volt|grep od|grep clk|grep 08:00.0
#find /sys | egrep -v volt|grep od|grep clk|grep 09:00.0
echo 17 > /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/pp_mclk_od
echo 17 > /sys/devices/pci0000:00/0000:00:1b.4/0000:04:00.0/pp_mclk_od
echo 17 > /sys/devices/pci0000:00/0000:00:1c.0/0000:05:00.0/pp_mclk_od
echo 17 > /sys/devices/pci0000:00/0000:00:1c.1/0000:06:00.0/pp_mclk_od
echo 17 > /sys/devices/pci0000:00/0000:00:1c.6/0000:08:00.0/pp_mclk_od
echo 17 > /sys/devices/pci0000:00/0000:00:1c.7/0000:09:00.0/pp_mclk_od