jinzishuai / learn2deeplearn

A repository of codes in learning deep learning
GNU General Public License v3.0
13 stars 1 forks source link

Install Tensorflow-GPU on new Lenovo Legion Laptop #50

Open jinzishuai opened 4 years ago

jinzishuai commented 4 years ago

image

See https://github.com/jinzishuai/learn2deeplearn/issues/42

jinzishuai commented 4 years ago

Currently have tensorflow-2.2.0 installed

pip3 list shows:

tensorflow             2.2.0
tensorflow-estimator   2.2.0

Got Warnings

PS C:\ZeroBox\src\zerobox-v2> & C:/Users/jinzi/AppData/Local/Microsoft/WindowsApps/python.exe c:/ZeroBox/src/zerobox-v2/defectDetection.py
2020-07-27 16:58:32.124146: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-07-27 16:58:32.133967: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
WARNING:tensorflow:From c:\ZeroBox\src\zerobox-v2\keras_segmentation\train.py:15: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead.

2020-07-27 16:58:34.698864: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: 
AVX2
2020-07-27 16:58:34.732539: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1e8740fed30 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-07-27 16:58:34.741039: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-07-27 16:58:34.762923: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-07-27 16:58:34.806445: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: 
pciBusID: 0000:01:00.0 name: GeForce GTX 1660 Ti computeCapability: 7.5
coreClock: 1.59GHz coreCount: 24 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 268.26GiB/s
2020-07-27 16:58:34.818880: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-07-27 16:58:34.829232: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found
2020-07-27 16:58:34.837866: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll 
not found
2020-07-27 16:58:34.849323: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2020-07-27 16:58:34.856961: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2020-07-27 16:58:34.862226: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cusparse64_10.dll not found
2020-07-27 16:58:34.876145: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found
2020-07-27 16:58:34.889167: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2020-07-27 16:58:35.045620: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-07-27 16:58:35.056734: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108]      0 
2020-07-27 16:58:35.060866: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0:   N
2020-07-27 16:58:35.072212: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1e87f93c4b0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-07-27 16:58:35.088435: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce GTX 1660 Ti, Compute Capability 7.5
time cost 0.7107565402984619 s
time cost 0.6408283710479736 s
time cost 0.6983718872070312 s
time cost 0.5595479011535645 s
time cost 0.6661927700042725 s
time cost 0.5685646533966064 s
time cost 0.5416412353515625 s
THE END
PS C:\ZeroBox\src\zerobox-v2>
jinzishuai commented 4 years ago

note that there is no longer a separate GPU package

https://www.tensorflow.org/install/gpu: no longer happens sincee version 1.15

image

jinzishuai commented 4 years ago

Installation

jinzishuai commented 4 years ago

Worked but it takes a long time to start

https://github.com/tensorflow/tensorflow/issues/30256