scalapack.h

Post here if you have some questions about the ScaLAPACK installer

scalapack.h

Postby ab2014 » Fri Oct 10, 2014 8:36 am

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
ab2014
 
Posts: 2
Joined: Fri Oct 10, 2014 8:05 am

Re: scalapack.h

Postby admin » Fri Oct 10, 2014 3:17 pm

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
admin
Site Admin
 
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm

Re: scalapack.h

Postby ab2014 » Mon Oct 13, 2014 10:08 am

Thank you. I was trying to replace mkl_scalpack.h with scalapack.h.
ab2014
 
Posts: 2
Joined: Fri Oct 10, 2014 8:05 am


Return to ScaLAPACK installer

Who is online

Users browsing this forum: No registered users and 1 guest