Python Tensorflow-GPU:“成功打开动态库cudart64_101.dll" [英] Python Tensorflow-GPU: "Successfully opened dynamic libraray cudart64_101.dll"

查看:85
本文介绍了Python Tensorflow-GPU:“成功打开动态库cudart64_101.dll"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前只是想让 tensorflow-gpu 在我的电脑上工作.当我运行我的脚本时,只包含:

I am currently just trying to get tensorflow-gpu to work on my PC. When I run my script, consisting only of:

import tensorflow
print("Test")

...然后我得到输出:

... then I get the output:

2020-04-24 18:16:53.660911: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Test

Process finished with exit code 0

现在,代码编译得很好,退出代码 0 应该意味着一切正常.我对这一切都很陌生,所以如果这是一个愚蠢的问题,请原谅我,但是一切真的好吗?我正在使用 PyCharm IDE,它以红色打印2020-04-24 [...]"部分,其他所有内容均为浅灰色.此外,编译需要几秒钟的时间,即使我所做的只是导入 tensorflow.

Now, the code compiles just fine and exit code 0 should mean, that everything is alright. I am new to this entire thing, so forgive me if this is a stupid question, but is everything really alright? I am using the PyCharm IDE, and it prints the "2020-04-24 [...]" part in red, everything else is light-gray. Besides, it takes a few seconds to compile, even though all I am doing is importing tensorflow.

红色通常意味着错误,我发现编译时间太长了.这正常吗?

Red usually means error, and I find the compile time to be far too long. Is this normal?

如果没有,我该如何解决?

And if not, how do I fix it?

推荐答案

一切真的好吗?

是的,一切都很好.

它们只是信息消息,因为它们以 I 为前缀,如果是错误消息,它们将以 EW 为前缀> 警告如下图

They are just the information message as they are prefixed with I, if it is the error message they would be prefixed with E or W for warnings are as shown below

2020-12-30 21:30:27.549172: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cupti64_101.dll

2020-12-30 21:30:27.599977: W tensorflow/core/framework/allocator.cc:101] Allocation of 37171200 exceeds 10% of system memory.

2021-12-30 21:30:27.704083: E tensorflow/core/profiler/internal/gpu/cupti_tracer.cc:1307] function cupti_interface_->Subscribe( &subscriber_, (CUpti_CallbackFunc)ApiCallback, this)failed with error CUPTI_ERROR_INSUFFICIENT_PRIVILEGES

这篇关于Python Tensorflow-GPU:“成功打开动态库cudart64_101.dll"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆