首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tensorflow 1.13.1无法识别GPU

Tensorflow 1.13.1无法识别GPU
EN

Stack Overflow用户
提问于 2019-03-23 00:09:17
回答 1查看 1.7K关注 0票数 2

我安装了图形处理器NVIDIA GeForce GT 740M (计算能力3.0)和以下版本的CUDA、cuDNN和tensorflow。

nvcc -V

代码语言:javascript
复制
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105

cat /usr/local/cuda/include/cudn.h| grep CUDNN_MAJOR -A 2

代码语言:javascript
复制
#define CUDNN_MAJOR 7
#define CUDNN_MINOR 5
#define CUDNN_PATCHLEVEL 0
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

#include "driver_types.h"

pip3 show tensorflow-图形处理器

代码语言:javascript
复制
Name: tensorflow-gpu
Version: 1.13.1
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /home/lightning/.local/lib/python3.6/site-packages
Requires: grpcio, tensorboard, absl-py, termcolor, protobuf, astor, gast, numpy, tensorflow-estimator, wheel, keras-preprocessing, keras-applications, six

pip3显示张量流

代码语言:javascript
复制
Name: tensorflow
Version: 1.13.1
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /home/lightning/.local/lib/python3.6/site-packages
Requires: wheel, keras-preprocessing, numpy, astor, six, protobuf, tensorflow-estimator, termcolor, grpcio, keras-applications, absl-py, tensorboard, gast

但是当我使用print(device_lib.list_local_devices())检查tensorflow检测到的设备时,输出如下...

代码语言:javascript
复制
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 13567978771733496471
, name: "/device:XLA_CPU:0"
device_type: "XLA_CPU"
memory_limit: 17179869184
locality {
}
incarnation: 12191851301991039336
physical_device_desc: "device: XLA_CPU device"
]

如何让tensorflow看到GPU?

附注:tensorflow-gpu是在tensorflow之前安装的,所以按"1) tensorflow-gpu 2) tensorflow“的顺序重新安装效率很低

EN

回答 1

Stack Overflow用户

发布于 2019-03-23 19:28:48

tensorflow需要3.2+的计算能力。

您拥有具有3.0计算能力的GPU

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55303685

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档