Qt 6.11 is out! See what's new in the release
blog
AVX2 on OS X
Installation and Deployment
3
Posts
2
Posters
1.9k
Views
1
Watching
-
Hello,
I wan't to use some AVX2 code in my Qt App and run into a problem. On Windows every thing works as expected. But on OS X it only compiles, when I set
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX2. Only then the App doesn't work on non AVX2 CPUs at all and crashes on start up, not when my code executes.It there a way around it?
Thanks
-
What is the exact error you get if you compile without
QMAKE_CXXFLAGS += $QMAKE_CFLAGS_AVX2? That instructs the compiler to use AVX2 in general if appropiate optimization is on place, not only when used by hand.