I'll be fine

技術ブログ

【C言語 MPI】MPIUnitのsampleを動かすまで

環境:MPICH2, CentOS 5.7

$ wget 'http://sourceforge.jp/frs/redir.php?m=keihanna&f=%2Fmpiunit%2F29902%2FMPIUnit-1.6.1.tar.gz'
$ tar xzvf MPIUnit-1.6.1.tar.gz
$ cd MPIUnit-1.6.1
$ ./configure
$ make
$ make install
makeで 'all に対して行うべき事はありません' と言われても無視
$ vim /etc/ld.so.conf
/usr/local/lib を追記
$ cd sample
$ make mpiut

ubuntuなどでundefined referenceがでる場合は
$ apt-get install binutils-gold

参考:本家(http://sourceforge.jp/projects/mpiunit/wiki/FrontPage)