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

BLAS detection :: broken on x86_64 #1763

Open
EricDeveaud opened this issue Nov 22, 2024 · 1 comment
Open

BLAS detection :: broken on x86_64 #1763

EricDeveaud opened this issue Nov 22, 2024 · 1 comment

Comments

@EricDeveaud
Copy link

Hello,

line 322 of CMakeList.txt breaks BALS detection

set(BLA_VENDOR Apple)

see.
NB only loaded blas related module and gcc cmake

wget -O-  https://github.com/veg/hyphy/archive/refs/tags/2.5.63.tar.gz | tar xz 
mkdir build && cd build 
module load cmake gcc BLAS && cmake ../hyphy-2.5.63/ 2> /dev/null | grep -i BLAS
-- Could NOT find BLAS (missing: BLAS_LIBRARIES)

tried with OPenBLAS

module purge 
module load cmake gcc OpenBLAS && cmake ../hyphy-2.5.63/ 2> /dev/null | grep -i BLAS
-- Could NOT find BLAS (missing: BLAS_LIBRARIES)

and once line 322 is removed or commented

sed -i -e 's;\(^.*BLA_VENDOR Apple.*\);#\1;' ../hyphy-2.5.63/CMakeLists.txt 

same than above.

with BLAS.

module load cmake gcc BLAS && cmake ../hyphy-2.5.63/ 2> /dev/null | grep -i BLAS
-- Found BLAS: /opt/gensoft/lib/BLAS/3.8.0/lib/libblas.so

with OpenBLAS

module load cmake gcc OpenBLAS && cmake ../hyphy-2.5.63/ 2> /dev/null | grep -i BLAS
-- Found BLAS: /opt/gensoft/lib/OpenBLAS/0.3.26/lib/libopenblas.so

regards

Eric

@spond
Copy link
Member

spond commented Nov 22, 2024

Dear @EricDeveaud,

I should actually just remove this check. At the moment hyphy does not use BLAS even if it detects it, because it contains highly specialized code for the specific types of matrices that are likely to occur in standard models which is faster than generic BLAS.

Thanks for letting me know.

Best,
Sergei

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

2 participants