-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
The test for checking FMA_NATIVE is faulty. #33011
Comments
More details and a breadcrumb for exposing LLVM support here: #9855. |
We don't really need LLVM support since we have all the information in It's hard to expose a user-facing generic, flexible and stable API but for now exposing a temperary internal API should do no worse than now (Also note that the check cannot be fixed as is since it's at most reflecting the compiling machine status) We could simply add a function to |
FWIW, given the target machine people are likely going to run julia on, I feel like setting it to |
The Travis Mac doesn't have fma. Despite compiling locally on a machine where it should be true, it's somehow set to
|
What if we changed |
Wait, that's our check? That's straight up broken. We absolutely should fix that. |
now with PR #37886 |
To follow up on @yuyichao's comment, we can now do: import Base.BinaryPlatforms.CPUID
function has_fma()
CPUID.test_cpu_feature(CPUID.JL_X86_fma) ||
CPUID.test_cpu_feature(CPUID.JL_X86_fma4) ||
CPUID.test_cpu_feature(CPUID.JL_AArch32_vfp4) ||
CPUID.normalize_arch(String(Sys.ARCH)) == "aarch64"
end This has two problems:
if @static has_fma()
...
end In other words, we wouldn't be able to use this for the standard library, as it would simply be reflecting the architecture of the buildbot. |
Is there a way we can query the cpu_target from within Julia? |
Theoretically #43085 should take care of this for us. |
We currently check for support for FMA (fused multiply add) by doing
From #33010 (comment) @yuyichao said:
The text was updated successfully, but these errors were encountered: