Support for /arch:AVX512 #2106
Replies: 3 comments 1 reply
-
|
There is currently no support for AVX512 in Premake, but it would be fairly easy to add. AVX512 is simple enough for Visual Studio, as it's only one flag. GCC and Clang have several flags for AVX512 generation. |
Beta Was this translation helpful? Give feedback.
-
|
Just to follow up, in it's current state, Premake allows you to pass options to the compiler via buildoptions {
"-mavx512f",
"-mavx512pf",
"-mavx512er",
"-mavx512cd",
"-mavx512vl",
"-mavx512bw",
"-mavx512dq",
"-mavx512ifma",
"-mavx512vbmi"
} And those flags would work for Clang and GCC. Clang also has a couple others you can use. For VS, you'd use: buildoptions { "/arch:AVX512" } |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Nick! I tried the buildoptions{} as you are suggesting and unfortunately this seems not to work. It seems the VS project files are not picking it up. I checked both the property grid entry for the AVX settings and used commandline. This is on VS2022 Community on Windows 10 Professional. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Any plans to add this? Or is there another way to set this in the current version?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions