Skip to content

Lack of AVX-512 causing installation errors while installing Executorch #12817

@cad-rlc

Description

@cad-rlc

Issue: Lack of AVX-512 on our CPU causing installation errors while installing Executorch on main and viable/strict branch.

Resolution: Redefine _mm_loadu_si64 and _mm_storeu_si64 to their safe AVX2-compatible equivalents using compiler flags. The command used was

CFLAGS="-D_mm_loadu_si64=_mm_loadl_epi64 -D_mm_storeu_si64=_mm_storel_epi64”
CXXFLAGS="-D_mm_loadu_si64=_mm_loadl_epi64 -D_mm_storeu_si64=_mm_storel_epi64"
./install_executorch.sh |& tee executorch_installation.log

Commenting out XNNPACK does not resolve the issue.

Is AVX-512 a requirement for executorch installation? If so, is it documented somewhere?

Thanks

@zonglinpengmeta @mcremon-meta

cc @digantdesai @mcr229 @cbilgin

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: xnnpackIssues related to xnnpack delegation and the code under backends/xnnpack/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions