Skip to content

[Python] DEFAULT option in simd_level of cli.py missing #48960

@chiranmoyf

Description

@chiranmoyf

Describe the bug, including details regarding any error messages, version, and platform.

There is an error when following this documentation to build and benchmark Arrow using Archery.
For aarch64 machines, except NONE, none of the existing options in simd_level are valid.
The error also occurs on x86_64, unless one of SSE4_2, AVX2, or AVX512 is specified.

Here's the check in dev/archery/archery/cli.py:

simd_level = click.Choice(["NONE", "SSE4_2", "AVX2", "AVX512"],
                          case_sensitive=True)

With the DEFAULT option in simd_level, Neon paths will be activated for aarch64 machines, and SSE4_2 will be activated for x86_64.

Here's the exact error message for aarch64 (Graviton3).
Error: Invalid value for '--simd-level': 'DEFAULT' is not one of 'NONE', 'SSE4_2', 'AVX2', 'AVX512'.

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions