Feature Requests item #1231081, was opened at 2005-07-01 16:38
Message generated for change (Comment added) made by hoffmanm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1231081&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephan Springer (tengai)
Assigned to: Nobody/Anonymous (nobody)
Summary: platform.processor() could be smarter
Initial Comment:
As far as I can see, platform.py only looks at
the output of "uname -p"
when platform.processor() is called. But on my
system (Debian Linux), this
doesn't give a result.
Could you please enhance this function in a
way that it also looks at
/proc/cpuinfo? I'd need this to automatically find
the appropriate options
like "-march=..." and "-msse" for gcc/g++ in an
scons script.
Thanks,
- Stephan.
----------------------------------------------------------------------
Comment By: Michael Hoffman (hoffmanm)
Date: 2005-07-04 08:21
Message:
Logged In: YES
user_id=987664
This sounds like it would be an endless sink of new code to
deal with various processors and /proc formats on different
platforms. If uname -p doesn't give you a result on Debian,
that sounds like a Debian bug that should be taken up with them.
I presume you want something like this:
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.66GHz
stepping : 7
cpu MHz : 2660.595
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic
mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 5275.64
to be transformed into the str "pentium4"?
I think this RFE should be closed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1231081&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com