Skip to content

Cmake file always assumes AVX2 support #1583

Closed
@diwu1989

Description

@diwu1989

When running cmake the default configuration sets AVX2 to be ON even when the current cpu does not support it.
AVX vs AVX2 is handled correctly in the plain makefile.

For cmake, the AVX2 has to be turned off via cmake -DLLAMA_AVX2=off . for the compiled binary to work on AVX-only system.

Can we make the cmake file smarter about whether to enable or disable AVX2 by looking at the current architecture?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuildCompilation issueshigh priorityVery important issuestale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions