質問編集履歴
1
conda innstallに関しての記述の追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
tensorflowにGPUを認識させる
|
1
|
+
anacondaの仮想環境でtensorflowにGPUを認識させる
|
test
CHANGED
@@ -1,155 +1,9 @@
|
|
1
|
-
tesorflowを用いて機械学習を行うために一通りインストールしたのですが, うまく行きません
|
1
|
+
tesorflowを用いて機械学習を行うために一通りインストールしたのですが, うまく行きません anacondaによる仮想環境を使用しています
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
tesorflow-2.1.0 cudnn 7.6.5 cudatoolkit 10.1.243 keras 2.3.1
|
6
2
|
|
7
3
|
GPU RTX3090です
|
8
4
|
|
9
5
|
|
10
6
|
|
11
|
-
|
7
|
+
RTX3090では, CUDA11.2, cuDNN8.1 tesorflow2.6.0での環境がテスト済みのビルドとなっていましたが, conda installを利用してのCUDA11.2, cuDNN8.1 tesorflow2.6.0のインストールが上手く行きません.
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
device_lib.list_local_devices()
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
```
|
20
|
-
|
21
|
-
このコードを実行すると以下のメッセージが出力されます
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
```ここに言語を入力
|
26
|
-
|
27
|
-
I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
|
28
|
-
|
29
|
-
2021-11-04 14:36:54.758161: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3799900000 Hz
|
30
|
-
|
31
|
-
2021-11-04 14:36:54.758779: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b5b8e90a30 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
|
32
|
-
|
33
|
-
2021-11-04 14:36:54.758922: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
|
34
|
-
|
35
|
-
2021-11-04 14:36:54.760192: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
|
36
|
-
|
37
|
-
2021-11-04 14:36:54.787275: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
|
38
|
-
|
39
|
-
2021-11-04 14:36:54.787986: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1555] Found device 0 with properties:
|
40
|
-
|
41
|
-
pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 3090 computeCapability: 8.6
|
42
|
-
|
43
|
-
coreClock: 1.695GHz coreCount: 82 deviceMemorySize: 23.70GiB deviceMemoryBandwidth: 871.81GiB/s
|
44
|
-
|
45
|
-
2021-11-04 14:36:54.788965: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
|
46
|
-
|
47
|
-
2021-11-04 14:36:54.812680: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
|
48
|
-
|
49
|
-
2021-11-04 14:36:54.827505: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
|
50
|
-
|
51
|
-
2021-11-04 14:36:54.830551: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
|
52
|
-
|
53
|
-
2021-11-04 14:36:54.852475: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
|
54
|
-
|
55
|
-
2021-11-04 14:36:54.855412: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
|
56
|
-
|
57
|
-
2021-11-04 14:36:54.891791: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
|
58
|
-
|
59
|
-
2021-11-04 14:36:54.891870: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
|
60
|
-
|
61
|
-
2021-11-04 14:36:54.892359: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
|
62
|
-
|
63
|
-
2021-11-04 14:36:54.892791: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1697] Adding visible gpu devices: 0
|
64
|
-
|
65
|
-
2021-11-04 14:36:54.893066: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
|
66
|
-
|
67
|
-
2021-11-04 14:36:54.955964: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1096] Device interconnect StreamExecutor with strength 1 edge matrix:
|
68
|
-
|
69
|
-
2021-11-04 14:36:54.955986: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] 0
|
70
|
-
|
71
|
-
2021-11-04 14:36:54.955991: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] 0: N
|
72
|
-
|
73
|
-
2021-11-04 14:36:54.956095: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
|
74
|
-
|
75
|
-
2021-11-04 14:36:54.956556: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
|
76
|
-
|
77
|
-
2021-11-04 14:36:54.956993: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
|
78
|
-
|
79
|
-
2021-11-04 14:36:54.957421: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1241] Created TensorFlow device (/device:GPU:0 with 22219 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 3090, pci bus id: 0000:01:00.0, compute capability: 8.6)
|
80
|
-
|
81
|
-
2021-11-04 14:36:54.959230: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b5b9a3f090 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
|
82
|
-
|
83
|
-
2021-11-04 14:36:54.959241: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 3090, Compute Capability 8.6
|
84
|
-
|
85
|
-
[name: "/device:CPU:0"
|
86
|
-
|
87
|
-
device_type: "CPU"
|
88
|
-
|
89
|
-
memory_limit: 268435456
|
90
|
-
|
91
|
-
locality {
|
92
|
-
|
93
|
-
}
|
94
|
-
|
95
|
-
incarnation: 15997677644835690333
|
96
|
-
|
97
|
-
, name: "/device:XLA_CPU:0"
|
98
|
-
|
99
|
-
device_type: "XLA_CPU"
|
100
|
-
|
101
|
-
memory_limit: 17179869184
|
102
|
-
|
103
|
-
locality {
|
104
|
-
|
105
|
-
}
|
106
|
-
|
107
|
-
incarnation: 11730374788246246120
|
108
|
-
|
109
|
-
physical_device_desc: "device: XLA_CPU device"
|
110
|
-
|
111
|
-
, name: "/device:GPU:0"
|
112
|
-
|
113
|
-
device_type: "GPU"
|
114
|
-
|
115
|
-
memory_limit: 23299073639
|
116
|
-
|
117
|
-
locality {
|
118
|
-
|
119
|
-
bus_id: 1
|
120
|
-
|
121
|
-
links {
|
122
|
-
|
123
|
-
}
|
124
|
-
|
125
|
-
}
|
126
|
-
|
127
|
-
incarnation: 10768575702034994108
|
128
|
-
|
129
|
-
physical_device_desc: "device: 0, name: NVIDIA GeForce RTX 3090, pci bus id: 0000:01:00.0, compute capability: 8.6"
|
130
|
-
|
131
|
-
, name: "/device:XLA_GPU:0"
|
132
|
-
|
133
|
-
device_type: "XLA_GPU"
|
134
|
-
|
135
|
-
memory_limit: 17179869184
|
136
|
-
|
137
|
-
locality {
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
incarnation: 1904012426118440724
|
142
|
-
|
143
|
-
physical_device_desc: "device: XLA_GPU device"
|
144
|
-
|
145
|
-
]
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
```
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
GPUは表示されているものの, 謎の文がたくさん出ており, 正しく認識されているのかわかりません.また, 実際に学習を行う際にCPUを使ってしまいます.コードが悪いのか, 環境が悪いのかわからないため この表示でGPUは正しく認識されているのか教えていただきたいです.
|
9
|
+
どなたか教えていただけると幸いです
|