fflas-ffpack
fflas-ffpack copied to clipboard
how to configure with blas on fedora 23
what is the convenient way to configure fflas_ffpack with blas, let say on fedora 32?
checking for USER BLAS... problem
I have several blas version installed: Atlas:
atlas.x86_64
atlas-sse3,
atlas-devel-3.10.2-6.fc23.x86_64,
Openblas:
openblas-openmp.x86_64,
Could you eventually add explicit examples into the installation for different distributions, e.g. for
ubuntu,
debian,
Linux mint,
scientificLinux,
CentOS
Mac OS,
fedora
? Otherwise users like me will ran into this issues again and again..
Hi,
On Fedora, passing the --with-blas-libs=-lsatlas
should suffice to have fflas-ffpack linked against the distribution's single threaded atlas. Note that you need to install the development version of ATLAS package: atlas-devel.i686
.
As for OpenBLAS, --with-blas-libs=-lopenblas
should also work.
Note that we strongly recommend to link to a single-threaded BLAS (as the parallelization is taken care at the level of the FFLAS library).
I tested the two examples above on a Fedora x86_64 and worked. I do not have access to a i688 Fedora for the moment.
I updated the README.md file given more detailed instructions on how to configure with various BLAS's. I incorporated a list of examples (which can still be populated).
If it still does not solve your pb, please post the config.log.
--with-blas-libs=/usr/lib64/atlas/libsatlas.so.3
worked for me
--with-blas-libs=-lopenblas
worked, too
--with-blas-libs=-lsatlas
did not... (ist is not in the search path):
ld -lsatlas --verbose
attempt to open /usr/x86_64-redhat-linux/lib64/libsatlas.so failed
attempt to open /usr/x86_64-redhat-linux/lib64/libsatlas.a failed
attempt to open /usr/lib64/libsatlas.so failed
attempt to open /usr/lib64/libsatlas.a failed
attempt to open /usr/local/lib64/libsatlas.so failed
attempt to open /usr/local/lib64/libsatlas.a failed
attempt to open /lib64/libsatlas.so failed
attempt to open /lib64/libsatlas.a failed
attempt to open /usr/x86_64-redhat-linux/lib/libsatlas.so failed
attempt to open /usr/x86_64-redhat-linux/lib/libsatlas.a failed
attempt to open /usr/local/lib/libsatlas.so failed
attempt to open /usr/local/lib/libsatlas.a failed
attempt to open /lib/libsatlas.so failed
attempt to open /lib/libsatlas.a failed
attempt to open /usr/lib/libsatlas.so failed
attempt to open /usr/lib/libsatlas.a failed
ld: cannot find -lsatlas
[jakob@localhost fflas-ffpack-2.2.1]$ locate libsatlas.so
/home/jakob/Projects/sage-upgrade-singular/local/lib/libsatlas.so
/usr/lib/atlas-sse3/libsatlas.so.3
/usr/lib/atlas-sse3/libsatlas.so.3.10
/usr/lib64/atlas/libsatlas.so
/usr/lib64/atlas/libsatlas.so.3
/usr/lib64/atlas/libsatlas.so.3.10
--with-blas-libs=-lsatlas
did not... (ist is not in the search path):
Sorry, it should be
--with-blas-libs="-L/usr/lib64/atlas -lsatlas"
It has been an annoying issue since many years that the atlas package uses the subdirectory atlas within lib or lib64.