Sound! Euphonium
251 words
1 minutes
Arch系配置ROCm-6.2
AMD官方并未给Arch系的LINUX准备包,解决方案之一就是从deb偷
从repo.radeon.com
同步源码,大概率需要魔法力量的加持
手动拉取源文件编译
mkdir rocm62cd rocm62cp ~/Downloads/opencl-amd+rocm-llvm_PKGBUILD .makepkg -sfp opencl-amd+rocm-llvm_PKGBUILD
将生成一坨编译好的包 pacman安装
pacman -U *.pkg.tar.zst
rocminfo # 验证安装
同时贴一个hashcat不识别的bug,直接运行报错
Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.
❯ hashcat -b --quiet/sys/bus/pci/devices/0000:c1:00.0/hwmon/hwmon4/pwm1: No such file or directory
-------------------* Hash-Mode 0 (MD5)-------------------
hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION
error: unknown argument: '-flegacy-pass-manager'1 error generated when compiling for gfx1150.
* Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.
* Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.
截至本文的hashcat v6.2.6
的HIP
内核代码尝试使用-flegacy-pass-manager
编译选项,推测ROCm 6.2版本的编译器(可能是较新的LLVM)不再支持此旧版参数。改用OpenCL解决,性能损失未知。
相关issue: Device selection help Hashcat stopped working after messing with opencl packages / Newbie Corner / Arch Linux Forums
相关链接 PKGBUILD https://pan.baidu.com/s/12Jpwt5iCQq7kV3rsMXr0-w?pwd=14sh
PKGBUILD和方案来源archlinux/manjaro安装ROCm-6.2,包含ROCm-llvm - 哔哩哔哩
Arch系配置ROCm-6.2
https://kmk.moe/posts/linux/arch_rocm62/