franko / gsl-shell

GSL library shell based on LuaJIT2
http://franko.github.io/gsl-shell/
GNU General Public License v3.0
92 stars 12 forks source link

Fix linker issue on Linux #10

Closed bchretien closed 11 years ago

bchretien commented 11 years ago

Compilation failed with undefined reference to cblas... errors.

franko commented 11 years ago

On ubuntu the "blas" library exists and it does symlink to an highly optimized BLAS implementation, typically either OpenBLAS or other implementations like ATLAS.

If you link with gslcblas the performance in operations like big matrix multiplication are quite slow. The gslcblas is just a reference implementation.

If you are preparing a package for the ARCH distribution I'm wondering if OpenBLAS is available and in which form and if a generic blas library is available.

bchretien commented 11 years ago

Indeed, I saw this error while making an AUR package for the Git version: https://aur.archlinux.org/packages/gsl-shell-git/

OpenBLAS is available in AUR. If the performance gain is really important, I guess I could make a more complicated PKGBUILD which will add -lgslcblas only if OpenBLAS is not installed. atlas-lapack is available in AUR as well.

Also, you may see a patch for truetype font support on Arch Linux in the AUR package.

franko commented 11 years ago

Hi Benjamin,

on Debian system -lblas works fine out of the box.

Do you have a solution on Arch linux to avoid linking explicitly to gslcblas ? Should I consider this still an open issue ?

Francesco

bchretien commented 11 years ago

I will look into it as soon as I can. Note that I can handle these linking issues directly into the PKGBUILD script, which might be the best solution.

bchretien commented 11 years ago

Since another AUR user reported the issue to me, I finally modified the PKGBUILD with an extra patch for makepkages. I guess we can close the issue now.