Le 12/02/2013 01:31, Christopher Samuel a écrit : > On 08/02/13 23:22, Brice Goglin wrote: > > > Le 08/02/2013 12:52, Samuel Thibault a ←crit : > >> Would it be possible to check some file in /proc or /sys to > >> identify the machine, to make sure we are not lying? > > There's no such filesystems on BlueGene compute nodes. The CNK > > kernel redirects I/O call to the I/O node (which runs Linux). > > Actually the latest BG/Q stack V1R2M0 does have a /proc directory. > > However, I suspect you're probably better off calling uname() on it > and using the sysname[] component.
Yeah I looked at this new /proc during the week-end but didn't find anything significantly better than uname(). Also, unfortunately, /proc/<pid>/task doesn't seem to contain all threads of a process so I didn't bother looking longer. Brice