Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: jfc@mit.edu (John F. Carr)
Subject: Re: Determine number of CPUs
Date: 19 Oct 2009 22:18:14 GMT	[thread overview]
Message-ID: <4adce5a6$0$502$b45e6eb0@senator-bedfellow.mit.edu> (raw)
In-Reply-To: 4ad76334@212.67.96.135

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.

-- 
    John Carr (jfc@mit.edu)


  parent reply	other threads:[~2009-10-19 22:18 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 [this message]
2009-10-20 12:16       ` Dave
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