Hi, my student and I are running two different Macs (mine Mavericks and his Mountain Lion) and did not (knowingly) link against Apple's vecLib, yet we're both still getting segmentation faults in the same place when we try to run the first tutorial.
We compiled OpenMPI from source as directed, used MacPorts wherever not specified (using package "libconfig-hr" for a recent version of libconfig), and configured AcouSTO via...
It is clearly a blas problem. I won't have a mac at hand for all the w.e., so you have to wait till Monday. In the meanwhile, could you please provide more info about your environment.
System version, ompi version, macport version etc. etc.
I'm also running both Mavericks and MLion and I've never had this problem.
Could you also check that acousto is linking exactly against the same blas/lapack as scalapack .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is clearly a blas problem. I won't have a mac at hand for all the w.e., so you have to wait till Monday. In the meanwhile, could you please provide more info about your environment.
System version, ompi version, macport version etc. etc.
I'm also running both Mavericks and MLion and I've never had this problem.
Could you also check that acousto is linking exactly against the same blas/lapack as scalapack .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
UPDATE: No need to read this. Fixed it. See two-posts below.
Thanks for your reply umberto.
Yes, the config file was not mofied.
I'm using OS X 10.9.4. And my student had 10.7.5. We both used OpenMPI 1.8.1, and the latest updates from MacPorts, scalapack installer 1.0.2, which downloaded scalapack 2.02.
We were following instructions for installing on OS X 10.7.5 at
(I only later found the instructions for Mavericks, but didn't want to switch from MacPorts to Homebrew since I use MacPorts for other applications.)
For linking, we used the final output instructions from the scalapack installer to specify blas & lapack directories, i.e. where the installer said "Your BLAS library is -L...etc" (took off the -L for the Acousto config, as shown in the OP).
I notice there are lapack and blas libs in /usr/lib, but since we specified for AcouSTO to use scalapack's versions in the configure script, I'm not sure how these might interfere.
One thing I notice: it says the MPI version is set to 1.7, but I specified which mpicc to use, and that was built via OpenMPI version 1.8.1. ?? There is no other mpicc on my system.
Last edit: Scott H 2014-07-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
% ls ~/apps/scalapack_installer_1.0.2/install/liblibrefblas.alibreflapack.alibscalapack.alibtmg.a
There is actually no libblas.a or liblapack.a created by the scalapack installer!
So all the linker could link to was Apple's versions, /usr/lib/libblas.a, etc.
(Why would the scalapack people do that??)
Fixed it by adding symbolic links, i.e.
cd ~/apps/scalapack_installer_1.0.2/install/lib
ln -s librefblas.a libblas.a
ln -s libreflapack.a liblapack.a
Rebuilt AcouSTO. Now the tutorial runs to completion. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, my student and I are running two different Macs (mine Mavericks and his Mountain Lion) and did not (knowingly) link against Apple's vecLib, yet we're both still getting segmentation faults in the same place when we try to run the first tutorial.
We compiled OpenMPI from source as directed, used MacPorts wherever not specified (using package "libconfig-hr" for a recent version of libconfig), and configured AcouSTO via...
% ./configure --with-mpicc=/usr/local/bin/mpicc --enable-mpinew --with-libconfig=/opt/local/lib --with-blacs=$HOME/apps/scalapack_installer_1.0.2/install/lib --with-scalapack=$HOME/apps/scalapack_installer_1.0.2/install/lib --enable-scalapack_new --with-lapack=$HOME/apps/scalapack_installer_1.0.2/install/lib --with-blas=$HOME/apps/scalapack_installer_1.0.2/install/lib
When running, with or without MPI, we see the following...
Can someone help us understand this and hopefully fix it?
Thanks.
You are using the pure tutorial without any change of the configuration files, right? Does this happen with all the tutorials?
It is clearly a blas problem. I won't have a mac at hand for all the w.e., so you have to wait till Monday. In the meanwhile, could you please provide more info about your environment.
System version, ompi version, macport version etc. etc.
I'm also running both Mavericks and MLion and I've never had this problem.
Could you also check that acousto is linking exactly against the same blas/lapack as scalapack .
It is clearly a blas problem. I won't have a mac at hand for all the w.e., so you have to wait till Monday. In the meanwhile, could you please provide more info about your environment.
System version, ompi version, macport version etc. etc.
I'm also running both Mavericks and MLion and I've never had this problem.
Could you also check that acousto is linking exactly against the same blas/lapack as scalapack .
UPDATE: No need to read this. Fixed it. See two-posts below.
Thanks for your reply umberto.
Yes, the config file was not mofied.
I'm using OS X 10.9.4. And my student had 10.7.5. We both used OpenMPI 1.8.1, and the latest updates from MacPorts, scalapack installer 1.0.2, which downloaded scalapack 2.02.
We were following instructions for installing on OS X 10.7.5 at
(I only later found the instructions for Mavericks, but didn't want to switch from MacPorts to Homebrew since I use MacPorts for other applications.)
For linking, we used the final output instructions from the scalapack installer to specify blas & lapack directories, i.e. where the installer said "Your BLAS library is -L...etc" (took off the -L for the Acousto config, as shown in the OP).
I notice there are lapack and blas libs in /usr/lib, but since we specified for AcouSTO to use scalapack's versions in the configure script, I'm not sure how these might interfere.
Here's the full output from AcouSTO's configure:
One thing I notice: it says the MPI version is set to 1.7, but I specified which mpicc to use, and that was built via OpenMPI version 1.8.1. ?? There is no other mpicc on my system.
Last edit: Scott H 2014-07-19
edit: ignore/delete this, see next reply.
Last edit: Scott H 2014-07-19
Found and fixed the problem:
There is actually no libblas.a or liblapack.a created by the scalapack installer!
So all the linker could link to was Apple's versions, /usr/lib/libblas.a, etc.
(Why would the scalapack people do that??)
Fixed it by adding symbolic links, i.e.
Rebuilt AcouSTO. Now the tutorial runs to completion. Thanks.