> Am 20.08.2023 um 00:45 schrieb ZiNgA BuRgA via Gcc-patches > <gcc-patches@gcc.gnu.org>: > > Hi, > > With the proposed design of these switches, how would I restrict AVX10.1 to > particular AVX-512 subsets? > > For example, usage of the |_mm256_rol_epi32| intrinsic should be compatible > on any AVX10/256 implementation, /as well as /any AVX-512VL without AVX10 > implementation (e.g. Skylake-X). But how do I signal that I want > compatibility with both these targets? > > * |-mavx512vl| lets the compiler use 512-bit registers -> incompatible > with 256-bit AVX10. > * |-mavx512vl -mprefer-vector-width=256| might steer the compiler away > from 512-bit registers, but I don't think it guarantees it. We’ve been taking these cases as bugs (but yes, intrinsics are still allowed, so in some cases it might prove difficult to guarantee this). I don’t see any other way of doing what you want within the constraints of this design. > * |-mavx10.1-256| lets the compiler use all Sapphire Rapids AVX-512 > features at 256-bit wide (so in theory, it could choose to compile > it with |vpshldd|) -> incompatible with Skylake-X. > * |-mavx10.1-256 -mno-avx512fp16 -mno-avx512...| will emit a warning > and ignore the attempts at disabling AVX-512 subsets. > * |-mavx10.1-256 -mavx512vl| takes the /union/ of the features, not > the /intersection./ > > Is there something like |-mavx512vl -mmax-vector-width=256|, or am I > misunderstanding the situation? > > Thanks!
Re: Intel AVX10.1 Compiler Design and Support
Richard Biener via Gcc-patches Sat, 19 Aug 2023 22:45:13 -0700
- Re: Intel AVX10.1 Compiler... Hongtao Liu via Gcc-patches
- Re: Intel AVX10.1 Com... Jan Beulich via Gcc-patches
- Re: Intel AVX10.1 Com... Florian Weimer via Gcc-patches
- Re: Intel AVX10.1... Hongtao Liu via Gcc-patches
- RE: Intel AVX10.1... Zhang, Annita via Gcc-patches
- RE: Intel AVX10.1... Michael Matz via Gcc-patches
- RE: Intel AVX10.1... Zhang, Annita via Gcc-patches
- RE: Intel AVX10.1 Compiler Design and Suppo... Jiang, Haochen via Gcc-patches
- Re: Intel AVX10.1 Compiler Design and ... Jakub Jelinek via Gcc-patches
- Re: Intel AVX10.1 Compiler Design and Suppo... ZiNgA BuRgA via Gcc-patches
- Re: Intel AVX10.1 Compiler Design and ... Richard Biener via Gcc-patches
- Re: Intel AVX10.1 Compiler Design and ... Hongtao Liu via Gcc-patches
- Re: Intel AVX10.1 Compiler Design ... Richard Biener via Gcc-patches
- Re: Intel AVX10.1 Compiler Des... Jakub Jelinek via Gcc-patches
- Re: Intel AVX10.1 Compiler... Hongtao Liu via Gcc-patches
- Re: Intel AVX10.1 Com... Jakub Jelinek via Gcc-patches
- Re: Intel AVX10.1... Hongtao Liu via Gcc-patches
- Re: Intel AVX10.1 Com... Richard Biener via Gcc-patches
- Re: Intel AVX10.1... Richard Biener via Gcc-patches
- Re: Intel AVX10.1... Hongtao Liu via Gcc-patches
- Re: Intel AVX10.1 Compiler Des... ZiNgA BuRgA via Gcc-patches