<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic linux C prg to test cpu (32 vs 64) in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910957#M4606</link>
    <description>&lt;P&gt;I have Redhat 4.4 running on a roomful of machines with Xeon processors. I want to write a program to prove they are 32 or 64 bit CPUs, but I'm stumped. Is there a C program to test if a CPU is 32bt or 64bt even if it's running in a 32bit OS?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2007 05:44:49 GMT</pubDate>
    <dc:creator>aliceander</dc:creator>
    <dc:date>2007-09-06T05:44:49Z</dc:date>
    <item>
      <title>linux C prg to test cpu (32 vs 64)</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910957#M4606</link>
      <description>&lt;P&gt;I have Redhat 4.4 running on a roomful of machines with Xeon processors. I want to write a program to prove they are 32 or 64 bit CPUs, but I'm stumped. Is there a C program to test if a CPU is 32bt or 64bt even if it's running in a 32bit OS?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:44:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910957#M4606</guid>
      <dc:creator>aliceander</dc:creator>
      <dc:date>2007-09-06T05:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: linux C prg to test cpu (32 vs 64)</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910958#M4607</link>
      <description>&lt;P&gt;/proc/cpuinfo provides a lot of good information -- if it doesn't say anything about a 64 bit CPU in that file, e.g. x64, does that mean I have a 32 bit processor? I thought the Xeon CPU was 64 bit, but I cannot prove that, one way or another yet.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2007 15:08:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910958#M4607</guid>
      <dc:creator>aliceander</dc:creator>
      <dc:date>2007-09-06T15:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: linux C prg to test cpu (32 vs 64)</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910959#M4608</link>
      <description>Well, if you want to write your own program, you can use "cpuid" opcode, and there are some factors you should care of in that way:&lt;BR /&gt;&lt;BR /&gt;1. Processor Type&lt;BR /&gt;2. Vendor ID&lt;BR /&gt;3. Model Name&lt;BR /&gt;4. Speed (CPU MegaHertz field)&lt;BR /&gt;&lt;BR /&gt;So you run up CPUID opcode verify the "Processor Type", then you should check for "Vendor ID", vendor id is the place where you can decide on what branch your processor is product, for example GeniueIntel, etc. Afterward you can check for the Model name and Speed. &lt;BR /&gt;With these 4 factors known, you can ALMOST (not for sure) turn to the right answer on your processor's details.&lt;BR /&gt;&lt;BR /&gt;btw, there's a more advanced program named "CPU-Z", done the same with most details on the scene. You can seek it here: &lt;A href="http://www.cpuid.com/cpuz.php" target="_blank"&gt;http://www.cpuid.com/cpuz.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Aside, the "cpuinfo" program uses the CPUID opcode tho. Let's run out a sample:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;-------------------------------------------------&lt;BR /&gt;c3ph@kidon:~$ cat /proc/cpuinfo&lt;BR /&gt;processor : 0&lt;BR /&gt;vendor_id : GenuineIntel&lt;BR /&gt;cpu family : 15&lt;BR /&gt;model : 4&lt;BR /&gt;model name : Intel Celeron CPU 2.40GHz&lt;BR /&gt;stepping : 1&lt;BR /&gt;cpu MHz : 2405.729&lt;BR /&gt;cache size : 256 KB&lt;BR /&gt;fdiv_bug : no&lt;BR /&gt;hlt_bug : no&lt;BR /&gt;f00f_bug : no&lt;BR /&gt;coma_bug : no&lt;BR /&gt;fpu : yes&lt;BR /&gt;fpu_exception : yes&lt;BR /&gt;cpuid level : 5&lt;BR /&gt;wp : yes&lt;BR /&gt;flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc up pni monitor ds_cpl cid xtpr&lt;BR /&gt;bogomips : 4814.59&lt;BR /&gt;&lt;BR /&gt;c3ph@kidon:~$&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;-------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;You see, this is Geniue, Intel, Celeron =&amp;gt; it's more appropriately a box with a single Intel 32-Bit processor at 2.40Ghz speed.&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;BR /&gt;btw, let's run out another sample:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;-------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;c3ph@kamemiut:~$ cat /proc/cpuinfo&lt;BR /&gt;processor : 0&lt;BR /&gt;vendor_id : AuthenticAMD&lt;BR /&gt;cpu family : 15&lt;BR /&gt;model : 35&lt;BR /&gt;model name : Dual Core AMD Opteron Processor 175&lt;BR /&gt;stepping : 2&lt;BR /&gt;cache size : 1024 KB&lt;BR /&gt;fdiv_bug : no&lt;BR /&gt;hlt_bug : no&lt;BR /&gt;f00f_bug : no&lt;BR /&gt;coma_bug : no&lt;BR /&gt;fpu : yes&lt;BR /&gt;fpu_exception : yes&lt;BR /&gt;cpuid level
 : 1&lt;BR /&gt;wp : yes&lt;BR /&gt;flags : fpu vme de pse msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall mmxext lm 3dnowext 3dnow pni&lt;BR /&gt;bogomips : 2188.90&lt;BR /&gt;&lt;BR /&gt;processor : 1&lt;BR /&gt;vendor_id : AuthenticAMD&lt;BR /&gt;cpu family : 15&lt;BR /&gt;model : 35&lt;BR /&gt;model name : Dual Core AMD Opteron Processor 175&lt;BR /&gt;stepping : 2&lt;BR /&gt;cache size : 1024 KB&lt;BR /&gt;fdiv_bug : no&lt;BR /&gt;hlt_bug : no&lt;BR /&gt;f00f_bug : no&lt;BR /&gt;coma_bug : no&lt;BR /&gt;fpu : yes&lt;BR /&gt;fpu_exception : yes&lt;BR /&gt;cpuid level : 1&lt;BR /&gt;wp : yes&lt;BR /&gt;flags : fpu vme de pse msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall mmxext lm 3dnowext 3dnow pni&lt;BR /&gt;bogomips : 2188.90&lt;BR /&gt;&lt;BR /&gt;c3ph@kamemiut:~$&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;-------------------------------------------------&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;You see, this is AuthenticAMD, Dual AMD , Opteron =&amp;gt; This is almost a Dual Core box with AMD processors, both of 'em with 64-bit technology.&lt;BR /&gt;&lt;BR /&gt;And let's see our last example:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;-------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;processor : 0&lt;BR /&gt;vendor_id : GenuineIntel&lt;BR /&gt;type : primary processor&lt;BR /&gt;cpu family : 6&lt;BR /&gt;model : 15&lt;BR /&gt;model name : Intel Xeon CPU 3060 @ 2.40GHz&lt;BR /&gt;stepping : 6&lt;BR /&gt;brand id : 0&lt;BR /&gt;cpu count : 2&lt;BR /&gt;apic id : 0&lt;BR /&gt;cpu MHz : 2400&lt;BR /&gt;fpu : yes&lt;BR /&gt;flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clfl dtes acpi mmx fxsr sse sse2 ss htt tmi pbe pni monitor ds_cpl tm2 est&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;-------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;You see, this is Geniue, Intel, Xeon 3060 (at 2.40) =&amp;gt; so this is almost a Multi Core box with Intel Xeon Processors, both with 32-Bit technology. Anyway, in any case, you can verify the "model number" in the documentations to know the processor's details too.&lt;BR /&gt;&lt;BR /&gt;BTW, as i told ya above, the "CPUINFO" program uses the CPUID o
pcode too, so to gain more handy results, you would try the opcode yourself...&lt;BR /&gt;&lt;BR /&gt;Of course, there's another way to know the CPU's details which is dealing with the Flags, which i'm gonna explain it here, if you're interested to know it tho.&lt;BR /&gt;&lt;BR /&gt;Questions!? come on...&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2007 22:30:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/linux-C-prg-to-test-cpu-32-vs-64/m-p/910959#M4608</guid>
      <dc:creator>cephexin</dc:creator>
      <dc:date>2007-09-07T22:30:16Z</dc:date>
    </item>
  </channel>
</rss>

