Page 1 of 1

scalapack.h

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

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
 
 wget http://www.netlib.org/scalapack/scalapack_installer.tgz
 tar -xzvf scalapack_installer.tgz
 cd scalapack_installer_1.0.2/
 sudo ./setup.py --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

or
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
Alex

Re: scalapack.h

PostPosted: Fri Oct 10, 2014 3:17 pm
by admin
Alex,
First, you can consult the ScaLAPACK user guide available online at http://www.netlib.org/scalapack/slug/sc ... _slug.html

to compile your program,
Code: Select all
mpicc  "PATH TO libscalapack.a"  "PATH TO liblapack.a"  "PATH TO librefblas.a" -lgfortran
or
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.