InternalError: cudaGetDevice() failed. Status: ...

1年前 ⋅ 513 阅读

InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version 新配置的服务器,安装完成环境后,执行python代码:

os.environ["CUDA_VISIBLE_DEVICES"] = "0"
    with tf.device('/gpu:0'):

出现 InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version错误:
解决办法:
可能是你没有安装显卡驱动导致的,安装指定的显卡驱动,一般安装最新的即可