Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Dave <foo@coo.com>
Subject: Re: Determine number of CPUs
Date: Tue, 20 Oct 2009 13:16:23 +0100	[thread overview]
Message-ID: <4addaa17@212.67.96.135> (raw)
In-Reply-To: <4adce5a6$0$502$b45e6eb0@senator-bedfellow.mit.edu>

John F. Carr wrote:
> In article <4ad76334@212.67.96.135>, Dave  <foo@coo.com> wrote:
>> 4) One package in Sage (libm4ri) makes use of this autoconf macro
>>
>> http://www.nongnu.org/autoconf-archive/ax_count_cpus.html
>> [...]
>>
>> 6) Having discussed with the author of the lib4mri, the number of cores 
>> would be most useful to his package. Hence really we need a new macro 
>> which determines the number of cores.
> 
> I checked the libm4ri source and I don't see the CPU count being used.
> Have you tried removing the autoconf fragment?
> 
> Anyway, this sounds like a job for a runtime call rather than
> an autoconf macro.  The source uses OpenMP.  Doesn't OMP (or
> any similar package) figure out the CPU count for itself at runtime?
> 
> autoconf is usually the wrong tool, but especially so when you want
> to ask about the machine where you intend to run instead of the machine
> where you are compiling.
> 

Very good point you have there. I'll contact the author about that, as it does 
seem silly to test this at compile time.

-- 
I respectfully request that this message is not archived by companies as
unscrupulous as 'Experts Exchange' . In case you are unaware,
'Experts Exchange'  take questions posted on the web and try to find
idiots stupid enough to pay for the answers, which were posted freely
by others. They are leeches.


      reply	other threads:[~2009-10-20 12:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14 10:07 Determine number of CPUs Dave
2009-10-14 13:44 ` Leo
2009-10-15 22:51   ` Dave
2009-10-16  6:14     ` Michael Kraemer
2009-10-14 15:57 ` Don Morris
2009-10-14 18:52 ` Rick Jones
2009-10-15 13:59 ` sjm
2009-10-15 18:00   ` Dave
2009-10-15 19:49     ` Henry
2009-10-19 22:18     ` John F. Carr
2009-10-20 12:16       ` Dave [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox