OpenMathLib / OpenBLAS

OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
http://www.openblas.net
BSD 3-Clause "New" or "Revised" License
6.34k stars 1.49k forks source link

Spack install of openblas on arm64 commands not working? #4938

Closed sbrewskier13 closed 1 hour ago

sbrewskier13 commented 2 hours ago

How does one call openblas within spack environment to install on something like a raspberry pi 5 arm64 architecture?

sbrewskier13 commented 2 hours ago

tried using

spack install --add openblas

and

spack install openblas target=aarch64

those error out and don't work

sbrewskier13 commented 2 hours ago

All prereqs are installed cmake, gmake, ninja, gcc

sbrewskier13 commented 1 hour ago

spack install --add openblas target=armv8 ==> Error: failed to concretize openblas arch=None-None-armv8, openblas@0.3.28/yor6hfw, py-numpy@2.1.2/a5hvgpa, ninja@1.12.1/qenxiub, ..., python@3.11.7/fwu2c3a for the following reasons:

  1. 'openblas target=neoverse_n1' cannot satisfy constraint 'target=armv8'. Couldn't concretize without changing the existing environment. If you are ok with changing it, try spack concretize --force. You could consider setting concretizer:unify to when_possible or false to allow multiple versions of some packages.
martin-frbg commented 1 hour ago

This is a problem within spack - their tool "helpfully" presets compiler/target options that conflict with what you actually want to use. There must be at least one open issue ticket in spack from at least a year ago - I untagged myself there after the comments became a stream of "me too" without any actual developer activity

sbrewskier13 commented 1 hour ago

So there's no fix

martin-frbg commented 31 minutes ago

I honestly do not know if anyone has come up with a workaround - but this is not an OpenBLAS problem, please take it up with Spack (and search their open issue list for existing discussions).