Author Topic: New documentation for AMDs new AVX512 instructions?  (Read 818 times)

Ralphy

  • Regular Member
  • *
  • Posts: 8
New documentation for AMDs new AVX512 instructions?
« on: November 22, 2022, 04:09:45 AM »
Hi all,
   I must be looking in the wrong places but it seems AMD never updated their manuals for the new Zen4 AVX512 extensions.
   Is it accurate to use Intels documentation in the interim?
   If I'm in error maybe someone can let me know as to where the new documentation might be found?

greenozon

  • Member
  • **
  • Posts: 54
Re: New documentation for AMDs new AVX512 instructions?
« Reply #1 on: November 22, 2022, 04:21:57 AM »
The only official doc AMD provides is this one
https://www.amd.com/en/support/tech-docs/amd64-architecture-programmers-manual-volumes-1-5
it's rather frash (Oct'22)

Ralphy

  • Regular Member
  • *
  • Posts: 8
Re: New documentation for AMDs new AVX512 instructions?
« Reply #2 on: November 22, 2022, 04:38:12 AM »
Yes already have these. Volume #4 is about 128 and 256bit instructions dated Nov '21. Not one mention of AVX512 or ZMM registers in any of their documentation.

bluedevil

  • Member
  • **
  • Posts: 207
  • Binary Grinder
    • SCTZine
Re: New documentation for AMDs new AVX512 instructions?
« Reply #3 on: November 22, 2022, 05:09:46 AM »
it's rather frash (Oct'22)

On web site you provided:
Quote
Released
Thu, 03/11/2021 - 12:00

The pdf's last revision
Quote
October 2020 3.23
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

greenozon

  • Member
  • **
  • Posts: 54
Re: New documentation for AMDs new AVX512 instructions?
« Reply #4 on: November 22, 2022, 05:17:26 AM »
@bluedevil

if you click on pdf it'll render different info: 

https://prnt.sc/fYyi0ciFCraZ

bluedevil

  • Member
  • **
  • Posts: 207
  • Binary Grinder
    • SCTZine
Re: New documentation for AMDs new AVX512 instructions?
« Reply #5 on: November 22, 2022, 05:32:30 AM »
You are totally right. I did the very same thing but I have missed this one. Thank you.
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

greenozon

  • Member
  • **
  • Posts: 54
Re: New documentation for AMDs new AVX512 instructions?
« Reply #6 on: November 22, 2022, 06:20:29 AM »
You are welcome!
but anyway, ZMMs as well as AVX512 ops are still under the hood somehow...

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: New documentation for AMDs new AVX512 instructions?
« Reply #7 on: November 22, 2022, 06:32:00 AM »
As a rough guess, if AMD name extensions as the same as the Intel ones, its probably safe to use those extensions with AMD hardware. This should be current with late SSE, AVX and AVX2 but as far as I know, AVX512 is still developmental with Intel so I would imagine that it would be much the same with AMD as the got their fingers burnt some time back trying to introduce extensions of their own.

Simple approach is to write some test pieces using the Intel documentation and see if they work.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Ralphy

  • Regular Member
  • *
  • Posts: 8
Re: New documentation for AMDs new AVX512 instructions?
« Reply #8 on: November 22, 2022, 07:14:46 AM »
As a rough guess, if AMD name extensions as the same as the Intel ones, its probably safe to use those extensions with AMD hardware. This should be current with late SSE, AVX and AVX2 but as far as I know, AVX512 is still developmental with Intel so I would imagine that it would be much the same with AMD as the got their fingers burnt some time back trying to introduce extensions of their own.

Simple approach is to write some test pieces using the Intel documentation and see if they work.

That's what I thought. Would be nice to at least have a complete list of instructions they've implemented; that doesn't seem to be available even. Some of it magically does work as older Intel benchmarking software seems to work so correlation between the 2 platforms is at least partially functionally equivalent but details would certainly be nice.

What would be the best reference (based on Intel I suppose) that provides a comprehensive list of extension instructions grouped by functionality (eg. vector arithmetic, gather functions, shift functions, etc)? Also timing information?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: New documentation for AMDs new AVX512 instructions?
« Reply #9 on: November 22, 2022, 07:33:58 AM »
I would get the multi-manual set directly from Intel. You can download them for free and the architecture manual is worth reading as well as the instruction manual. Just be warned if you are not familiar with them that they are hard going and it takes a while to get the swing of them.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Ralphy

  • Regular Member
  • *
  • Posts: 8
Re: New documentation for AMDs new AVX512 instructions?
« Reply #10 on: November 22, 2022, 08:08:29 AM »
Thanks, will try that. Hard going is absolutely right. So far seems like only a huge alphabetically organized list of everything mixed together is all that's available. Could've sworn there was a grouped reference but maybe just a dream.  :bgrin:

Ralphy

  • Regular Member
  • *
  • Posts: 8
Re: New documentation for AMDs new AVX512 instructions?
« Reply #11 on: November 23, 2022, 07:50:04 AM »
Found this Japanese site. SIMD instructions from SSE to AVX512 organized by function.

https://www.officedaytime.com/simd512e/

Update Jan.12.2023:

AMD seems to have released some documentation on the new instructions, architecture and latencies on January 6th:

https://www.amd.com/en/support/tech-docs

Additionally found decent reference from Intel at:

https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html

  :bgrin:
« Last Edit: January 13, 2023, 11:18:59 AM by Ralphy »

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: New documentation for AMDs new AVX512 instructions?
« Reply #12 on: November 23, 2022, 10:47:36 AM »
Hi Ralphy, with the intel manuals, get the separate ones so you don't have to wade through a mountain of stuff that may not be what you are after. The architecture manual is worth reading by itself but for normal instruction reference, the instruction manual is the best one.

Its good that you have found a source that you like but persevere with the intel manuals as they are the best available and have the most comprehensive data available.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: