Menu

what is the equivalent of -mno-avx2 for ppc ?

Anonymous
2016-08-25
2016-08-31
  • Anonymous

    Anonymous - 2016-08-25

    I've encountered an error while compiling "gcc: error: unrecognized command line option '-mno-avx2'" on my ppc machine. Reading online about it I found that it is a x86 intruction flag. I want to know the ppc equivalent for it.

    Any pointers on this will be really helpful

     

    Last edit: Anonymous 2016-08-25
  • Yermalayeu Ihar

    Yermalayeu Ihar - 2016-08-25

    Use options -maltivec or -mvsx (for Power 7 and higher) for PPC. It is analogue of SSE (128 bit vector). Analogue of AVX (256 bit vector) is absent.

    See:
    https://github.com/ermig1979/Simd/blob/master/prj/cmake/CMakeLists.txt

     
  • Anonymous

    Anonymous - 2016-08-26

    Thanks for responding.

    Yes. I used -mvsx and it worked.

     

    Last edit: Anonymous 2016-08-31

Anonymous
Anonymous

Add attachments
Cancel