- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In MSVC or G++, I can easily use the AVX instructions by including header files like immintrin.h, but there doesn't seem to be a compiler that provides an interface to access AMX now. I'm looking forward to finding out if I can use amx instructions like avx instructions without using OneAPI/Intel One MKL or other libraries and toolkit, since this saves some effort in installing an accelerated library environment when migrating my codes.
If this doesn't receive support now, may I ask if it will in the future?
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may find the AMX intrinsics from Intel intrinsic guide: https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#ig_expand=6859,6860,6860&techs=AMX
And here is an example using AMX intrinsics: https://www.intel.com/content/www/us/en/developer/articles/code-sample/advanced-matrix-extensions-intrinsics-functions.html (old programming model same as gcc. Developers need to specify the tile configuration)
The blog introduced new programming model (compiler will automatically do tile configuration) and also gave an example (see Intel® Advanced Matrix Extensions): https://www.intel.com/content/www/us/en/developer/articles/technical/whats-new-in-llvm-for-4th-gen-intel-xeon-processor.html
Both LLVM and Intel compiler supported the AMX intrinsics as well as gcc.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why are you asking the support of NOT using Intel's oneAPI and MKL in an Intel's DPC++/C++ compiler forum?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, sorry for my mistake. I have tried to contact Intel and got a reply “We recommend that you submit the same topic to the DPC++/C++ compiler forum at this link: https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/bd-p/oneapi-data-parallel-c”
I really didn't find the right place to submit my question, and since Intel OneAPI has built-in support for the AMX instructions, I expect to find out whether this interface will be supported out of the MKL environment.
I would appreciate it if there are other ways to get the support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think the key is MKL or something, it's the Intel c++ compiler.
at this link
I mean, if the AMX instruction set can be supported in the Intel oneAPI C++ Compiler, I'll also be able to use them in places like msvc or g++, since the header files are provided by Intel® and the technical documentation points to the Intel oneAPI C++ Compiler documentation.
But the truth is that I didn't find the interface to the AMX instruction set here, I only found it in MKL, that is why I mentioned MKL
In short, I'm just trying to find out when the AMX instruction set will be supported in the Intel c++ compiler
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may find the AMX intrinsics from Intel intrinsic guide: https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#ig_expand=6859,6860,6860&techs=AMX
And here is an example using AMX intrinsics: https://www.intel.com/content/www/us/en/developer/articles/code-sample/advanced-matrix-extensions-intrinsics-functions.html (old programming model same as gcc. Developers need to specify the tile configuration)
The blog introduced new programming model (compiler will automatically do tile configuration) and also gave an example (see Intel® Advanced Matrix Extensions): https://www.intel.com/content/www/us/en/developer/articles/technical/whats-new-in-llvm-for-4th-gen-intel-xeon-processor.html
Both LLVM and Intel compiler supported the AMX intrinsics as well as gcc.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page