Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Le dimanche 06 juin 2010 à 22:55 +0200, Samuel Thibault a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 22:44:17 +0200, a écrit : > > By the way, my x86_64 configure says: > > << > > checking for XML... no > > >> > > I see I have "libxml2-utils" installed... and the --xml mechanism works. > > You

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 22:44:17 +0200, a écrit : > By the way, my x86_64 configure says: > << > checking for XML... no > >> > I see I have "libxml2-utils" installed... and the --xml mechanism works. You mean lstopo --xml somefile.xml does not say This installation of hwloc does not s

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Ouaouh ! Great, so easy ! Thank you very much indeed for all your help. It now fits my needs on OSX, very likely Tera 10 as I will check tomorrow. There only remains i686; I shall ask a friend with an Ubuntu next week. Sincerely, Olivier Cessenat. Le dimanche 06 juin 2010 à 22:40 +0200, Samuel Thi

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
By the way, my x86_64 configure says: << checking for XML... no >> I see I have "libxml2-utils" installed... and the --xml mechanism works. Is'nt that weird ? Can you tell me which is the XML lib needed to write lstopo xml files ? Further, do you know where to download them from - If I dare asking.

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 22:31:32 +0200, a écrit : > so I cannot get the graphics view, even with my x86_64 -brand new from > 2008... You can use the .fig output and open it with xfig, or convert to pdf by using fig2dev -L pdf file.fig file.pdf Samuel

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Second to none service ! Marvellous ! << mac:/tmp/hwloc-1.1a1-1 root# hwloc-ls Machine (1024MB) + NUMANode #0 (phys=0 1024MB) + L2 #0 (4096KB) L1 #0 (32KB) + PU #0 (phys=0) L1 #1 (32KB) + PU #1 (phys=1) >> I believed I had 2 MB L2 cache, I'm happy to see it's more than I thought ! Unfortunat

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 22:10:22 +0200, a écrit : > Great, my newest system is with autoconf 2.61 Here you are: http://dept-info.labri.fr/~thibault/tmp/hwloc-1.1a1-1.tar.gz Samuel

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Olivier Cessenat
Le dimanche 06 juin 2010 à 22:13 +0200, Samuel Thibault a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 22:06:51 +0200, a écrit : > > [cessenat@valerie hwloc-1.0.1]$ which gcc > > /usr/bin/gcc > > > > It's only gfortran that I have in opt. > > And its bin/ directory only contains bin/gfortran? o

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 22:06:51 +0200, a écrit : > [cessenat@valerie hwloc-1.0.1]$ which gcc > /usr/bin/gcc > > It's only gfortran that I have in opt. And its bin/ directory only contains bin/gfortran? or does it perhaps also contain cpp? > Removing it from the path makes it compil

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Great, my newest system is with autoconf 2.61: << [cessenat@iliana trunk]$ autoconf --version autoconf (GNU Autoconf) 2.61 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Olivier Cessenat
[cessenat@valerie hwloc-1.0.1]$ which gcc /usr/bin/gcc It's only gfortran that I have in opt. Removing it from the path makes it compile. Olivier. Le dimanche 06 juin 2010 à 21:52 +0200, Samuel Thibault a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 21:40:03 +0200, a écrit : > > [root@valerie

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Olivier Cessenat
Hi Samuel, OK, the answer, to my unclear question is: << [cessenat@valerie hwloc-1.0.1]# lstopo file.xml [cessenat@iliana ~]$ hwloc-ls --xml file.xml >> comp1 is the computer with no graphics lib, comp2 is the one with the libs. What you write is clear to computer scientists, but I failed to fig

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 21:52:34 +0200, a écrit : > I'm not sure my technical skills in computer science will allow me to > update the autoconf stuff - No need to. Run autoconf on a newer system, then transfer the result. Or you can also wait for tomorrow and use the nightly snapshot.

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 21:40:03 +0200, a écrit : > [root@valerie hwloc-1.0.1]# /usr/bin/gcc > gcc: no input files No, I said: what does which gcc return? I guess you are currently getting some gcc from /opt, which leads to all the kinds of errors you are getting in config.log. Ple

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Hi Samuel, I made the checkout. I seem to have too old an autoconf. I ran autogen.sh as rexplained in README line 70. << $ ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I ./config --output=aclocal.m4t autoreconf: `aclocal

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 21:34:49 +0200, a écrit : > Sure. It does not explain how. “ Usage: lt-lstopo [ options ] ... [ filename ] See lstopo(1) for more details. Supported output file formats: .txt, .fig, .pdf, .ps, .png, .svg, .xml ” How should we write it instead? > Should I pe

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Olivier Cessenat
Hi Samuel, I checked the variables: [root@valerie hwloc-1.0.1]# echo $CPATH [root@valerie hwloc-1.0.1]# echo $C_INCLUDE_PATH [root@valerie hwloc-1.0.1]# /usr/bin/gcc gcc: no input files My system is only an old Mandriva (for old processors, but I've got many of them) with a compiled gfortran f

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 21:30:18 +0200, a écrit : > I see that --xml can be used to read an XML file, but what should I do > to write a file ? lstopo file.xml Samuel

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Olivier Cessenat
Le dimanche 06 juin 2010 à 19:21 +0200, Samuel Thibault a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 19:07:40 +0200, a écrit : > > I installed hwloc on a system where there is no such libpng or freetype > > libraries. I thus get a text as an output to hwloc-ls. > > Is there a way to make that o

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 21:24:40 +0200, a écrit : > svn checkout from where ? As announced on the website and in README: svn checkout http://svn.open-mpi.org/svn/hwloc/trunk Samuel

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 21:22:50 +0200, a écrit : > My system is "normal" to me : Well, the fact that it goes fetching some header from /opt/gfortran tells me it's not completely "normal" :) > /opt/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/include-fixed/sys/stat.h:345: >

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Olivier Cessenat
Le dimanche 06 juin 2010 à 20:37 +0200, Brice Goglin a écrit : > Le 06/06/2010 19:21, Samuel Thibault a écrit : > > Olivier Cessenat, le Sun 06 Jun 2010 19:07:40 +0200, a écrit : > > > >> I installed hwloc on a system where there is no such libpng or freetype > >> libraries. I thus get a text as

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Hi, svn checkout from where ? Olivier. Le dimanche 06 juin 2010 à 20:06 +0200, Samuel Thibault a écrit : > Samuel Thibault, le Sun 06 Jun 2010 18:37:00 +0200, a écrit : > > Olivier Cessenat, le Sun 06 Jun 2010 18:19:40 +0200, a écrit : > > > Then, here are the outputs of the commands as you asked

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Olivier Cessenat
My system is "normal" to me : i686 native gcc compiler, but gfortran << $ gfortran -dumpversion GNU Fortran (GCC) 4.3.0 20071030 (experimental) [trunk revision 129762] Copyright (C) 2007 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redi

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Brice Goglin
Le 06/06/2010 19:21, Samuel Thibault a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 19:07:40 +0200, a écrit : > >> I installed hwloc on a system where there is no such libpng or freetype >> libraries. I thus get a text as an output to hwloc-ls. >> Is there a way to make that output read by an

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 19:02:21 +0200, a écrit : > Le dimanche 06 juin 2010 à 18:39 +0200, Samuel Thibault a écrit : > > Olivier Cessenat, le Sun 06 Jun 2010 18:14:35 +0200, a écrit : > > > In file included from topology.c:17: > > > /opt/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Samuel Thibault, le Sun 06 Jun 2010 18:37:00 +0200, a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 18:19:40 +0200, a écrit : > > Then, here are the outputs of the commands as you asked. > > > hw.l1icachesize: 32768 > > hw.l1dcachesize: 32768 > > hw.l2cachesize: 4194304 > > Mmm, so it seems they

Re: [hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 19:07:40 +0200, a écrit : > I installed hwloc on a system where there is no such libpng or freetype > libraries. I thus get a text as an output to hwloc-ls. > Is there a way to make that output read by an hwloc program on a system > where there are the graphic p

[hwloc-users] Getting a graphics view for a non graphic system...

2010-06-06 Thread Olivier Cessenat
Hello, I installed hwloc on a system where there is no such libpng or freetype libraries. I thus get a text as an output to hwloc-ls. Is there a way to make that output read by an hwloc program on a system where there are the graphic packages ? Sorry if the question is silly, but I failed to get t

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Olivier Cessenat
Le dimanche 06 juin 2010 à 18:39 +0200, Samuel Thibault a écrit : > Olivier Cessenat, le Sun 06 Jun 2010 18:14:35 +0200, a écrit : > > In file included from topology.c:17: > > /opt/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/include-fixed/sys/stat.h:345: > > error: expected ',' or ';' bef

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 18:41:26 +0200, a écrit : > Thank you for the other point; it's in case the sys admin installs with > --enable-debug, so that the codes that use the API do not get awfully > verbose. As its name suggests, --enable-debug was never intended for production builds

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
OSX 10.4.11 Darwin mac.magic 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386 Thank you for the other point; it's in case the sys admin installs with --enable-debug, so that the codes that use the API do not get awfully verbose. Olivie

Re: [hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 18:14:35 +0200, a écrit : > In file included from topology.c:17: > /opt/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/include-fixed/sys/stat.h:345: > error: expected ',' or ';' before '__wur' Wow, how odd. Could you send us the file? I really wonder w

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 18:19:40 +0200, a écrit : > Then, here are the outputs of the commands as you asked. > hw.l1icachesize: 32768 > hw.l1dcachesize: 32768 > hw.l2cachesize: 4194304 Mmm, so it seems they changed the sysctl output :/ . Which version of OSX is this? > Occasion for

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Hello Samuel, First thanks for your very fast answer ! Then, here are the outputs of the commands as you asked. Occasion for yet another question, when --enable-debug is set, is there some way to remove the messages to stderr ? Thanks. Olivier. $ sysctl hw hw.ncpu: 2 hw.byteorder: 1234 hw.memsi

[hwloc-users] Getting the cache hierarchy

2010-06-06 Thread Olivier Cessenat
Hello, I get in troubles on my i686 system when compiling hwloc: << Making all in src make[1]: Entering directory `/tmp/hwloc-1.0.1/src' CC topology.lo In file included from topology.c:17: /opt/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/include-fixed/sys/stat.h:345: error: expecte

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 17:37:23 +0200, a écrit : > I would like to get the cache sizes and hierachy; > hwloc-ls returns > << > Machine + L1 #0 (0KB) > PU #0 (phys=0) > PU #1 (phys=1) > >> > which detects my dual core, but not the cache sizes, L2 and L1. This depends on what the O

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Hello Samuel, I would like to get the cache sizes and hierachy; hwloc-ls returns << Machine + L1 #0 (0KB) PU #0 (phys=0) PU #1 (phys=1) >> which detects my dual core, but not the cache sizes, L2 and L1. Is this an already known behaviour ? Thanks, Cheers, Olivier Cessenat. Le dimanche 06 ju

Re: [hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Samuel Thibault
Olivier Cessenat, le Sun 06 Jun 2010 15:52:12 +0200, a écrit : > Couldn't bind to cpuset 0x0002 > >> > Is hwloc supported on OSX 10.4 platform ? Yes. But Apple has always beeing refusing to provide binding functions, so hwloc returns ENOSYS for these. Samuel

[hwloc-users] Is OSX a supported platform ?

2010-06-06 Thread Olivier Cessenat
Hello hwloc users, I'm brand new to hwloc and I'm very happy to get a tool to get an API for getting cache hierarchies. I try the API on MacOSX, compiling hwloc-hello.c as provided at http://www.open-mpi.org/projects/hwloc/doc/hwloc-v1.0.1-a4.pdf page 20, and there is: << *** First Example *** **