I am trying to debug an application using cuda-memcheck. What I want to do is to redirect output from my app to one file, but on the other hand, redirect stdout and stderr of the cuda-memcheck into another file. But I cannot get it working. This:
cuda-memcheck "app.exe > stdout1.txt" > memcheck.log 2>&1
does absolutely nothing. But if I delete the redirection inside the quotes (ignoring my app output), it executes. So the question is, how to redirect subcommand's stdout?
--log-file
and/or--save
ofcuda-memcheck
? – kangshiyin