发布时间:2024-09-27 09:01
今天在跑PPO程序的时候,出现了下面的错误:
terminate called after throwing an instance of \'c10::HIPError\'
what(): HIP error: hipErrorNoDevice
HIP kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing HIP_LAUNCH_BLOCKING=1.
Exception raised from deviceCount at /pytorch/aten/src/ATen/hip/impl/HIPGuardImplMasqueradingAsCUDA.h:102 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x42 (0x7f839e38ec72 in /root/anaconda3/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: + 0x4b3eaa (0x7f82bb4c2eaa in /root/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_hip.so)
frame #2: torch::autograd::Engine::start_device_threads() + 0x21a (0x7f83082beafa in /root/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #3: + 0xf907 (0x7f83c61fe907 in /lib/x86_64-linux-gnu/libpthread.so.0)
......
我的torch版本是:
torch 1.11.0+rocm4.5.2
cuda 10.2
回退torch版本到1.5
pip install torch==1.5
然后就可以运行了。
python数学建模(SciPy+ Numpy+Pandas)
手把手教你springboot整合bootstrap-table、pagehelper实现表格生成、页面美化、客户端和服务端分页
python数据分析要安装哪些东西_Python数据分析及Anaconda集成包安装
Linux(CentOS7)开机自启动的三种是设置方式详细图解(init.d&fstab&rc.local)
摸了俩小时docker-compose的鱼,Dockerfile常用姿势5分钟速成~
【老生谈算法】matlab实现特征选择、特征提取算法——特征提取算法
武汉大学计算机学院2010情景剧,武汉大学金秋情景剧大赛精彩落幕(组图)
ERR_UNSAFE_PORT浏览器安全问题无法访问的解决方案
[开发杂谈记录] Windows CMD使用socket代理