-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Raise an error for unsupported MARCH or JULIA_CPU_TARGET #27439
Conversation
Extend the existing check for ARCH and MARCH and also reject 'generic'.
Please reopen for 0.6. Master doesn't need this anymore. |
Why? At the very least, |
Isn’t it still a valid target name on master? We want to avoid targeting i387, since the i387 gives incorrect answers and (iirc) the mode switch is also very expensive (and not just because it changes the ABI) |
See also #21849 (comment). |
I thought you said at #27402 (comment) we should reject |
And as for the C code.
It's a 0.6 issue. We should also "reject" generic on master but it's already handled automatically in the code so that neither the build system nor the user compiling/specifying |
OK, great. Does checking It's kind of late to fix this on 0.6, but I've filed #27440 anyway. |
Checking is just, well, checking that it's available. Depending on the compiler though, it actually doesn't mean sse is preferred over x87. #21742 (comment) (likely gcc specific iirc) Checking march in makefile doesn't help either though.
Maybe. Also note that,
is actually not the case. I'm pretty sure there aren't different x86 ABI depending on the availability of sse registers. Even on latest x86 processors, 32bit code will still return floating point values on the x87 stack. |
What I meant is that still checking MARCH could make sense since passing |
Hmm, I'm a little confused about what you are asking. In any case, the points areqn
|
Yeah, not sure what I was thinking. Of course the |
Extend the existing check for
ARCH
andMARCH
and also reject 'generic'.See #27402.