<?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 MKL on a 16-core Linux machine in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-on-a-16-core-Linux-machine/m-p/915554#M12539</link>
    <description>I'm having trouble getting MKL 10.0.1 to exploit more than 1 core on a 16 core Xeon machine. Im running gcc 4.1.2 and Linux 2.6.18-53.1.4.el5.&lt;BR /&gt;&lt;BR /&gt;What I do know:&lt;BR /&gt;1. The same code successfully exploits 4 cores on an XP machine&lt;BR /&gt;2. Other OpenMP code on the Linux machine successfully exploits all 16 cores.&lt;BR /&gt;3. omp_get_num_threads() returns 16.&lt;BR /&gt;4. omp_set_num_threads(16) causes a seg fault. (smaller values don't work either)&lt;BR /&gt;5. Im the only one on the machine.&lt;BR /&gt;6. The BLAS examples that come with MKL also only use 1 core and seg fault when I try omp_set_num_threads().&lt;BR /&gt;&lt;BR /&gt;I suspect Im linking wrong. Ive tried both static linking:&lt;BR /&gt;&lt;BR /&gt;MKLLIB = /opt/intel/mkl/10.0.1.014/lib/em64t&lt;BR /&gt;LDFLAGS = -L${MKLLIB} -lguide -liomp5 -lmkl lm lpthread&lt;BR /&gt;&lt;BR /&gt;And dynamic linking:&lt;BR /&gt;&lt;BR /&gt;MKLLIB = /opt/intel/mkl/10.0.1.014/lib/em64t&lt;BR /&gt;LDFLAGS = -L${MKLLIB} ${MKLLIB}/libmkl.so ${MKLLIB}/libiomp5.so -lm lpthread&lt;BR /&gt;&lt;BR /&gt;Neither makes a difference. Is there something obvious Im missing?&lt;BR /&gt;&lt;BR /&gt;Any advice would be appreciated,&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Feb 2008 16:25:42 GMT</pubDate>
    <dc:creator>twkim</dc:creator>
    <dc:date>2008-02-28T16:25:42Z</dc:date>
    <item>
      <title>MKL on a 16-core Linux machine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-on-a-16-core-Linux-machine/m-p/915554#M12539</link>
      <description>I'm having trouble getting MKL 10.0.1 to exploit more than 1 core on a 16 core Xeon machine. Im running gcc 4.1.2 and Linux 2.6.18-53.1.4.el5.&lt;BR /&gt;&lt;BR /&gt;What I do know:&lt;BR /&gt;1. The same code successfully exploits 4 cores on an XP machine&lt;BR /&gt;2. Other OpenMP code on the Linux machine successfully exploits all 16 cores.&lt;BR /&gt;3. omp_get_num_threads() returns 16.&lt;BR /&gt;4. omp_set_num_threads(16) causes a seg fault. (smaller values don't work either)&lt;BR /&gt;5. Im the only one on the machine.&lt;BR /&gt;6. The BLAS examples that come with MKL also only use 1 core and seg fault when I try omp_set_num_threads().&lt;BR /&gt;&lt;BR /&gt;I suspect Im linking wrong. Ive tried both static linking:&lt;BR /&gt;&lt;BR /&gt;MKLLIB = /opt/intel/mkl/10.0.1.014/lib/em64t&lt;BR /&gt;LDFLAGS = -L${MKLLIB} -lguide -liomp5 -lmkl lm lpthread&lt;BR /&gt;&lt;BR /&gt;And dynamic linking:&lt;BR /&gt;&lt;BR /&gt;MKLLIB = /opt/intel/mkl/10.0.1.014/lib/em64t&lt;BR /&gt;LDFLAGS = -L${MKLLIB} ${MKLLIB}/libmkl.so ${MKLLIB}/libiomp5.so -lm lpthread&lt;BR /&gt;&lt;BR /&gt;Neither makes a difference. Is there something obvious Im missing?&lt;BR /&gt;&lt;BR /&gt;Any advice would be appreciated,&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2008 16:25:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-on-a-16-core-Linux-machine/m-p/915554#M12539</guid>
      <dc:creator>twkim</dc:creator>
      <dc:date>2008-02-28T16:25:42Z</dc:date>
    </item>
  </channel>
</rss>

