[yt-users] how do you build mpi4py on a cray
Semeraro, B David
semeraro at illinois.edu
Thu Mar 15 13:53:16 PDT 2012
Hi Matt,
I was able to modify the mpi.cfg enough to make it build. I also got it to install. It was not nearly as much trouble as I anticipated. Helloworld.py works so I think we are good to transfer to the ess system. Thanks for the help.
dave
-----Original Message-----
From: yt-users-bounces at lists.spacepope.org [mailto:yt-users-bounces at lists.spacepope.org] On Behalf Of Matthew Turk
Sent: Wednesday, March 14, 2012 1:12 PM
To: Discussion of the yt analysis package
Subject: Re: [yt-users] how do you build mpi4py on a cray
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
>
_______________________________________________
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