[Developers] configure for MPI

dave fournier davef at otter-rsch.com
Mon Jan 9 14:45:22 PST 2012


It would be nice if one could just build Derek's MPI code using configure.
Under Linux at least all that is needed (assuming open mpi is properly 
installed)
is to add

if test "${ENABLE_MPI}" = "yes"
then
   CXXFLAGS+="  "
   CXXFLAGS+="\$(shell mpicc --showme:compile) -DUSE_ADMPI"
fi

into the configure script.  Then in linux.mak add the -j 4 option to the 
file
as in

       $(MAKE) -j 4 --directory=linad99 CXX=$(CXX) CXXFLAGS="-DOPT_LIB 
$(CXXFLAGS)" LIBPATH=../${LIBPATH}/linad99-olp DISKDIR=../${DISK} -f 
optg32-rh8-laplace.mak disk

Also it it doesn't happen it would be nice to put the optimzied and 
debug versions into
different directories.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.zip
Type: application/zip
Size: 35878 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20120109/5227b926/attachment-0002.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux.zip
Type: application/zip
Size: 1170 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20120109/5227b926/attachment-0003.zip>


More information about the Developers mailing list