Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist
From: Ralph Castain (rhc_at_[hidden])
Date: 2011-03-24 22:03:25


On Mar 24, 2011, at 8:00 PM, Silas Silva wrote:

> Hi Paul,
>
> On Thu, Mar 24, 2011 at 06:52:23PM -0700, Paul H. Hargrove wrote:
>> Silas,
>>
>> FYI: openmpi-1.4.1 is in the package repo for NetBSD 5.1. So, you
>> might not need to build from scratch at all, depending on your
>> desired use.
>
> I'm actually not building it from scratch :-) I'm using the pkgsrc
> package manager (www.pkgsrc.org) that is source based and create binary
> packages in the local computer. The problem is that the contents of the
> package differs in the case when /proc is mounted...
>
>> Jeff,
>>
>> When available (remember that unlike Linux /proc might not be
>> mounted by default) the /proc/cpuinfo and /proc/meminfo on NetBSD
>> 5.1 are (nearly?) identical to the Linux ones. See below for an
>> example.
>>
>> To "prefetch" the next logical question:
>> On a FreeBSD 8.1 system I find that /proc exists but does not
>> contain cpuinfo or meminfo
>> On a OpenBSD 4.8 system I find that there is no /proc
>
> I was just pasting NetBSD's /proc/{cpuinfo,meminfo}. Thanks for doing
> that :-) But yeah, other systems might not have this. I know working on
> portability can be painful. That is why most projects support GNU/Linux
> only and let other systems developers port their application. Anyway,
> can /proc be unmounted in GNU/Linux somehow?

Why would you want to do that, if it even were possible (which I'm pretty sure it isn't)?

Like I said earlier, you don't need sysinfo to run an MPI job. So if it isn't being built, you can ignore it.

If you are having problems building for some reason, then just add this to your configure:

--enable-mca-no-build=sysinfo

and we won't even try to build it.

>
> Thank you very much.
>
> --
> Silas Silva
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel