Skip to content

Segfault on Julia 1.9 on Intel Sapphire Rapids during precompilation #1113

@BioTurboNick

Description

@BioTurboNick

I recently started using an AWS server using an Intel Sapphire Rapids CPU. When I installed Julia 1.9 on it, CSV segfaulted during precompilation (JuliaLang/julia#51482). This is apparently due to issues with LLVM 14 and Float16 instructions; Float16 generally is broken for this combination of software and hardware (JuliaLang/julia#51686). Julia 1.8 (LLVM 13) and Julia 1.10 (LLVM 15) do not have this issue.

The precompilation crash is specifically due to compiling the following line. If I change the target type to Float32, precompilation works fine.

pos, code = parsevalue!(Float16, buf, pos, len, row, rowoffset, i, col, ctx)

It's clearly an issue for LLVM/Julia to fix ultimately, but hard to know how long that will take; also possible that the fix would be too hard, and the "solution" would be to move to Julia 1.10.

But if there's anything that could be done to provide an easy workaround, even just to allow everything to work so long as someone isn't using Float16s?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions