【问题标题】:Tensorflow Warning - Could not load dynamic library 'cupti64_101.dll'; dlerror: cupti64_101.dll not foundTensorflow 警告 - 无法加载动态库“cupti64_101.dll”; dlerror: cupti64_101.dll 未找到
【发布时间】:2020-05-10 05:46:32
【问题描述】:

我见过其他与 cupti dll 错误相关的类似问题。但是,答案似乎是dll位置需要在路径中。好吧,我的 dll 在路径中。标题中列出的警告之后是几个与 cupti dll 未加载有关的错误。

(venv) PS D:\Projects\tensorboard> $env:path -split ";" 
D:\Projects\tensorboard\venv/Scripts 
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin 
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp 
C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem 
C:\Windows\System32\WindowsPowerShell\v1.0\ 
C:\Windows\System32\OpenSSH\ 
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common 
C:\Program Files\Microsoft VS Code\bin 
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\CUPTI\libx64 
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include 
C:\Program Files\Git\cmd C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.4.0\ 
C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR C:\Users\Mark\AppData\Local\Programs\Python\Python37\Scripts\ C:\Users\Mark\AppData\Local\Programs\Python\Python37\ 
C:\Users\Mark\AppData\Local\Microsoft\WindowsApps 
(venv) PS D:\Projects\tensorboard>

Configuration:
Windows 10 Pro Version 1909
Python 3.7.7
Tensorflow 2.2.0
Tensorboard 2.2.1
cuda toolkit 10.1

这里是一些警告/错误消息的快照。后面还有几个。

2020-05-10 00:48:37.426822: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cupti64_101.dll'; dlerror: cupti64_101.dll not found
2020-05-10 00:48:37.432568: E tensorflow/core/profiler/internal/gpu/cupti_tracer.cc:1408] function cupti_interface_->Subscribe( &subscriber_, (CUpti_CallbackFunc)ApiCallback, this)failed with error CUPTI could not be loaded or symbol could not be found.

【问题讨论】:

  • 我在你的实际路径中看到了lib64,显示了目录内容的图片,在你的路径变量中给出的PATH中看到了libx64:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\CUPTI\libx64
  • 就是这样!我完全掩盖了这一点。我修复了它,现在它可以工作了。太感谢了。我怀疑这种不匹配可能是因为我在过去几个月安装了多个版本的 CUDA。再次感谢。也许您可以在下面提交您的答案并获得荣誉。

标签: python tensorflow


【解决方案1】:

在此处(回答部分)提供解决方案,即使它出现在评论部分中,也是为了社区的利益。

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\CUPTI\libx64 上没有 cupti64_101.dll 文件。

由于此Could not load dynamic library 'cupti64_101.dll'; dlerror: cupti64_101.dll not found 警告在尝试运行 Tensorflow 时出现。

将cupti64_101.dll 复制到上述位置后,问题已解决。

【讨论】:

  • 已将 dll 添加到 libx64,但现在收到更多错误消息:Subscribe( &subscriber_, (CUpti_CallbackFunc)ApiCallback, this)failed with error CUPTI_ERROR_INSUFFICIENT_PRIVILEGES and ActivityRegisterCallbacks(AllocCuptiActivityBuffer, FreeCuptiActivityBuffer)failed with error CUPTI_ERROR_INSUFFICIENT_PRIVILEGES and EnableCallback ,subscriber_, CUPTI_CB_DOMAIN_DRIVER_API, cbid) 失败并出现错误 CUPTI_ERROR_NOT_INITIALIZED 你能建议吗?
  • 见here
  • 下次找到此答案时请注意:重新启动 Visual Studio 以应用路径更改
猜你喜欢
  • 2020-09-04
  • 2020-11-21
  • 2021-11-14
  • 2021-04-12
  • 2020-11-23
  • 1970-01-01
  • 2021-07-25
  • 2017-11-30
  • 1970-01-01
相关资源
最近更新 更多