(c) Microsoft Corporation。保留所有权利。
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin>cuda-memcheck.exe F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe
========= CUDA-MEMCHECK
CUDA Error:
File: F:\VsProject\CudaProject\add1_gpu\add1_gpu\check1api.cu
Line: 44
Error code: 9
Error text: invalid configuration argument
========= Program hit cudaErrorInvalidConfiguration (error 9) due to "invalid configuration argument" on CUDA API call to cudaLaunchKernel.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0xa0c38) [0x2e1d08]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0xa32fa) [0x2e43ca]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll [0x8578e]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0x125dda) [0x366eaa]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0x145ed2) [0x386fa2]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (cudaLaunchKernel + 0x202) [0x19642]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (cudaLaunchKernel<char> + 0x7b) [0x7aaeb]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (__device_stub__Z3addPKdS0_Pdi + 0x233) [0x7a953]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (add + 0x32) [0x7a022]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (main + 0x47d) [0x7a4ad]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (invoke_main + 0x39) [0x7d0c9]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (__scrt_common_main_seh + 0x12e) [0x7cfae]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (__scrt_common_main + 0xe) [0x7ce6e]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (mainCRTStartup + 0xe) [0x7d15e]
========= Host Frame:C:\WINDOWS\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x17034]
========= Host Frame:C:\WINDOWS\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x52651]
=========
========= Program hit cudaErrorInvalidConfiguration (error 9) due to "invalid configuration argument" on CUDA API call to cudaGetLastError.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0xa0c38) [0x2e1d08]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0xa32fa) [0x2e43ca]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll [0x8578e]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0x125dda) [0x366eaa]
========= Host Frame:C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_19c79fb6254e3b11\nvcuda64.dll (cuProfilerStop + 0x145ed2) [0x386fa2]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (cudaGetLastError + 0xfa) [0xd2fa]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (main + 0x482) [0x7a4b2]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (invoke_main + 0x39) [0x7d0c9]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (__scrt_common_main_seh + 0x12e) [0x7cfae]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (__scrt_common_main + 0xe) [0x7ce6e]
========= Host Frame:F:\VsProject\CudaProject\add1_gpu\x64\Debug\add1_gpu.exe (mainCRTStartup + 0xe) [0x7d15e]
========= Host Frame:C:\WINDOWS\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x17034]
========= Host Frame:C:\WINDOWS\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x52651]
=========
========= ERROR SUMMARY: 2 errors
相关代码连接:: 检查核函数