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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "English Common Forum" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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
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
View and moderate all "English Common Forum" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thanks for responding.
Yes. I used -mvsx and it worked.
Last edit: Anonymous 2016-08-31