3
TensorflowはデフォルトですべてのGPUメモリを割り当てますが、新しい設定は実際には9588 MiB/11264 MiBだけです。私は私の古い設定のような約11.000MiBを期待した。Tensorflowは完全なGPUメモリを割り当てません
Tensorflow情報はこちら:
$ from tensorflow.python.client import device_lib
$ print(device_lib.list_local_devices())
[name: "/cpu:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 9709578925658430097
, name: "/gpu:0"
device_type: "GPU"
memory_limit: 9273834701
locality {
bus_id: 1
}
incarnation: 16668416364446126258
physical_device_desc: "device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:03:00.0"
, name: "/gpu:1"
device_type: "GPU"
memory_limit: 9273834701
locality {
bus_id: 1
}
incarnation: 2094938711079475130
physical_device_desc: "device: 1, name: GeForce GTX 1080 Ti, pci bus id: 0000:04:00.0"
]
のnvidia-smi.exe氏は述べています:
OS:Windows10 ライブラリ:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 385.41 Driver Version: 385.41 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... WDDM | 00000000:03:00.0 Off | N/A |
| 23% 35C P8 13W/250W | 9284MiB/11264MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... WDDM | 00000000:04:00.0 Off | N/A |
| 23% 38C P2 55W/250W | 9146MiB/11264MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1280 C+G ...mmersiveControlPanel\SystemSettings.exe N/A |
| 0 1448 C ...ers\Administrator\Anaconda3\pythonw.exe N/A |
| 0 1560 C+G Insufficient Permissions N/A |
| 0 4120 C+G ...6)\Google\Chrome\Application\chrome.exe N/A |
| 0 4580 C+G C:\Windows\explorer.exe N/A |
| 0 5188 C+G ...t_cw5n1h2txyewy\ShellExperienceHost.exe N/A |
| 0 5324 C+G ...dows.Cortana_cw5n1h2txyewy\SearchUI.exe N/A |
| 1 1228 C+G Insufficient Permissions N/A |
| 1 1244 C+G Insufficient Permissions N/A |
| 1 1448 C ...ers\Administrator\Anaconda3\pythonw.exe N/A |
+-----------------------------------------------------------------------------+
私の環境ではこれですのpython 3.6、2.0をkeras .8、テンソルフロー-gpu1.3.0、CUDA8.0CUDNN6.0
誰理由を知っている?