为什么 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 (将#修改为@)