Skip to content

have_bf16 always returns false on Nvidia Grace CPU (neoverse-v2) on Linux #54389

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

Closed
giordano opened this issue May 7, 2024 · 1 comment
Closed
Labels
system:arm ARMv7 and AArch64 system:linux Affects only Linux

Comments

@giordano
Copy link
Contributor

giordano commented May 7, 2024

Function have_bf16 always returns false on an Nvidia Grace CPU (Neoverse V2), despite the fact the bf16 extension is available. In particular, the function caller.hasFnAttribute("julia.hasbf16") at

static bool have_bf16(Function &caller, const Triple &TT) {
if (caller.hasFnAttribute("julia.hasbf16")) {
return true;
}
// there's no targets that fully support bfloat yet;,
// AVX512BF16 only provides conversion and dot product instructions.
return false;
}

is always 0. I tried also to compile from source with GCC 13, as suggested by @gbaraldi, but to no avail. CC: @maleadt.

@giordano giordano added system:linux Affects only Linux system:arm ARMv7 and AArch64 labels May 7, 2024
@giordano
Copy link
Contributor Author

Returning true on aarch64 may not be correct according to #55417 (comment). Closing in favour of #55479, which would be a better outcome overall.

@giordano giordano closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:arm ARMv7 and AArch64 system:linux Affects only Linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant