I'll be fine

技術ブログ

MPI

【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 に対して行うべ…

【C言語 MPI】MPIをgdbでデバッグする方法

コードのに無限ループを挿入して止める。(場所は適当に) int debugwait = 1; while ( debugwait ); コンパイル時にgdbのオプション(-g)をつける $ mpicc -g -o progname progname.c実行 $ mpirun -np 4 ./progname &実行中のプロセスを調べる $ ps ax | grep…

【C言語 MPI】MPIでのデバッグ

コンパイル時に-ltmpe -lmpeオプションをつけるとMPI関数をトレースしてくれる。 mpicc -o mpi mpi.c -ltmpe -lmpecould not reference to pow could not reference to floor could not reference to ext などのエラーが出た場合は、-lmオプションを付けると…