<?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 No time saving with OpenMP on linux in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753606#M9286</link>
    <description>Ron,&lt;BR /&gt;&lt;BR /&gt;Thanks for the posting. I raised AMD issue because I read on Wikipedia "Some vendors&lt;BR /&gt;recommended setting the processor affinity on OpenMP threads to associate them with&lt;BR /&gt;particular processor cores." (&lt;A href="http://en.wikipedia.org/wiki/OpenMP"&gt;http://en.wikipedia.org/wiki/OpenMP&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;The way I got execution time is to submit jobs on linux using script like:&lt;BR /&gt;date&lt;BR /&gt;code_exe input_1cpu.inp&lt;BR /&gt;date&lt;BR /&gt;code_exe input_2cpu.inp&lt;BR /&gt;date&lt;BR /&gt;&lt;BR /&gt;code_exe willuse 1st arguement as input file specifying 1 or 2 CPUs. And Ievaluate overall time&lt;BR /&gt;from date displays since code_exe runs on the foreground.&lt;BR /&gt;&lt;BR /&gt;I just submitted the batch script which runs a different (and bigger) case. But the jobs won't&lt;BR /&gt;finish until later tonight. We'll see if there is any time saving for this case with 2CPUs.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Reggie&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Mar 2011 21:30:27 GMT</pubDate>
    <dc:creator>rookie2010</dc:creator>
    <dc:date>2011-03-09T21:30:27Z</dc:date>
    <item>
      <title>No time saving with OpenMP on linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753604#M9284</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;My company developed a fortran code with OpemMP and we built 32-bit packages on Windows* (Vista Business 32-bit&lt;BR /&gt;with ifort 10.0.025) and linux! (SuSE Enterprise Server 9, 64-bit with ifort 11.1.056). &lt;/P&gt;&lt;P&gt;For identical case, we ran on Windows* (2 dual-core Intel CPUs - 4 total CPUs with 4 GB RAM) and linux ! (2 AMD&lt;BR /&gt;CPUs with 4GB RAM). We use input file to set up number of CPUs for execution.&lt;/P&gt;&lt;P&gt;On Windows*, 2 CPUs ran 8min and 38 sec; 1 CPU ran 12 min and 40 sec. On linux!, there is NO SAVING at all with &lt;BR /&gt;2 CPUs. Sometimes 2 CPUs job even ran longer than 1 CPU job. &lt;/P&gt;&lt;P&gt;I've tried to set OMP_NUM_THREADS to 2 on linux! but the situation (NO SAVING with 2 CPUs) did not change. &lt;BR /&gt;I've checked and ulimit for stack is unlimited. &lt;/P&gt;&lt;P&gt;Do I have to do any setting/configuration with AMD CPUs on linux? Any opinion is very much appreciated.&lt;BR /&gt;&lt;BR /&gt;Reggie&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2011 19:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753604#M9284</guid>
      <dc:creator>rookie2010</dc:creator>
      <dc:date>2011-03-08T19:10:00Z</dc:date>
    </item>
    <item>
      <title>No time saving with OpenMP on linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753605#M9285</link>
      <description>AMD should make no difference, nothing special you have to do.&lt;BR /&gt;&lt;BR /&gt;How are you timing this? 'time' from command line, or cpu_time() in the code? or ??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2011 20:27:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753605#M9285</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2011-03-09T20:27:10Z</dc:date>
    </item>
    <item>
      <title>No time saving with OpenMP on linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753606#M9286</link>
      <description>Ron,&lt;BR /&gt;&lt;BR /&gt;Thanks for the posting. I raised AMD issue because I read on Wikipedia "Some vendors&lt;BR /&gt;recommended setting the processor affinity on OpenMP threads to associate them with&lt;BR /&gt;particular processor cores." (&lt;A href="http://en.wikipedia.org/wiki/OpenMP"&gt;http://en.wikipedia.org/wiki/OpenMP&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;The way I got execution time is to submit jobs on linux using script like:&lt;BR /&gt;date&lt;BR /&gt;code_exe input_1cpu.inp&lt;BR /&gt;date&lt;BR /&gt;code_exe input_2cpu.inp&lt;BR /&gt;date&lt;BR /&gt;&lt;BR /&gt;code_exe willuse 1st arguement as input file specifying 1 or 2 CPUs. And Ievaluate overall time&lt;BR /&gt;from date displays since code_exe runs on the foreground.&lt;BR /&gt;&lt;BR /&gt;I just submitted the batch script which runs a different (and bigger) case. But the jobs won't&lt;BR /&gt;finish until later tonight. We'll see if there is any time saving for this case with 2CPUs.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Reggie&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2011 21:30:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753606#M9286</guid>
      <dc:creator>rookie2010</dc:creator>
      <dc:date>2011-03-09T21:30:27Z</dc:date>
    </item>
    <item>
      <title>No time saving with OpenMP on linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753607#M9287</link>
      <description>Reggie,&lt;BR /&gt;&lt;BR /&gt;At the beginning of your program, insert code to obtain the number of threads&lt;BR /&gt;&lt;BR /&gt;!$omp parallel&lt;BR /&gt;!$omp master&lt;BR /&gt;write(*,*) "Number of threads ", omp_get_num_threads()&lt;BR /&gt;!$omp end master&lt;BR /&gt;!$omp end parallel&lt;BR /&gt;&lt;BR /&gt;This will tell you if (on linux) you are indeed getting the number of threads you request.&lt;BR /&gt;&lt;BR /&gt;If this indicates 1 thread then the potential problems are:&lt;BR /&gt;&lt;BR /&gt;a) you linked in the wrong libraries&lt;BR /&gt;b) you compiled without -openmp&lt;BR /&gt;c) something in your Linux configuration is restricting the number of threads&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2011 22:22:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753607#M9287</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2011-03-09T22:22:58Z</dc:date>
    </item>
    <item>
      <title>No time saving with OpenMP on linux</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753608#M9288</link>
      <description>&lt;P&gt;Thanks a lot for the help from Ronald and Jim.&lt;BR /&gt;&lt;BR /&gt;The overnight jobs show reasonable results. 1 cpu used 4 hr 16 min and 2 cpus used 2 hr 25 min.&lt;BR /&gt;I'm happy as long as openmp helps with multiple CPUs.&lt;BR /&gt;&lt;BR /&gt;Shorter jobs with 1 and 2 cpus did not show reasonable results could be due to the load at job&lt;BR /&gt;execution is large and 2 cpus did not gain advantage. I've tried various combination of flags&lt;BR /&gt;(-openmp for all codes, not just those with openmp directives; with or without OMP_NUM_THREADS;&lt;BR /&gt;differentulimit) and learned quite a bit.&lt;BR /&gt;&lt;BR /&gt;I'm glad to know (from Ronaldand now confirm) that ifort does not discriminate AMD cpus and&lt;BR /&gt;alsoI also appreciate the tips from Jim.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2011 02:16:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/No-time-saving-with-OpenMP-on-linux/m-p/753608#M9288</guid>
      <dc:creator>rookie2010</dc:creator>
      <dc:date>2011-03-12T02:16:47Z</dc:date>
    </item>
  </channel>
</rss>

