Created
February 12, 2020 05:04
-
-
Save vanities/fbcaf267c26966dc7d1780f7d6d9f41e to your computer and use it in GitHub Desktop.
overclocking radeon vii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MEM_CLK=1000 | |
CORE_CLK=1801 | |
CORE_VLT=1110 | |
overclock() { | |
set -x | |
i=0 | |
echo "manual" > /sys/class/drm/card$i/device/power_dpm_force_performance_level | |
echo "s 1 $CORE_CLK" > /sys/class/drm/card$i/device/pp_od_clk_voltage | |
echo "m 1 $MEM_CLK" > /sys/class/drm/card$i/device/pp_od_clk_voltage | |
echo "vc 0 808 714" > /sys/class/drm/card$i/device/pp_od_clk_voltage | |
echo "vc 1 1304 812" > /sys/class/drm/card$i/device/pp_od_clk_voltage | |
echo "vc 2 $CORE_CLK $CORE_VLT" > /sys/class/drm/card$i/device/pp_od_clk_voltage | |
echo "c" > /sys/class/drm/card$i/device/pp_od_clk_voltage | |
} | |
overclock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment