Backwards compatibility of AVX

Backwards compatibility of AVX

Bild des Benutzers softtalk

Could you clarify please whether there are any backwards compatibility issues with AVX? Should programmers consider it an added extra where supported, or will programs using it require it to run correctly?

Thanks!

5 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Hannes Hofmann

To my understanding it's to be considered as an extra, similar to SSE.

Bild des Benutzers Brijender Bharti

AVX works with SSE or non-SSE code, so in that sense it is backward compatible. It added a lot of other features in addition to SSE e.g. wider vector, 3 operand instruction coding, compact and efficient encoding of instructions, all adding to give better performance.

Bild des Benutzers softtalk

Thank you both for your responses!

Bild des Benutzers Hannes Hofmann

One more thing to add: There is a performance penalty for switching from SSE to AVX instructions (and vice-versa), so you should not mix them too much in your code. Try grouping them in separate blocks or use AVX only where possible.

Melden Sie sich an, um einen Kommentar zu hinterlassen.