mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Merge pull request #3539 from SChernykh/dev
Added Zen5 to randomx_boost.sh
This commit is contained in:
commit
e0af8f0c6b
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,14 @@ if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null;
|
||||||
wrmsr -a 0xc001102b 0x2000cc10
|
wrmsr -a 0xc001102b 0x2000cc10
|
||||||
echo "MSR register values for Zen3 applied"
|
echo "MSR register values for Zen3 applied"
|
||||||
fi
|
fi
|
||||||
|
elif grep "cpu family[[:space:]]\{1,\}:[[:space:]]26" /proc/cpuinfo > /dev/null;
|
||||||
|
then
|
||||||
|
echo "Detected Zen5 CPU"
|
||||||
|
wrmsr -a 0xc0011020 0x4400000000000
|
||||||
|
wrmsr -a 0xc0011021 0x4000000000040
|
||||||
|
wrmsr -a 0xc0011022 0x8680000401570000
|
||||||
|
wrmsr -a 0xc001102b 0x2040cc10
|
||||||
|
echo "MSR register values for Zen5 applied"
|
||||||
else
|
else
|
||||||
echo "Detected Zen1/Zen2 CPU"
|
echo "Detected Zen1/Zen2 CPU"
|
||||||
wrmsr -a 0xc0011020 0
|
wrmsr -a 0xc0011020 0
|
||||||
|
|
Loading…
Reference in a new issue