Skip to content

Github Action build on Linux can pull in AVX512 via -march=native by default #5

@InternetOfTofu

Description

@InternetOfTofu

(For a detailed analysis on the code path involved, please see cjpais/Handy#91 (comment))

Currently transcribe-rs's whisper support depends on whisper-rs which includes whisper-rs-sys that contains a build.rs which configs and builds whisper.cpp as a library. However, whisper.cpp by default enables -march=native unless it's explicitly instructed to do a reproducible build or cross compilation. This chain of dependency in the end causes Handy's github action artifacts in some probability (some github action machines are avx512 enabled) will create a binary that includes avx512 instructions which isn't supported on most desktop platforms.

As I do not know an elegant solution to this problem, my current suggestion is to carry a patch to whisper-rs and whisper-rs-sys to manually set GGML_NATIVE flag to false. This can also be made into a feature if whisper-rs accepts it.

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