Hey all,
I am running on a remote cluster which has LAPACK installed and I compile my code with -lblas -llapack (fortran 90) and it seems to work fine. I'm running the following code:
PROGRAM test_routines
IMPLICIT NONE
COMPLEX, DIMENSION(2,4) :: F
COMPLEX, DIMENSION(2,4) :: Q
F(1,:)=(/1.0, 0.0, 0.0 ,0.0/)
F(2,:)=(/1.0, 1.0, 0.0, 0.0/)
write(*,*) F(1,1), F(1,2), F(1,3), F(1,4)
write(*,*) F(2,1), F(2,2), F(2,3), F(2,4)
CALL CUNGQR(F,14.0)
write(*,*) F(1,1), F(1,2), F(1,3), F(1,4)
write(*,*) F(2,1), F(2,2), F(2,3), F(2,4)
END PROGRAM
It compiles and when it executes:
[ohanyan@accumulation shooting]$ make sample
/share/apps/mpich/pgi/bin/mpif90 -r8 -pc 64 -Kieee -Mnobuiltin test.f90 -o test.out -llapack -lblas
./test.out
(1.000000000000000,0.000000000000000) (0.000000000000000,0.000000000000000)
(0.000000000000000,0.000000000000000) (0.000000000000000,0.000000000000000)
(1.000000000000000,0.000000000000000) (1.000000000000000,0.000000000000000)
(0.000000000000000,0.000000000000000) (0.000000000000000,0.000000000000000)
make: *** [run_sample] Segmentation fault
What am I doing wrong?
And, how can I figure out what the appropriate IN, OUT of the functions are for LAPACK and what type, etc.., etc... the more help the better.

