<?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 AVX-512 support? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/No-AVX-512-support/m-p/1070701#M22249</link>
    <description>It seems that MKL fails to use AVX-512 ISA on my system:

OS:  CentOS 7 with Kernel 4.10
CPU (from /proc/cpuinfo): Intel(R) Xeon Phi(TM) CPU 7250 @ 1.40GHz with 272 logic processors


&lt;PRE&gt;
$ ./mkl_get_version 
Major version:           2017
Minor version:           0
Update version:          2
Product status:          Product
Build:                   20170126
Platform:                Intel(R) 64 architecture
Processor optimization:  Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512) for Intel(R) Many Integrated Core Architecture (Intel(R) MIC Architecture) enabled processors
=============================================================

$ ./mkl_enable_avx2 
$ ./mkl_enable_avx512
mkl_enable_avx512: mkl_enable_avx512.c:7: int main(): Assertion `MKL_Enable_Instructions(4) == 1' failed.
Aborted
$
&lt;/PRE&gt;

What is missing to use AVX-512 ISA?

Thank you in advance!




For the sake of completeness,  here are the source code of the above programs: 
&lt;PRE class="brush:Cpp"&gt;
$ cat ./mkl_get_version.c 
#include &lt;STDIO.H&gt;
#include &lt;STDLIB.H&gt;
#include "mkl.h"
int main(void)
  {
    MKLVersion Version;
    mkl_get_version(&amp;amp;Version);
    printf("Major version:           %d\n",Version.MajorVersion);
    printf("Minor version:           %d\n",Version.MinorVersion);
    printf("Update version:          %d\n",Version.UpdateVersion);
    printf("Product status:          %s\n",Version.ProductStatus);
    printf("Build:                   %s\n",Version.Build);
    printf("Platform:                %s\n",Version.Platform);
    printf("Processor optimization:  %s\n",Version.Processor);
    printf("=============================================================\n");
    printf("\n");
    return 0;
}
&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/PRE&gt;

&lt;PRE class="brush:Cpp"&gt;
$ cat ./mkl_enable_avx2.c 
#include &lt;MKL.H&gt;

#include &lt;ASSERT.H&gt;

int main()
{
    assert(mkl_enable_instructions(MKL_ENABLE_AVX2) == 1);
    return 0;
}
&lt;/ASSERT.H&gt;&lt;/MKL.H&gt;&lt;/PRE&gt;


&lt;PRE class="brush:Cpp"&gt;
$ cat ./mkl_enable_avx512.c 
#include &lt;MKL.H&gt;

#include &lt;ASSERT.H&gt;

int main()
{
    assert(mkl_enable_instructions(MKL_ENABLE_AVX512) == 1);
    return 0;
}
&lt;/ASSERT.H&gt;&lt;/MKL.H&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Mar 2017 12:26:43 GMT</pubDate>
    <dc:creator>Martin_K_1</dc:creator>
    <dc:date>2017-03-30T12:26:43Z</dc:date>
    <item>
      <title>No AVX-512 support?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/No-AVX-512-support/m-p/1070701#M22249</link>
      <description>It seems that MKL fails to use AVX-512 ISA on my system:

OS:  CentOS 7 with Kernel 4.10
CPU (from /proc/cpuinfo): Intel(R) Xeon Phi(TM) CPU 7250 @ 1.40GHz with 272 logic processors


&lt;PRE&gt;
$ ./mkl_get_version 
Major version:           2017
Minor version:           0
Update version:          2
Product status:          Product
Build:                   20170126
Platform:                Intel(R) 64 architecture
Processor optimization:  Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512) for Intel(R) Many Integrated Core Architecture (Intel(R) MIC Architecture) enabled processors
=============================================================

$ ./mkl_enable_avx2 
$ ./mkl_enable_avx512
mkl_enable_avx512: mkl_enable_avx512.c:7: int main(): Assertion `MKL_Enable_Instructions(4) == 1' failed.
Aborted
$
&lt;/PRE&gt;

What is missing to use AVX-512 ISA?

Thank you in advance!




For the sake of completeness,  here are the source code of the above programs: 
&lt;PRE class="brush:Cpp"&gt;
$ cat ./mkl_get_version.c 
#include &lt;STDIO.H&gt;
#include &lt;STDLIB.H&gt;
#include "mkl.h"
int main(void)
  {
    MKLVersion Version;
    mkl_get_version(&amp;amp;Version);
    printf("Major version:           %d\n",Version.MajorVersion);
    printf("Minor version:           %d\n",Version.MinorVersion);
    printf("Update version:          %d\n",Version.UpdateVersion);
    printf("Product status:          %s\n",Version.ProductStatus);
    printf("Build:                   %s\n",Version.Build);
    printf("Platform:                %s\n",Version.Platform);
    printf("Processor optimization:  %s\n",Version.Processor);
    printf("=============================================================\n");
    printf("\n");
    return 0;
}
&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/PRE&gt;

&lt;PRE class="brush:Cpp"&gt;
$ cat ./mkl_enable_avx2.c 
#include &lt;MKL.H&gt;

#include &lt;ASSERT.H&gt;

int main()
{
    assert(mkl_enable_instructions(MKL_ENABLE_AVX2) == 1);
    return 0;
}
&lt;/ASSERT.H&gt;&lt;/MKL.H&gt;&lt;/PRE&gt;


&lt;PRE class="brush:Cpp"&gt;
$ cat ./mkl_enable_avx512.c 
#include &lt;MKL.H&gt;

#include &lt;ASSERT.H&gt;

int main()
{
    assert(mkl_enable_instructions(MKL_ENABLE_AVX512) == 1);
    return 0;
}
&lt;/ASSERT.H&gt;&lt;/MKL.H&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Mar 2017 12:26:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/No-AVX-512-support/m-p/1070701#M22249</guid>
      <dc:creator>Martin_K_1</dc:creator>
      <dc:date>2017-03-30T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Hello Martin,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/No-AVX-512-support/m-p/1070702#M22250</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;Ma&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;rtin,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Please use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; color: rgb(96, 96, 96); font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif;"&gt;MKL_ENABLE_AVX512_MIC for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;Intel(R) Xeon Phi.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 13.008px;"&gt;MKL_ENABLE_AVX512 option is used for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;Intel(R) Xeon.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:58:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/No-AVX-512-support/m-p/1070702#M22250</guid>
      <dc:creator>Maria_K_Intel</dc:creator>
      <dc:date>2017-03-30T15:58:11Z</dc:date>
    </item>
  </channel>
</rss>

