Skip to content

Prebuilt x86 linux libs use EVEX encoding for AVX instructions, causing SIGILL #25

Closed
@AutonomicPerfectionist

Description

@AutonomicPerfectionist

Attempting to use the pre-packaged libjllama.so on x86_64 Linux on CPUs that don't support AVX512 causes a SIGILL crash. I dumped the object code and found that an AVX2 instruction was encoded using the EVEX encoding scheme, which was added with the AVX512 extension. I don't have any CPUs that support AVX512 so I can't truly verify that this is the cause of the SIGILL crash, but it seems pretty likely. I think I've pinpointed the cause of this change to ggml-org/llama.cpp#3273, so we probably need to add LLAMA_NATIVE=OFF for linux x86 now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions