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

libxsmm installation on Linux #869

Open
davaci opened this issue Mar 7, 2024 · 1 comment
Open

libxsmm installation on Linux #869

davaci opened this issue Mar 7, 2024 · 1 comment
Assignees

Comments

@davaci
Copy link

davaci commented Mar 7, 2024

Dear all,
I am experiencing issues on installing libxsmm on Linux/Debian 12.

According to the link, once having typed cd /path/to/libxsmm and make STATIC=0, g++ -I/path/to/libxsmm/include hello.cpp -L/path/to/libxsmm/lib -lxsmm -lblas -o hello brings to the following message:

usr/bin/ld: cannot find -lxsmm: No such file or directory
collect2: error: ld returned 1 exit status

I checked on the bounch of files and it appears that no -lxsmm and -lblas exist.

Any suggestions?
Regards,
davaci

@hfp hfp self-assigned this Mar 7, 2024
@alheinecke
Copy link
Collaborator

Does it work when not using STATIC=0? For blas you need to install the blas package from your distribution or build libxsmm with an option without BLAS fallback.

When you run ls in /path/to/libxsmm do you see the following:

ls lib/
libxsmm.env           libxsmmext.so         libxsmmf.pc         libxsmmf.so.1       libxsmmgen.so.1       libxsmmnoblas-shared.pc  libxsmmnoblas.so.1.17.0  libxsmm.so
libxsmmext.pc         libxsmmext.so.1       libxsmmf-shared.pc  libxsmmf.so.1.17.0  libxsmmgen.so.1.17.0  libxsmmnoblas.so         libxsmm.pc               libxsmm.so.1
libxsmmext-shared.pc  libxsmmext.so.1.17.0  libxsmmf.so         libxsmmgen.so       libxsmmnoblas.pc      libxsmmnoblas.so.1       libxsmm-shared.pc        libxsmm.so.1.17.0

Without STATIC=0 you should see:

ls lib/
libxsmm.a     libxsmmext.pc         libxsmmext.so.1       libxsmmf.a          libxsmmf.so         libxsmmf-static.pc  libxsmmnoblas.pc         libxsmmnoblas.so.1       libxsmm.pc         libxsmm.so.1
libxsmm.env   libxsmmext-shared.pc  libxsmmext.so.1.17.0  libxsmmf.pc         libxsmmf.so.1       libxsmmgen.a        libxsmmnoblas-shared.pc  libxsmmnoblas.so.1.17.0  libxsmm-shared.pc  libxsmm.so.1.17.0
libxsmmext.a  libxsmmext.so         libxsmmext-static.pc  libxsmmf-shared.pc  libxsmmf.so.1.17.0  libxsmmnoblas.a     libxsmmnoblas.so         libxsmmnoblas-static.pc  libxsmm.so         libxsmm-static.pc

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

3 participants