<?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 Hi Alex, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165382#M28199</link>
    <description>&lt;P&gt;Hi Alex,&lt;/P&gt;

&lt;P&gt;I second Gennady's question.&lt;/P&gt;

&lt;P&gt;If I understand things right you run the application with root privileges. Could you please confirm the application works fine if you simply run it with root privileges, but w/o any setcap stuff?&lt;/P&gt;

&lt;P&gt;If yes, could you please try running your application with&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;LD_DEBUG=libs&lt;/PRE&gt;

&lt;P&gt;and look for a hint why it can't load mkl_loader or put the trace here?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Aug 2017 05:29:10 GMT</pubDate>
    <dc:creator>Evarist_F_Intel</dc:creator>
    <dc:date>2017-08-12T05:29:10Z</dc:date>
    <item>
      <title>Linux setcap and MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165380#M28197</link>
      <description>&lt;P&gt;I have a program using MKL on Linux (Centos 7.3 1611) that runs fine without any setcap capabilities. &amp;nbsp;I would like to adjust thread priorities, so I added CAP_SYS_NICE using setcap. &amp;nbsp;When I run the program, it starts fine. &amp;nbsp;As soon as it tries to run any MKL functions, it fails with an error saying it failed to load mkl_loader. &amp;nbsp;The program runs fine as root with CAP_SYS_NICE set. &amp;nbsp;I have googled around, and have not found a solution that works yet.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 17:16:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165380#M28197</guid>
      <dc:creator>Barry__Alex</dc:creator>
      <dc:date>2017-08-11T17:16:23Z</dc:date>
    </item>
    <item>
      <title>"error saying it failed to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165381#M28198</link>
      <description>&lt;P&gt;"&lt;SPAN style="font-size: 12px;"&gt;error saying it failed to load mkl_loader&lt;/SPAN&gt;". Alex, what is the full message do you see?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 05:09:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165381#M28198</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-08-12T05:09:04Z</dc:date>
    </item>
    <item>
      <title>Hi Alex,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165382#M28199</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;

&lt;P&gt;I second Gennady's question.&lt;/P&gt;

&lt;P&gt;If I understand things right you run the application with root privileges. Could you please confirm the application works fine if you simply run it with root privileges, but w/o any setcap stuff?&lt;/P&gt;

&lt;P&gt;If yes, could you please try running your application with&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;LD_DEBUG=libs&lt;/PRE&gt;

&lt;P&gt;and look for a hint why it can't load mkl_loader or put the trace here?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 05:29:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165382#M28199</guid>
      <dc:creator>Evarist_F_Intel</dc:creator>
      <dc:date>2017-08-12T05:29:10Z</dc:date>
    </item>
    <item>
      <title>Sorry to put this question on</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165383#M28200</link>
      <description>&lt;P&gt;Sorry to put this question on hold for so long, but project priorities changed...&lt;/P&gt;

&lt;P&gt;The exact error message I get is:&lt;/P&gt;

&lt;P&gt;Intel MKL FATAL ERROR: Cannot load &amp;lt;mkl-loader&amp;gt;.&lt;/P&gt;

&lt;P&gt;I get this when I run the program (linked to MKL, Linux, x64) as a standard user with CAP_SYS_NICE set.&amp;nbsp; With CAP_SYS_NICE not set, a call to change the scheduler priority (to SCHED_FIFO in a different thread) and policy fails, but MKL still loads.&amp;nbsp; The goal is to get it to run as a standard user, be able to change priority and use MKL.&lt;/P&gt;

&lt;P&gt;The kernel version was&amp;nbsp;3.10.0-514.6.1.el7.x86_64.&amp;nbsp; I tried this exact same program on a Fedora 27 install using a 4.13 kernel, and I had no problems loading MKL, with or without CAP_SYS_NICE set.&lt;/P&gt;

&lt;P&gt;Running the program as root allows the program to run with CAP_SYS_NICE set.&amp;nbsp; It is not desirable to run as root permanently.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 22:53:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-setcap-and-MKL/m-p/1165383#M28200</guid>
      <dc:creator>Barry__Alex</dc:creator>
      <dc:date>2018-05-31T22:53:32Z</dc:date>
    </item>
  </channel>
</rss>

