Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

麻烦大佬帮我看看日志, 我训练的时候是否启用了GPU在跑?? #25

Open
anzhe1989 opened this issue May 15, 2021 · 4 comments

Comments

@anzhe1989
Copy link

anzhe1989 commented May 15, 2021

F:\GitHub\ssq\venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm 2020.1\plugins\python\helpers\pydev\pydevconsole.py" --mode=client --port=2435
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['F:\GitHub\ssq', 'F:/GitHub/ssq'])
PyDev console: starting.
Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32

runfile('F:/GitHub/ssq/ssq4all_v4.py', wdir='F:/GitHub/ssq')
2021-05-15 15:22:44.122567: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
WARNING:tensorflow:From F:\GitHub\ssq\poems\resnet.py:69: calling Constant.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0515 15:22:48.327268 3008 deprecation.py:537] From F:\GitHub\ssq\poems\resnet.py:69: calling Constant.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2021-05-15 15:22:48.348672: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-05-15 15:22:48.357103: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library nvcuda.dll
2021-05-15 15:22:48.432472: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:04:00.0 name: GeForce GTX 760 computeCapability: 3.0
coreClock: 1.0975GHz coreCount: 6 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 179.05GiB/s
2021-05-15 15:22:48.432961: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
2021-05-15 15:22:48.525946: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll
2021-05-15 15:22:48.526119: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll
2021-05-15 15:22:48.568220: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cufft64_10.dll
2021-05-15 15:22:48.579939: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library curand64_10.dll
2021-05-15 15:22:48.584193: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2021-05-15 15:22:48.611621: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll
2021-05-15 15:22:48.617375: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
2021-05-15 15:22:48.617576: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1757] 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...
F:\GitHub\ssq\venv\lib\site-packages\tensorflow\python\keras\layers\legacy_rnn\rnn_cell_impl.py:702: UserWarning: tf.nn.rnn_cell.BasicLSTMCell is deprecated and will be removed in a future version. This class is equivalent as tf.keras.layers.LSTMCell, and will be replaced by that in Tensorflow 2.0.
warnings.warn("tf.nn.rnn_cell.BasicLSTMCell is deprecated and will be "
WARNING:tensorflow:tf.nn.rnn_cell.MultiRNNCell is deprecated. This class is equivalent as tf.keras.layers.StackedRNNCells, and will be replaced by that in Tensorflow 2.0.
W0515 15:22:48.860270 3008 rnn_cell_impl.py:1242] tf.nn.rnn_cell.MultiRNNCell is deprecated. This class is equivalent as tf.keras.layers.StackedRNNCells, and will be replaced by that in Tensorflow 2.0.
WARNING:tensorflow:At least two cells provided to MultiRNNCell are the same object and will share weights.
W0515 15:22:48.860270 3008 rnn_cell_impl.py:1254] At least two cells provided to MultiRNNCell are the same object and will share weights.
WARNING:tensorflow:From F:\GitHub\ssq\poems\model.py:93: dynamic_rnn (from tensorflow.python.ops.rnn) is deprecated and will be removed in a future version.
Instructions for updating:
Please use keras.layers.RNN(cell), which is equivalent to this API
W0515 15:22:48.942326 3008 deprecation.py:339] From F:\GitHub\ssq\poems\model.py:93: dynamic_rnn (from tensorflow.python.ops.rnn) is deprecated and will be removed in a future version.
Instructions for updating:
Please use keras.layers.RNN(cell), which is equivalent to this API
F:\GitHub\ssq\venv\lib\site-packages\tensorflow\python\keras\engine\base_layer_v1.py:1727: UserWarning: layer.add_variable is deprecated and will be removed in a future version. Please use layer.add_weight method instead.
warnings.warn('layer.add_variable is deprecated and '
WARNING:tensorflow:From F:\GitHub\ssq\venv\lib\site-packages\tensorflow\python\keras\layers\legacy_rnn\rnn_cell_impl.py:753: calling Zeros.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0515 15:22:48.992315 3008 deprecation.py:537] From F:\GitHub\ssq\venv\lib\site-packages\tensorflow\python\keras\layers\legacy_rnn\rnn_cell_impl.py:753: calling Zeros.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
2021-05-15 15:22:50.472322: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-05-15 15:22:50.472797: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267]
2021-05-15 15:22:50.473007: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-05-15 15:22:50.508668: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:196] None of the MLIR optimization passes are enabled (registered 0 passes)

start training...

till 100000

@anzhe1989
Copy link
Author

我的cpu使用为什么还是这么高???
image

@Liang-yc
Copy link
Owner

2021-05-15 15:22:48.584193: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found 2021-05-15 15:22:48.611621: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll 2021-05-15 15:22:48.617375: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
你是在用CPU跑,你cuda和cudnn可能没装好,与tensorflow版本不匹配。

@anzhe1989
Copy link
Author

anzhe1989 commented May 16, 2021

2021-05-15 15:22:48.584193: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found 2021-05-15 15:22:48.611621: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll 2021-05-15 15:22:48.617375: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
你是在用CPU跑,你cuda和cudnn可能没装好,与tensorflow版本不匹配。

谢谢大佬, 版本已经安装正确.但是还是没有使用到GPU..
现在说的是gpu需要一个最低的3.5的计算能力,而我的GPU计算能力才3.0.
这种情况下,有没有办法修改tensorflow的配置,???把最低的计算能力修改为3.0??
下面是gpu的计算能力提示信息
Ignoring gpu device with Cuda compute capability 3.0. The minimum required Cuda capability is 3.5.

@Liang-yc
Copy link
Owner

Liang-yc commented May 17, 2021

2021-05-15 15:22:48.584193: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found 2021-05-15 15:22:48.611621: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll 2021-05-15 15:22:48.617375: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
你是在用CPU跑,你cuda和cudnn可能没装好,与tensorflow版本不匹配。

谢谢大佬, 版本已经安装正确.但是还是没有使用到GPU..
现在说的是gpu需要一个最低的3.5的计算能力,而我的GPU计算能力才3.0.
这种情况下,有没有办法修改tensorflow的配置,???把最低的计算能力修改为3.0??
下面是gpu的计算能力提示信息
Ignoring gpu device with Cuda compute capability 3.0. The minimum required Cuda capability is 3.5.

安装的问题不要问我,你看下这个链接。嫌麻烦就换显卡或者租GPU服务器训练。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants