Wednesday, December 29, 2010

Instrument an MPI program with the Pin tool

Usually an MPI program is started by "mpirun". If mpirun is passed to Pin as the target, Pin will not be able to catch the behavior of each MPI process, and even worse, it can break the code. The solution is to let Pin call mpirun, for example:

mpirun -np 32 pin -t /usr/pin-2.8/source/tools/Memory/obj-intel64/fp.so -o ./bin/foo.out -- ./bin/foo

1 comment:

  1. I failed on this example. Could you show me a more detailed example? I don't know how you write the pintool. I just want to trace mpi programs with the pin tool. Thanks a lot ! My email: zfc09@mails.tsinghua.edu.cn

    ReplyDelete