==ERROR== Launching the target application failed

Encounter the error “==ERROR== Launching the target application failed.” when I run the command “sudo /usr/local/cuda/bin/ncu matrixMul”. Have no idea what happened.

Can you try specifying the path for the application either as ./matrixMul or providing the complete path?