Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-25 Thread Ralph Castain
Yeah, that's probably the right soln for now. Like I said, it will be changed in the not-too-distant future anyway. Thx! On Mar 24, 2011, at 8:22 PM, Paul H. Hargrove wrote: > Ralph, > > To be honest any joker can probably have a "/proc" under any non-Linux OS - > there is noting sacred abou

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Paul H. Hargrove
Ralph, To be honest any joker can probably have a "/proc" under any non-Linux OS - there is noting sacred about the name. So, would in not make the most sense (both simple and robust) to just check $target_os and build exclusively for Linux? -Paul On 3/24/2011 7:01 PM, Ralph Castain wrot

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Paul H. Hargrove
replies below... On 3/24/2011 7:00 PM, Silas Silva wrote: 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 ca

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Silas Silva
On Thu, Mar 24, 2011 at 08:03:25PM -0600, Ralph Castain wrote: > Why would you want to do that, if it even were possible (which I'm > pretty sure it isn't)? I'm not a GNU/Linux user, so I don't know whether or not /proc is always mounted... This was just a doubt. -- Silas Silva

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Ralph Castain
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. >

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Ralph Castain
Thanks Paul - very illuminating! Looks to me like I'm okay for OpenBSD as I won't find /proc and so won't build the Linux module. I have a problem with FreeBSD because /proc exists, but I won't find what I'm looking for, so I'll have to add a test for that case and not-build when FreeBSD is de

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Paul H. Hargrove
... and AIX 6.1 also has a /proc but no cpuinfo or meminfo On 3/24/2011 6:52 PM, Paul H. Hargrove wrote: 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 --

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Silas Silva
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

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Paul H. Hargrove
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. 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

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Jeff Squyres
Is the data the same in /proc between NetBSD and Linux? We're currently looking in /proc/cpuinfo and /proc/meminfo for some specific key / data pairs. On Mar 24, 2011, at 2:29 PM, Silas Silva wrote: > Hello there, > > I'm using OpenMPI for educational reasons. It works pretty fine under > G

Re: [OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Ralph Castain
Guess I never considered that scenario when writing that code. The sysinfo functionality isn't considered critical at this time, though there are some changes coming that will make it more important. Have to ponder the best solution - I'd rather not have configure fail just because we don't fin

[OMPI devel] Build mca_sysinfo_linux module when /proc/cpuinfo doesn't exist

2011-03-24 Thread Silas Silva
Hello there, I'm using OpenMPI for educational reasons. It works pretty fine under GNU/Linux. I have both compiled it and downloaded it from the package management system with no problems. But I have trying to use it in other Unix systems as well. In these systems /proc (NetBSD for instance) i