Page 1 of 1


PostPosted: Fri Oct 10, 2014 8:36 am
by ab2014

I am trying to install scalapack on my linux laptop (I have opempi) with the scalapack installer.

I have run successfully the following installation:
Code: Select all
 tar -xzvf scalapack_installer.tgz
 cd scalapack_installer_1.0.2/
 sudo ./ --prefix=/opt/scalapack --mpiincdir=/usr/lib/openmpi/include --downblas --downlapack

Unfortunately the directory /opt/scalapack/include is empty. I do not have any scalapack.h to link.

I have tried to compile my C program with
Code: Select all
mpicc ... -L/opt/scalapack/lib -lscalapack

Code: Select all
mpicc ... -L/opt/scalapack/lib/libscalapack.a

but I got
Code: Select all
 fatal error: scalapack.h: No such file or directory
 #include <scalapack.h>

Note that I can compile and run my program on some machine where scalapack have been installed.

Best Regards

Re: scalapack.h

PostPosted: Fri Oct 10, 2014 3:17 pm
by admin
First, you can consult the ScaLAPACK user guide available online at ... _slug.html

to compile your program,
Code: Select all
mpicc  "PATH TO libscalapack.a"  "PATH TO liblapack.a"  "PATH TO librefblas.a" -lgfortran
Code: Select all
mpicc  -L/$(MY PATH)/scalapack_installer/install/lib -lscalapack -llapack -lrefblas  -lgfortran

There is no scalapack.h

Hope it helps

Re: scalapack.h

PostPosted: Mon Oct 13, 2014 10:08 am
by ab2014
Thank you. I was trying to replace mkl_scalpack.h with scalapack.h.