This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
can't read /proc/cpuinfo
- From: "Timothy C Prince" <tprince at myrealbox dot com>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 24 Jul 2007 23:50:33 +0000
- Subject: can't read /proc/cpuinfo
- Reply-to: tprince at computer dot org
with gfortran 4.3 20070615, on x86-64 linux
open(11,file='/proc/cpuinfo',action='READ',iostat=ios)
apparently succeeds (ios == 0)
but then
read(11,'(a)',iostat=ios)txtline
immediately gives ios == -1
Did I miss something obvious?
I suppose it is possible to do
system("cat /proc/cpuinfo > txtfile")
and open that file, similar to what I do to capture uname data, but I preferred the scheme of reading directly, as ifort can do.
Tim Prince