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 Path: g2news2.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail 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> Organization: Massachvsetts Institvte of Technology From: jfc@mit.edu (John F. Carr) Date: 19 Oct 2009 22:18:14 GMT Message-ID: <4adce5a6$0$502$b45e6eb0@senator-bedfellow.mit.edu> NNTP-Posting-Host: CONTENTS-VNDER-PRESSVRE.MIT.EDU X-Trace: 1255990694 senator-bedfellow.mit.edu 502 18.9.64.11 Xref: g2news2.google.com comp.sys.hp.hpux:1339 comp.unix.aix:3697 comp.unix.tru64:122 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. -- John Carr (jfc@mit.edu)