# Execution path of program changes with nvprof

**URL:** <https://forums.developer.nvidia.com/t/execution-path-of-program-changes-with-nvprof/63625>\
**Category:** CUDA Programming and Performance\
**Created:** [July 29, 2018, 6:53pm UTC](https://forums.developer.nvidia.com/t/execution-path-of-program-changes-with-nvprof/63625 "2018-07-29T18:53:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahmood.nt](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mahmood.nt](https://forums.developer.nvidia.com/u/mahmood.nt)\
**Post date:** [July 29, 2018, 6:53pm UTC](https://forums.developer.nvidia.com/t/execution-path-of-program-changes-with-nvprof/63625/1 "2018-07-29T18:53:25Z")

</div>

It seems that nvprof alters the execution of a program!

Really, the program runs without error when I don’t use nvprof. However, when I feed it to nvprof, I get some internal error in the program and not nvidia errors.

The program is gromcas and it uses mpi threads. I think due to the profiling overhead and computation, thread scheduling alters and one threads reaches a point which should get an input from another thread while the other thread is under called by nvprof! I tried some options including --profile-child-processes however, it has no effect.

Something like that… Any one has faced such a problem? I hope that txbob has an idea
