Cannot make work cudamemcheck on windows 10 SDK GTX 770

Hello dear,

I’m currently tring to make some tests of calculation with CUDA. I have an ‘kernel launch failed with error [cudaErrorIllegalAddress]:“an illegal memory access was encountered”.’ error that I would want to debug, but I cannot make work cudamemcheck.exe.

There is my current configuration:

  • Windows 10 64bits pro
  • GTX 770
  • Visual studio 2019 community

.\nvcc.exe --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:32:27_Pacific_Daylight_Time_2019
Cuda compilation tools, release 10.2, V10.2.89

Compilation line:

“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe” -gencode=arch=compute_30,code=“sm_30,compute_30” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64” -x cu -I"C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -DCPPCONN_PUBLIC_FUNC= -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc142.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\CUDA_matrice_checker\kernel.cu”

Then I’m trying to run cudamemcheck.exe with my program as executable is returning this error:

========= Internal Memcheck Error: Initialization failed
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll (cuProfilerStop + 0x97ba8) [0x2b8928]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll (cuProfilerStop + 0x994dc) [0x2ba25c]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll [0x7a7da]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll (cuProfilerStop + 0x11cc6a) [0x33d9ea]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll [0x134f74]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll [0x1314e3]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll [0x136e53]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll [0x27d37]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispui.inf_amd64_c1f8f32cc9af9677\nvcuda64.dll (cuDevicePrimaryCtxRetain + 0x19a) [0x1cdb6a]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudart::contextStateManager::initPrimaryContext + 0xac) [0x878fc]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudart::contextStateManager::tryInitPrimaryContext + 0x32) [0x88b92]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudart::contextStateManager::initDriverContext + 0x134) [0x87794]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudart::contextStateManager::getRuntimeContextState + 0x66) [0x874e6]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudart::doLazyInitContextState + 0x23) [0x88c33]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudart::cudaApiMallocManaged + 0x35) [0x662f5]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudaMallocManaged + 0xf0) [0x4e170]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (cudaMallocManaged<s_matrice> + 0x3c) [0x9bd5c]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (main + 0x292) [0x9b862]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (invoke_main + 0x39) [0xb11d9]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (__scrt_common_main_seh + 0x12e) [0xb10be]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (__scrt_common_main + 0xe) [0xb0f7e]
========= Host Frame:F:\Documents\Visual Studio 2019\Projects\CUDA_matrice_checker\x64\Debug\CUDA_matrice_checker.exe (mainCRTStartup + 0xe) [0xb126e]
========= Host Frame:C:\WINDOWS\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x17034]
========= Host Frame:C:\WINDOWS\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x52651]
=========
========= ERROR SUMMARY: 1 error

There is my current environment vars:
image

Thank me so much to help me.