質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

1回答

1583閲覧

TensorflowがGPUを認識しない

mirai0322

総合スコア24

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

1クリップ

投稿2019/01/28 05:02

編集2019/01/28 05:14

実現したいこと

Tensorflow-gpu版でgpuを使用したい

困っていること

機械学習の学習速度が遅いと思い調べてみたところ、gpuを認識していないようでした。

機械学習の最初のアウトプット

python

1Using TensorFlow backend. 22019-01-28 14:14:17.288077: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 32019-01-28 14:14:18.122260: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties: 4name: GeForce GT 630 major: 2 minor: 1 memoryClockRate(GHz): 1.62 5pciBusID: 0000:01:00.0 6totalMemory: 1.00GiB freeMemory: 822.90MiB 72019-01-28 14:14:18.156877: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1461] Ignoring visible gpu device (device: 0, name: GeForce GT 630, pci bus id: 0000:01:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The minimum required Cuda capability is 3.7. 82019-01-28 14:14:18.201366: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnect StreamExecutor with strength 1 edge matrix: 92019-01-28 14:14:18.202673: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0 102019-01-28 14:14:18.214962: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N

gpuが認識されているかチェックしたコード

Python

1from tensorflow.python.client import device_lib 2print(device_lib.list_local_devices())

console

12019-01-28 13:53:34.505727: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 22019-01-28 13:53:35.373934: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties: 3name: GeForce GT 630 major: 2 minor: 1 memoryClockRate(GHz): 1.62 4pciBusID: 0000:01:00.0 5totalMemory: 1.00GiB freeMemory: 822.90MiB 62019-01-28 13:53:35.374676: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1461] Ignoring visible gpu device (device: 0, name: GeForce GT 630, pci bus id: 0000:01:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The minimum required Cuda capability is 3.7. 72019-01-28 13:53:35.390906: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnect StreamExecutor with strength 1 edge matrix: 82019-01-28 13:53:35.392599: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0 92019-01-28 13:53:35.394655: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N 10[name: "/device:CPU:0" 11device_type: "CPU" 12memory_limit: 268435456 13locality { 14} 15incarnation: 14268899556145551426 16]

やったこと

Tensorflowインストール時には対応したCUDAとcuDNNをインストールしました。

環境

GPU:GeForce GT630

CUDA 9.0

nvccv

1nvcc: NVIDIA (R) Cuda compiler driver 2Copyright (c) 2005-2017 NVIDIA Corporation 3Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017 4Cuda compilation tools, release 9.0, V9.0.176

cuDNN 7.0.5

pip

pip

1 2Package Version 3------------------- ---------- 4absl-py 0.6.0 5astor 0.7.1 6certifi 2018.10.15 7chardet 3.0.4 8cloudpickle 0.6.1 9cycler 0.10.0 10dask 0.20.1 11decorator 4.3.0 12flickrapi 2.4.0 13gast 0.2.0 14grpcio 1.15.0 15h5py 2.8.0 16idna 2.7 17Keras 2.2.4 18Keras-Applications 1.0.6 19Keras-Preprocessing 1.0.5 20kiwisolver 1.0.1 21Markdown 3.0.1 22matplotlib 3.0.2 23networkx 2.2 24numpy 1.15.3 25oauthlib 2.1.0 26opencv-python 3.4.4.19 27pandas 0.23.4 28Pillow 5.3.0 29pip 18.1 30protobuf 3.6.1 31py2exe 0.9.2.2 32pyparsing 2.2.2 33python-dateutil 2.7.3 34pytz 2018.7 35PyWavelets 1.0.1 36pywin32 224 37PyYAML 3.13 38requests 2.20.1 39requests-oauthlib 1.0.0 40requests-toolbelt 0.8.0 41scikit-image 0.14.1 42scikit-learn 0.20.0 43scipy 1.1.0 44setuptools 39.1.0 45six 1.11.0 46tensorboard 1.11.0 47tensorflow-gpu 1.11.0 48termcolor 1.1.0 49toolz 0.9.0 50urllib3 1.24.1 51Werkzeug 0.14.1 52wheel 0.32.2

教えていただけますでしょうか。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

stdio

2019/01/28 05:06

お使いのPCにGPUが入っていますか? 入っている場合、何のGPUが入っているか書かないと、意図的に内容が消された質問になってしまいますよ。
_Victorique__

2019/01/28 05:06

学習実行時の最初のアウトプットを載せてもらえますか?
stdio

2019/01/28 05:11

Found device 0 with properties: と書かれていますので、もしかしたらGPU入ってない可能性がありますが...
_Victorique__

2019/01/28 07:15

0というのは0番のGPUって事だと思いますよ
guest

回答1

0

ベストアンサー

Ignoring visible gpu device (device: 0, name: GeForce GT 630, pci bus id: 0000:01:00.0, compute capability: 2.1) with Cuda compute capability 2.1. The minimum required Cuda capability is 3.7.

ここに書いてありますね。
要約すると、「GPU が古くて今の CUDA には対応してないので、無視します。」ということです。

解決方法は新しいGPUを買いましょう。

投稿2019/01/28 05:14

tiitoi

総合スコア21956

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mirai0322

2019/01/28 05:18

きちんとメッセージを読むべきでしたね... ありがとうございます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問