[yt-users] how do you build mpi4py on a cray
Matthew Turk
matthewturk at gmail.com
Wed Mar 14 11:12:01 PDT 2012
Hi Dave,
On Wed, Mar 14, 2012 at 1:46 PM, Semeraro, B David
<semeraro at illinois.edu> wrote:
> Hi,
>
>
>
> Yt installs easily on our cray system. However, mpi4py seems to depend on
> there being an mpi wrapper which we don’t have. Has anyone built mpi4py on
> on a Cray system in the context of YT. I assume someone has since it is
> installed on Kraken.
Yup, it has been done. In mpi4py there's this mpi.cfg file; we've
stuck into that nothing other than the Cray compiler wrappers, which
in the past have just been cc and CC, with no additional libraries.
You can in theory also use pip, by setting
MPICC=cc pip install mpi4py
Although, if the mpi wrapper doesn't exist, you have to use the source
install. In that case you will have to get the source distribution
(1.2.2 is current, I think?) and edit mpi.cfg so that the explicit
libraries are specified. I remember having done this for Cray before,
but typically it got into things like mpt and some kind of
mountainy-named library that has slipped my mind (aspen?). I think
gcc is also probably a lot easier, just because of the static/shared
issue that can get sticky with Cray compilers.
Let us know how it goes, and if this works out...
> I could do the usual thing and flounder around for a couple of days on my
> own but I thought I would break with tradition and ask the benevolent list
> how to do this.
We're happy to have you here. :)
-Matt
>
>
>
> Thanks,
>
> Dave Semeraro
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
More information about the yt-users
mailing list