Backwards compatibility of AVX

Backwards compatibility of AVX

imagem de 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 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de Hannes Hofmann

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

imagem de 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.

imagem de softtalk

Thank you both for your responses!

imagem de 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.

Faça login para deixar um comentário.