<?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: MKL with valgrind in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/1491493#M34622</link>
    <description>&lt;P&gt;Strictly speaking there is no call to pthreads (or glibc) functions. Rather than calling 'sched_setaffinity()' the function, this is a call to 'syscall' for the 'sched_setaffinity' syscall.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 08:04:40 GMT</pubDate>
    <dc:creator>paul_f</dc:creator>
    <dc:date>2023-05-31T08:04:40Z</dc:date>
    <item>
      <title>MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897702#M11030</link>
      <description>When I try to check any tools using MKL by Valgrind, I always receive some warnings as follows:

==13662== Syscall param sched_setaffinity(mask) points to unaddressable byte(s)
==13662==    at 0x423BE7: syscall (in /lib/libc-2.5.so)
==13662==    by 0x4931723: __kmp_affinity_determine_capable (in /usr/local/intel/compiler10.0.023/lib/libguide.so)
==13662==    by 0x4927173: (within /usr/local/intel/compiler10.0.023/lib/libguide.so)
==13662==    by 0x49253BF: (within /usr/local/intel/compiler10.0.023/lib/libguide.so)
==13662==    by 0x4925535: __kmp_serial_initialize (in /usr/local/intel/compiler10.0.023/lib/libguide.so)
==13662==    by 0x4917CB7: __kmpc_global_thread_num (in /usr/local/intel/compiler10.0.023/lib/libguide.so)
==13662==    by 0x71980EA: mkl_lapack_dpotrf (in /usr/local/intel/mkl9.1.018/lib/32/libmkl_lapack.so)
==13662==    by 0x80A7DC7: AccStatsMean (HTrjTrain.c:671)
==13662==    by 0x80A960E: UpTrjMeansVars (HTrjTrain.c:1231)
==13662==    by 0x80AA3C4: UpTrjModels (HTrjTrain.c:1456)
==13662==    by 0x8049F34: main (HTrjCompV.c:222)
==13662==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

In all cases, it happens at the first call of an MKL function.
So I guess it is caused by MKL.</description>
      <pubDate>Tue, 30 Oct 2007 19:24:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897702#M11030</guid>
      <dc:creator>heiga</dc:creator>
      <dc:date>2007-10-30T19:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897703#M11031</link>
      <description>Sorry, my previous post was very hard to read&lt;IMG src="https://community.intel.com/isn/Community/en-US/emoticons/emotion-9.gif" alt="Sad smiley [:(]" /&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to check any tools using MKL by Valgrind, I always receive some warnings as follows:

&lt;BR /&gt;&lt;BR /&gt;==13662== Syscall param sched_setaffinity(mask) points to unaddressable byte(s)
&lt;BR /&gt;==13662==    at 0x423BE7: syscall (in /lib/libc-2.5.so)
&lt;BR /&gt;==13662==    by 0x4931723: __kmp_affinity_determine_capable (in /usr/local/intel/compiler10.0.023/lib/libguide.so)
&lt;BR /&gt;==13662==    by 0x4927173: (within /usr/local/intel/compiler10.0.023/lib/libguide.so)
&lt;BR /&gt;==13662==    by 0x49253BF: (within /usr/local/intel/compiler10.0.023/lib/libguide.so)
&lt;BR /&gt;==13662==    by 0x4925535: __kmp_serial_initialize (in /usr/local/intel/compiler10.0.023/lib/libguide.so)
&lt;BR /&gt;==13662==    by 0x4917CB7: __kmpc_global_thread_num (in /usr/local/intel/compiler10.0.023/lib/libguide.so)
&lt;BR /&gt;==13662==    by 0x71980EA: mkl_lapack_dpotrf (in /usr/local/intel/mkl9.1.018/lib/32/libmkl_lapack.so)
&lt;BR /&gt;==13662==    by 0x80A7DC7: AccStatsMean (HTrjTrain.c:671)
&lt;BR /&gt;==13662==    by 0x80A960E: UpTrjMeansVars (HTrjTrain.c:1231)
&lt;BR /&gt;==13662==    by 0x80AA3C4: UpTrjModels (HTrjTrain.c:1456)
&lt;BR /&gt;==13662==    by 0x8049F34: main (HTrjCompV.c:222)
&lt;BR /&gt;==13662==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

&lt;BR /&gt;&lt;BR /&gt;In all cases, it happens at the first call of an MKL function.
&lt;BR /&gt;So I guess it is caused by MKL.</description>
      <pubDate>Tue, 30 Oct 2007 19:30:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897703#M11031</guid>
      <dc:creator>heiga</dc:creator>
      <dc:date>2007-10-30T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897704#M11032</link>
      <description>Yes, your backtrace indicates that you called an MKL threaded function, and valgrind is directing your attention to behavior of a pthreads function called by the Intel OpenMP libraries. &lt;BR /&gt;Further than that, I don't know what your question is. When using Intel thread checker, before the time when serial MKL libraries were available, I had to replace MKL functions with equivalent source code. If you don't require MKL to spawn its own threads, the serial MKL might suit your purpose better.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2007 20:44:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897704#M11032</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-10-30T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897705#M11033</link>
      <description>Hi Tim, thank you very much for your immediate reply.&lt;BR /&gt;&lt;BR /&gt;My question is that is it a bug of MKL or my source code?&lt;BR /&gt;Is it OK to ignore this message?&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2007 04:36:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897705#M11033</guid>
      <dc:creator>heiga</dc:creator>
      <dc:date>2007-10-31T04:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897706#M11034</link>
      <description>The valgrind indication doesn't indicate any problem with your code.&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2007 05:19:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897706#M11034</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-10-31T05:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897707#M11035</link>
      <description>Thank you so much!!&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2007 09:27:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/897707#M11035</guid>
      <dc:creator>heiga</dc:creator>
      <dc:date>2007-10-31T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: MKL with valgrind</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/1491493#M34622</link>
      <description>&lt;P&gt;Strictly speaking there is no call to pthreads (or glibc) functions. Rather than calling 'sched_setaffinity()' the function, this is a call to 'syscall' for the 'sched_setaffinity' syscall.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 08:04:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-valgrind/m-p/1491493#M34622</guid>
      <dc:creator>paul_f</dc:creator>
      <dc:date>2023-05-31T08:04:40Z</dc:date>
    </item>
  </channel>
</rss>

