-
-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instruction sets #986
Comments
Making As I have no knowledge on these, does it make sense to specify some of these options without the others? For example, |
My main reason toward creating a new api is that visual studio has a vector extension property (Enable Enhanced Instruction Set) that is covered by the vectorextensions api. VS take only one value for this property but gcc and clang can take multiple "-m" options. This is why I feel that we should keep vectorextensions as is. I have two other smaller reasons for this. Finally, I did not encounter this issue and it might never be one but if someone want to do something like
With vector extension being a list:string, the gcc command line for src.cpp would be About AVX2 and F16C, VS does use F16C everywhere but gcc let the user choose to use F16C alone or not so I feel we should follow gcc here. |
I see what you're saying, I agree with you regarding the new API. |
Good, something else took priority over this but I hope to do this before this week's end. I might have other questions like this in the future, are github issues the correct way to do this or would you prefer I use the google developer group? |
The developer group is generally pretty quite; GitHub issues are proving to be more useful. |
Closing this as the PR was merged. |
Currently, vectorextensions can only hold one value at a time which make sense as avx include sse and avx2 include avx and so on.
But in gcc 5.4, if you want both avx2 and f16c you need -mavx2 and -mf16c and -mf16c does not include avx2.
Another example, -mbmi2 does not include -mbmi.
I am wondering what is the best way too add this in premake, a new api entry or setting vectorextensions kind to a list:string.
I personally am leaning toward a new api but wanted your input on this.
Note that visual studio manage this internally, f16c is used since visual 2012 so this option is for gcc and clang.
The text was updated successfully, but these errors were encountered: