conda环境安装pytorch,版本不能太新,否则有会有:0:rocdevice.cpp :2673: 1263352162 us: 21870: [tid:0x7f64e3eff640] Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agent attempted to access memory beyond the largest legal address. code: 0x29这样的错误
pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 torchaudio==0.13.1+rocm5.2 -f https://download.pytorch.org/whl/rocm5.2/torch_stable.html
安装opencl,这个在gate守门员会用,训练是不用的
sudo pacman -S rocm-opencl-runtime
最后在python前面加上,防止遇到rocBLAS error: Cannot read /opt/rocm/lib/rocblas/library/TensileLibrary.dat: Illegal seek for GPU arch : gfx1010
List of available TensileLibrary Files :
“/opt/rocm/lib/rocblas/library/TensileLibrary_lazy_gfx900.dat”
“/opt/rocm/lib/rocblas/library/TensileLibrary_lazy_gfx1100.dat”
“/opt/rocm/lib/rocblas/library/TensileLibrary_lazy_gfx1030.dat”
“/opt/rocm/lib/rocblas/library/TensileLibrary_lazy_gfx1102.d

最低0.47元/天 解锁文章
3624

被折叠的 条评论
为什么被折叠?



