我还看到了与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.
答案 0 :(得分:1)
即使在注释部分中也提供了解决方案(答案部分),以维护社区的利益。
在cupti64_101.dll
上没有C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\CUPTI\libx64
文件。
由于尝试运行Tensorflow时出现此Could not load dynamic library 'cupti64_101.dll'; dlerror: cupti64_101.dll not found
警告。
cupti64_101.dll
复制到上述位置后,问题已解决。