当我尝试 运行 tensorflow 时,我注意到没有使用 GPU,尽管我使用的是 tensorflow GPU 版本。有什么解决办法吗?
When I tried to run tensorflow, I noticed that the GPU was not being used, though I was using tensorflow GPU version. Any work around for this?
我的安装没有问题,但是警告
"This graphics driver could not find compatible graphics hardware. You may continue installation. but you may not be able to run CUDA applications with this driver. This may occur with graphics hardware that is newer than this toolkit. In that case, it is suggested that you keep your existing driver and install the remaining portions of the CUDA Toolkit",
没有解决。
我强烈建议您使用 Anaconda 发行版。安装 Anaconda 后,您可以创建一个新环境,通过键入以下内容来安装具有 GPU 支持的 Tensorflow:
conda create -n tensorflow_gpuenv tensorflow-gpu # this installs it
conda activate tensorflow_gpuenv # this switches you to the tensorflow environment
更多信息here
我的安装没有问题,但是警告
"This graphics driver could not find compatible graphics hardware. You may continue installation. but you may not be able to run CUDA applications with this driver. This may occur with graphics hardware that is newer than this toolkit. In that case, it is suggested that you keep your existing driver and install the remaining portions of the CUDA Toolkit",
没有解决。
我强烈建议您使用 Anaconda 发行版。安装 Anaconda 后,您可以创建一个新环境,通过键入以下内容来安装具有 GPU 支持的 Tensorflow:
conda create -n tensorflow_gpuenv tensorflow-gpu # this installs it
conda activate tensorflow_gpuenv # this switches you to the tensorflow environment
更多信息here