Skip to content

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

@giordano

Description

@giordano

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions