From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: e63b27eb52,f19613495899e6db X-Google-Attributes: gide63b27eb52,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 20 Oct 2009 13:16:23 +0100 From: Dave User-Agent: Thunderbird 2.0.0.19 (X11/20090218) MIME-Version: 1.0 Newsgroups: comp.sys.hp.hpux,comp.unix.aix,comp.unix.tru64 Subject: Re: Determine number of CPUs References: <4ad5a2ed@212.67.96.135> <0d6fd7de-fb03-44ef-9fea-d60a38c594f8@j39g2000yqh.googlegroups.com> <4ad76334@212.67.96.135> <4adce5a6$0$502$b45e6eb0@senator-bedfellow.mit.edu> In-Reply-To: <4adce5a6$0$502$b45e6eb0@senator-bedfellow.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.78.42.15 Message-ID: <4addaa17@212.67.96.135> X-Trace: 20 Oct 2009 13:16:23 GMT, 213.78.42.15 Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feed.news.qwest.net!mpls-nntp-06.inet.qwest.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!212.67.96.135!213.78.42.15 Xref: g2news2.google.com comp.sys.hp.hpux:1347 comp.unix.aix:3702 comp.unix.tru64:124 John F. Carr wrote: > In article <4ad76334@212.67.96.135>, Dave 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.