今天打开tensorflow,发现无法正常运行,报错:CUDA runtime implicit initialization on GPU:0 failed. Status: all CUDA-capable devices are busy or unavailable,请问有没有什么解决方法
配置:单显卡RTX3090,cuda11.1,tensorflow2.5.0(自己编译的)
错误排除:
cuda11.1重新安装过并使用测试程序可以正常运行;
显卡在Windows系统下能正常工作,使用之前编译好的openpose包也报出同样的错,应该不是tensorflow的问题,使用
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
能正常返回1,能检测到显卡,无法正常运行
应该不是版本兼容性问题,之前一直正常使用,突然就无法正常运行gpu了。
不知道你这个问题是否已经解决, 如果还没有解决的话: