Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

No AVX-512 support?

Martin_K_1
Beginner
788 Views
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
$ ./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
$
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:
$ cat ./mkl_get_version.c 
#include 
#include 
#include "mkl.h"
int main(void)
  {
    MKLVersion Version;
    mkl_get_version(&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;
}
$ cat ./mkl_enable_avx2.c 
#include 

#include 

int main()
{
    assert(mkl_enable_instructions(MKL_ENABLE_AVX2) == 1);
    return 0;
}
$ cat ./mkl_enable_avx512.c 
#include 

#include 

int main()
{
    assert(mkl_enable_instructions(MKL_ENABLE_AVX512) == 1);
    return 0;
}
0 Kudos
1 Reply
Maria_K_Intel
Employee
788 Views

Hello Martin,

Please use MKL_ENABLE_AVX512_MIC for Intel(R) Xeon Phi.

MKL_ENABLE_AVX512 option is used for Intel(R) Xeon.

 

0 Kudos
Reply