Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not consider building in arm #431

Open
Aristoeu opened this issue May 3, 2023 · 1 comment
Open

not consider building in arm #431

Aristoeu opened this issue May 3, 2023 · 1 comment

Comments

@Aristoeu
Copy link

Aristoeu commented May 3, 2023

Minimal, reproducible code sample, a copy-pastable example if possible

Build in arm

Problem description

The code in setup.py does not seem to consider installing numcodecs in arm.

if have_cflags:
    # respect compiler options set by user
    pass
elif os.name == 'posix':
    if disable_sse2:
        base_compile_args.append('-mno-sse2')
    elif have_sse2:
        base_compile_args.append('-msse2')
    if disable_avx2:
        base_compile_args.append('-mno-avx2')
    elif have_avx2:
        base_compile_args.append('-mavx2')

When there is no CFLAGS environmental variable defined, it will always add flags about sse2 and avx2, but all the four flags -mno-sse2, -msse2, -mno-avx2, and -mavx2 are not supported in linux/arm64 architecture. To build it successfully, I have to add some cflags mannually to ignore appending the flags.

Version and installation information

Please provide the following:

  • Value of numcodecs.__version__: latest
  • Version of Python interpreter: 3.8
  • Operating system (Linux/Windows/Mac): Linux
  • How NumCodecs was installed (e.g., "using pip into virtual environment", or "using conda"): pip install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants