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

Build and test for Linux/ARM64 #1068

Open
odidev opened this issue Oct 24, 2024 · 5 comments
Open

Build and test for Linux/ARM64 #1068

odidev opened this issue Oct 24, 2024 · 5 comments

Comments

@odidev
Copy link

odidev commented Oct 24, 2024

Description

For aarch64 platform, I have built LAPACK from source.

Steps

Following steps" were used for the building and installation:

# sudo apt update 
# sudo apt install make cmake wget gfortran gcc -y 
# wget http://www.netlib.org/lapack/lapack-3.4.0.tgz 
# tar -xvf lapack-3.4.0.tgz 
# cd lapack-3.4.0 
# mkdir build 
# cd build 
# cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/lapack .. 
# make -j$(nproc) 

Outcome

To validate that the build was successful we ran tests that were generated using make test command. All the tests ran successfully.

All this information is also added to Software Ecosystem Dashboard for Arm.

@martin-frbg
Copy link
Collaborator

martin-frbg commented Oct 24, 2024

Thank you for the effort, but that version of LAPACK is about thirteen years old, I'm not sure why anyone would want to build and use it today. Building any more recent version on Linux/aarch64 should be equally straightforward, and you should find binaries included in all relevant distributions already.

@Gygnus6
Copy link

Gygnus6 commented Dec 5, 2024

can build lapack without gfortran?

@martin-frbg
Copy link
Collaborator

Only if you have any other Fortran compiler (like flang-new in the latest releases of LLVM) available - the sources are entirely in Fortran. There is a machine translation of a very old (3.4) version to C available as CLAPACK, and I have included a similar translation of less outdated (3.9) code in OpenBLAS. Most of the changes and additions in Reference-LAPACK since then use modern Fortran features that cannot be machine translated to C (at least not by the old but free GNU f2c tool)

@Gygnus6
Copy link

Gygnus6 commented Dec 5, 2024

sorry, lib ceres depend on lib lapack, but for qnx system not have gfortran compiler. and can`t solve the issue. but Thank you very much.

@martin-frbg
Copy link
Collaborator

as I wrote - look for CLAPACK but it is a C translation of the LAPACK code from about 10 or 15 years ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants