[Zaphod-Users] compiling c++ code that uses MPI on Zaphod

Kai Germaschewski kai.germaschewski at unh.edu
Thu Oct 19 13:36:17 EDT 2006


Sadaf Shams wrote:
> I am trying to compile my C++ code that uses MPI on Zaphod. I tried to
> use the compilation instructions at the following page but they do not
> work since they are for C code.
>
> ------------------
> http://www.zaphod.sr.unh.edu/wiki/index.php?title=Run_an_MPI_job
>
> kai at h101:~> make CC=mpicc CFLAGS=-Wall hello
> mpicc -Wall    hello.c   -o hello
> -------------------
>
> How do I compile C++ code that uses MPI on Zaphod?

Well, basically use mpiCC instead of mpicc.

--Kai



More information about the Zaphod-Users mailing list