微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

为什么 cuda-memcheck 没有初始化?

如何解决为什么 cuda-memcheck 没有初始化?

我正在尝试使用 cuda-memcheck 来查看我的 cuda 代码中是否存在内存泄漏。我在命令窗口中将目录更改为程序目录,然后使用 cuda-memcheck TUI_CUDA.exe。但是,我收到以下错误

========= Internal Memcheck Error: Memcheck Failed initialization as some other tools is currently attached. Please make sure that nvprof and Nsight Visual Studio Edition are not being run simultaneously
=========     Saved host backtrace up to driver entry point at error
=========     Host Frame:C:\Windows\system32\DriverStore\FileRepository\nvhmi.inf_amd64_b3e6a482a5a3f312\nvcuda64.dll (cuProfilerStop + 0x97ba8) [0x2b8928]
=========     Host Frame:C:\Windows\system32\DriverStore\FileRepository\nvhmi.inf_amd64_b3e6a482a5a3f312\nvcuda64.dll (cuProfilerStop + 0x994dc) [0x2ba25c]
=========     Host Frame:C:\Windows\system32\DriverStore\FileRepository\nvhmi.inf_amd64_b3e6a482a5a3f312\nvcuda64.dll [0x72c3a]
=========     Host Frame:C:\Windows\system32\DriverStore\FileRepository\nvhmi.inf_amd64_b3e6a482a5a3f312\nvcuda64.dll [0x16c1f0]
=========     Host Frame:C:\Windows\system32\DriverStore\FileRepository\nvhmi.inf_amd64_b3e6a482a5a3f312\nvcuda64.dll (cuInit + 0x1f4) [0x1cb514]
=========     Host Frame:C:\Windows\SYstem32\nvcuda.dll (cuInit + 0xa9) [0x1f8949]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (cudart::globalState::loadDriverInternal + 0x7a) [0xd14a]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (cudart::__loadDriverInternalUtil + 0x31) [0x7c01]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (cudart::cuosOnce + 0x26) [0x3b36]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (cudart::globalState::loadDriver + 0x2b) [0xd07b]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (cudart::globalState::initializeDriver + 0x17) [0x8b67]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (cudaGetDeviceCount + 0x3f) [0x26ef]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (GPUModelPrint + 0x3c) [0x10cfc]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (main + 0x62) [0x17832]
=========     Host Frame:C:\Users\moein.m\Documents\C++\ImageReconstruction_VisualStudioCode\Project7_TUI_CUDA3\TUI_CUDA\x64\Release\TUI_CUDA.exe (__scrt_common_main_seh + 0x10c) [0x1b04c]
=========     Host Frame:C:\Windows\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x12784]
=========     Host Frame:C:\Windows\SYstem32\ntdll.dll (RtlUserThreadStart + 0x21) [0x70d51]
=========
========= LEAK SUMMARY: 0 bytes leaked in 0 allocations
========= ERROR SUMMARY: 1 error

我没有运行第一行中提到的两个程序中的任何一个,所以我不确定出了什么问题。你能帮忙解决这个问题吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。