Hi,
Thanks for the help. If anyone is interested mpi/c++ code can be
compiled as a shared library using:
MAKEFLAGS="CXX=mpicxx CXXFLAGS=-DMPICH_IGNORE_CXX_SEEK
SHLIB_CXXLD=mpicxx" R CMD SHLIB ?.cc -o ?.so
However, I would like to execute the C code using mpiexec (otherwise
only a single processor is seen). I can not find any documentation on
this, but was wondering whether this too is possible.
Thanks,
Jarrod.
Prof Brian Ripley wrote:
> On Sun, 21 May 2006, Jarrod Hadfield wrote:
>
>> Hi,
>>
>> I am having trouble compiling some parallelised c++ code using R CMD
>> SHLIB because I cannot seem to specify which compiler is used. The
>> default uses g++ and I would like to use mpicxx distributed with
>> MPICH-2. Is this possible?
>
>
> Yes, and ?SHLIB points you to the documentation of how to do so.
> What about that did you not understand? E.g.
>
> MAKEFLAGS="CC=mpicxx" R CMD SHLIB *.c
>
> should work, amongst other ways.
>
--
Department of Animal and Plant Sciences,
University of Sheffield,
Sheffield,
S10 2TN, UK.
Tel (+44) (0)114 222 0112
Fax (+44) (0)114 222 0002