<?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 Looking for ways to detect Hyper Threading in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991466#M6259</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am loking for ways to detect hyper threading in c++ program on Linux. I don't intent to read /proc/cpuinfo file.&lt;/P&gt;
&lt;P&gt;I have tried cpuid and then edx value, somehow, it returns the same value on machines with HT and without HT.&lt;/P&gt;
&lt;P&gt;It seems some cpucounter program on web is not working for intel64.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using 64 bit Linux machine with :&lt;/P&gt;
&lt;P&gt;processor : 1&lt;BR /&gt;vendor_id : GenuineIntel&lt;BR /&gt;cpu family : 6&lt;BR /&gt;model : 45&lt;BR /&gt;model name : Intel(R) Core(TM) i7-3960X CPU @ 3.30GHz&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2012 04:25:29 GMT</pubDate>
    <dc:creator>missing__zlw</dc:creator>
    <dc:date>2012-09-13T04:25:29Z</dc:date>
    <item>
      <title>Looking for ways to detect Hyper Threading</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991466#M6259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am loking for ways to detect hyper threading in c++ program on Linux. I don't intent to read /proc/cpuinfo file.&lt;/P&gt;
&lt;P&gt;I have tried cpuid and then edx value, somehow, it returns the same value on machines with HT and without HT.&lt;/P&gt;
&lt;P&gt;It seems some cpucounter program on web is not working for intel64.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using 64 bit Linux machine with :&lt;/P&gt;
&lt;P&gt;processor : 1&lt;BR /&gt;vendor_id : GenuineIntel&lt;BR /&gt;cpu family : 6&lt;BR /&gt;model : 45&lt;BR /&gt;model name : Intel(R) Core(TM) i7-3960X CPU @ 3.30GHz&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 04:25:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991466#M6259</guid>
      <dc:creator>missing__zlw</dc:creator>
      <dc:date>2012-09-13T04:25:29Z</dc:date>
    </item>
    <item>
      <title>The question becomes: Do you</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991467#M6260</link>
      <description>The question becomes: Do you want completely portable code?
IOW to older generations of Intel and non-Intel (AMD?) archetectures than your Intel(R) Core(TM) i7-3960X CPU
Also, there is a potential issue should you have a multi-socket system where some sockets have HT (enabled) and others do not.

You might start by consulting Google:

      "detecting multi-core processor topology" site:intel.com format:.pdf

*** open the.PDF file link(s) not the non-pdf file (html) link
*** the Intel site has wrong hyperlinks in (bmunged up in update)

Jim Dempsey</description>
      <pubDate>Sun, 16 Sep 2012 17:21:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991467#M6260</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-09-16T17:21:36Z</dc:date>
    </item>
    <item>
      <title>GRIPE</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991468#M6261</link>
      <description>GRIPE

Unable to post comments with simple formatting such as blank lines and white space on left side for indentation
And NO I am not willing to accept having to type in HTML tags.
This is a general purpose programmers forum (e.g. C++, FORTRAN, etc), not a web designer/programmer forum (HTML, HTML6).

Jim Dempsey</description>
      <pubDate>Sun, 16 Sep 2012 17:25:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991468#M6261</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-09-16T17:25:55Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...I have tried cpuid and</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991469#M6262</link>
      <description>&amp;gt;&amp;gt;...I have tried cpuid and then edx value, somehow, it returns the same value on machines with HT and without HT...

I have two test-cases that use CPUID instruction and I didn't have any problems with detecting HTT:
...
const RTuint _HTT_FEATURE_BIT   = 0x10000000;					// 00010000000000000000000000000000
...
MOV		eax, 1
CPUID
MOV		uiFeatureRegCX, ecx
MOV		uiFeatureRegDX, edx
if( ( uiFeatureRegDX &amp;amp; _HTT_FEATURE_BIT )
{
	return ( RTbool )RTtrue;
}
...
Did you check a 28th bit of EDX register?</description>
      <pubDate>Mon, 19 Nov 2012 04:34:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Looking-for-ways-to-detect-Hyper-Threading/m-p/991469#M6262</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-11-19T04:34:38Z</dc:date>
    </item>
  </channel>
</rss>

