<?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 Re: How to manage cores in multi core processor??? in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860724#M2313</link>
    <description>i don't think there is a generic answer for all OSes but Linux certainly does allow you to set processor affinity.&lt;BR /&gt;</description>
    <pubDate>Mon, 04 Jun 2007 17:51:52 GMT</pubDate>
    <dc:creator>zok</dc:creator>
    <dc:date>2007-06-04T17:51:52Z</dc:date>
    <item>
      <title>How to manage cores in multi core processor???</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860720#M2309</link>
      <description>&lt;P style="margin-bottom: 0cm;"&gt;I have a question about multi core
processors like Intel core duo, core duo quad. Is there possibility
from program or OS level to enforce process/program to be fetched on
selected core. 
&lt;/P&gt;
&lt;P style="margin-bottom: 0cm;"&gt;For example:&lt;/P&gt;
&lt;P style="margin-bottom: 0cm;"&gt;	I have a PC with CoreDuo processor
with 2 cores. And I wont to run computationally 	expensive real time
application on it. So is there a possibility to attached processes to
	cores??. E.g. all OS processes will be fetched on one core and only
our application will be 	fetched on second core? Is there any OS
which allow this? 
&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2007 10:39:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860720#M2309</guid>
      <dc:creator>maciej_bmaciej</dc:creator>
      <dc:date>2007-05-23T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage cores in multi core processor???</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860721#M2310</link>
      <description>&lt;FONT face="Verdana"&gt;That is what processor affinity is meant for. You have the following APIs to control it:&lt;BR /&gt;- Windows: SetThreadAffinityMask()&lt;BR /&gt;- Linux: sched_set_affinity()&lt;BR /&gt;&lt;BR /&gt;Have a look at the following article for example:&lt;BR /&gt;&lt;A href="http://www.ibm.com/developerworks/linux/library/l-affinity.html" target="_blank"&gt;http://www.ibm.com/developerworks/linux/library/l-affinity.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-David&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 01 Jun 2007 10:49:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860721#M2310</guid>
      <dc:creator>David_V_Intel1</dc:creator>
      <dc:date>2007-06-01T10:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage cores in multi core processor???</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860722#M2311</link>
      <description>&lt;P&gt;In addition to inserting code into your program on Windows you can use the Task Manager to specify processor affinity for a program (while it runs), Linux has a similar method. Also, on a Windows system there exists in the program header (where Date, Time, Attributes, etc.. reside) two affinity mask fields (Hard, Prefered). There is a program to read/write these fields but the name of this program escapes me at the moment.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2007 12:52:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860722#M2311</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2007-06-01T12:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage cores in multi core processor???</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860723#M2312</link>
      <description>One of the linux options to which Jim refers would be the taskset command.&lt;BR /&gt;For OpenMP programs, recent OpenMP libraries generally support environment variable thread affinity (KMP_AFFINITY for Intel OpenMP, GOMP_AFFINITY for gnu). Major MPI libraries have similar facilities for process affinity.&lt;BR /&gt;&lt;BR /&gt;As may be apparent, particularly on Windows, these options aren't 100% effective. Task Manager involves human intervention after the thread has started. They don't prevent other tasks from jumping in and getting the core, forcing the OS scheduler to choose among any remaining available cores.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2007 13:43:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860723#M2312</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-06-01T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage cores in multi core processor???</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860724#M2313</link>
      <description>i don't think there is a generic answer for all OSes but Linux certainly does allow you to set processor affinity.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jun 2007 17:51:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860724#M2313</guid>
      <dc:creator>zok</dc:creator>
      <dc:date>2007-06-04T17:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage cores in multi core processor???</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860725#M2314</link>
      <description>&lt;P&gt;I could go on about this topic given the time, but for now here aresome code samples you may find useful.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www3.intel.com/cd/ids/developer/asmo-na/eng/dc/xeon/19110.htm"&gt;WinCPUID library&lt;/A&gt;- API you can use to get CPU features and topology information&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www3.intel.com/cd/ids/developer/asmo-na/eng/recent/275339.htm"&gt;CPUCOUNT&lt;/A&gt;- Command-line utility that can show CPU features and topology to affinity mapping&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Forcing your apps threads to run on a certain set of processors for the purpose of getting better performance is a tricky and fragile optimization technique. You are likely to run your code on different hardware or on a different OS, and find that your "optimization" actually hurt performance. Your time might be better spent improving your app's threading model (Intel Threading Tools may help here) or trying a different compiler and/or new optimization switches (i.e. Intel C++ Compiler). If you really want to do some affinity setting, I recommend carefully considering what will happen with different numbers of cores, withand without HyperThreading, and convince yourself that you will still get good results. I wrote some of the WinCPUID code for this purpose.&lt;/P&gt;
&lt;P&gt;Ok, I did go on a bit... Consider yourselfwarned - there is a good chance you will not get the result you hoped for by playing with your app's thread affinity mask, especially if it is a high-volume commercial application that will run on a variety of hardware of hardware configurations.&lt;/P&gt;
&lt;P&gt;- Eric&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2007 03:24:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/How-to-manage-cores-in-multi-core-processor/m-p/860725#M2314</guid>
      <dc:creator>Eric_P_Intel</dc:creator>
      <dc:date>2007-06-22T03:24:18Z</dc:date>
    </item>
  </channel>
</rss>

