[OSUNIX-dev] Re: [hpcdev-discuss] OpenSolaris open64 port - 1st
round patch review
"C. Bergström"
cbergstrom at netsyncro.com
Tue Mar 3 07:45:14 GMT 2009
John Martin wrote:
> C. Bergström wrote:
>>
>>
>> 1) Best way to replace /proc/cpuinfo for OpenSolaris?
>>
>> opencc -v
>> opencc WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit
>> x86.
> This code is looking for the plain text processor description, e.g.
> "Intel(R) Core(TM) i7". On Solaris this can be fetched with smbios.
> I don't know the stability of the interfaces in libsmbios.so.1. I can
> investigate this later this week.
If you would be so kind I think that may be the cleanest solution..
Otherwise, I see two quick choices.
1) http://svn.mplayerhq.hu/mplayer/trunk/cpuinfo.c?view=markup
2) parse the output from psrinfo and isainfo
The problems
#1 we'll have to sync it from upstream
#2 the compiler then depends on those to be present..
Thanks
./C
More information about the OSUNIX-dev
mailing list