<div dir="ltr"><div>Dear all,</div><div> </div><div>When adding #include "mpi.h" and building a single process with mpi, I find that the single process mpi job runs very much slower than a single thread process built with gcc. i.e. 150 to 200% slower, and run as a standalone executable.</div>
<div> </div><div>That is, for example</div><div> </div><div>gcc mycode.c -o mycode.exe</div><div>./mycode</div><div> </div><div> </div><div>will run in 100 seconds.</div><div> </div><div> </div><div>Adding #include "mpi.h" to mycode.c</div>
<div> </div><div>mpicc mycode.c -o mycode.exe</div><div>mpirun -n 1 mycode.exe</div><div> </div><div> </div><div>will take 180 to 400 seconds to run.</div><div> </div><div>This varies from system to system on intel, Sparc or IBM based systems.</div>
<div> </div><div>Can anyone explain this offhand ? Has anyone else experienced this ?</div><div> </div><div> </div><div> </div></div>