wktng
June 5, 2013, 12:45pm
1
When I run cuda-memcheck for the CUDA sample cudaDecodeGL, it reported the following errors.
Can we solved the errors in API?
Best Regards,
William NG
cuda-memcheck --leak-check full cudaDecodeGL
CUDA-MEMCHECK
Program hit error 201 on CUDA API call to cuD3D9GetDirect3DDevice
Saved host backtrace up to driver entry point at error
…
Program hit error 1 on CUDA API call to cuMemcpyHtoD_v2
Saved host backtrace up to driver entry point at error
…
Program hit error 201 on CUDA API call to cuCtxSynchronize
Saved host backtrace up to driver entry point at error
LEAK SUMMARY: 0 bytes leaked in 0 allocations
ERROR SUMMARY: 3 errors
wktng
June 5, 2013, 12:46pm
2
CUDA-MEMCHECK
Program hit error 201 on CUDA API call to cuD3D9GetDirect3DDevice
Saved host backtrace up to driver entry point at error
Host Frame:C:\Windows\system32\nvcuda.dll (cuD3D9GetDirect3DDevice + 0x132) [0x17842]
Host Frame:C:\Windows\system32\nvcuvid.dll (cuvidCreateDecoder + 0xd4) [0x18ac4]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (initCudaVideo + 0xd8) [0x51ed8]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (initCudaResources + 0x538) [0x4e098]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (main + 0x12e) [0x500fe]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (__tmainCRTStartup + 0x129) [0x70f09]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (mainCRTStartup + 0xf) [0x70dcf]
Host Frame:C:\Windows\syswow64\kernel32.dll (BaseThreadInitThunk + 0x12) [0x133aa]
Host Frame:C:\Windows\SysWOW64\ntdll.dll (RtlInitializeExceptionChain + 0x63) [0x39ef2]
Host Frame:C:\Windows\SysWOW64\ntdll.dll (RtlInitializeExceptionChain + 0x36) [0x39ec5]
Program hit error 1 on CUDA API call to cuMemcpyHtoD_v2
Saved host backtrace up to driver entry point at error
Host Frame:C:\Windows\system32\nvcuda.dll (cuMemcpyHtoD_v2 + 0x146) [0x68b6]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (updateConstantMemory_drvapi + 0xc8) [0x4ad68]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (cudaPostProcessFrame + 0x79) [0x52e89]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (copyDecodedFrameToTexture + 0x3bf) [0x528ff]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (renderVideoFrame + 0x69) [0x53249]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (display + 0x25) [0x50a75]
Program hit error 201 on CUDA API call to cuCtxSynchronize
Saved host backtrace up to driver entry point at error
Host Frame:C:\Windows\system32\nvcuda.dll (cuCtxSynchronize + 0x11a) [0x26ca]
Host Frame:C:\Windows\system32\nvcuvid.dll (cuvidGetSourceAudioFormat + 0x5b70) [0x10d70]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (VideoDecoder::`scalar deleting destructor’ + 0x2b) [0x5248b]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (freeCudaResources + 0x77) [0x52257]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (cleanup + 0x11f) [0x530ff]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (computeFPS + 0x496) [0x4d726]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (renderVideoFrame + 0xee) [0x532ce]
Host Frame:C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\cudaDecodeGL.exe (display + 0x25) [0x50a75]
LEAK SUMMARY: 0 bytes leaked in 0 allocations
ERROR SUMMARY: 3 errors
vyas
June 15, 2013, 2:04am
3
Hi William NG. Thank you for reporting this. Currently, cuda-memcheck does not support applications that perform CUDA + Direct3D interop.
vyas
June 17, 2013, 6:32pm
4
Also, can you try running the cudaDecodeGL application outside of cuda-memcheck ? Does it succeed ?