Hello,
so we are working for better C support for LAPACK and ScaLAPACK right now. Some of the files I will give away now are to be considered as temporary and just to help you.
Just be ready to discard this in the future.
You can find a demo code (it is just one of our scalapack tester that I have cleaned) at:
test_pdgesvd.c
it needs some header files, you can find (highly temporary) them at:
blas.h lapack.h blacs.h scalapack.h
you compile the .c file with the regular mpicc
then you link with mpif77 using the scalapack/blacs/blas libraries
this gives on my machine:
mpicc -O3 -Wall -c test_pdgesvd.c -o test_pdgesvd.o
mpif77 test_pdgesvd.o pdgesvd.o -lscalapack -lblacsF77init -lblacs -lf77blas -latlas -o test_pdgesvd
So I will certainly erase this post in a near future since we are writing all this in a more consistent manner but basically it should help you running using scalapack.
So for the SVD: you need to use on scalapack-1.7.1 at least, otherwise it is not going to work. You can have the new version at:
scalapack-1.7.1.tgz
Julien