How to call sygvd(a, b, w [,itype] [,jobz] [,uplo] [,info])

How to call sygvd(a, b, w [,itype] [,jobz] [,uplo] [,info])

Dear all,

I want to solve the Ax = vBx by calling subroutine of call sygvd(a,b,w[,itype][,jobz][,uplo][,info]) for g95.
I refer to
and generate the following link and include options

 -L$(MKLROOT)/lib/intel64 $(MKLROOT)/lib/intel64/libmkl_blas95_lp64.a $(MKLROOT)/lib/intel64/libmkl_lapack95_lp64.a -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm   <<<<here I delete the '-lpthread -lm' because they do not exist in my linux system  

-I$(MKLROOT)/include/intel64/lp64 -I$(MKLROOT)/include

When I compile my program, I get the following error:

ifort -c -o He.o He.F90
ifort -c -o He_m.o He_m.F90
ifort -o runHeif.exe He_m.o He.o -I/opt/intel/composerxe-2011.4.191/mkl/include/intel64/lp64 -I/opt/intel/composerxe-2011.4.191/mkl/include -L/opt/intel/composerxe-2011.4.191/mkl/lib/intel64 /opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_blas95_lp64.a /opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_lapack95_lp64.a /opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_lp64.a /opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_sequential.a /opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_core.a
He.o: In function `MAIN__':
He.F90:(.text+0xc0e): undefined reference to `sygvd_'
He.o: In function `svm_':
He.F90:(.text+0x20b1): undefined reference to `sygvd_'
make: *** [runHeifort] Error 1How to solve this problem?

Notes: I use non-commercial l_fcompxe_intel64_2011.4.191.tgz and l_mkl_10.3.4.191_intel64.tgz
Is there anything with my delete of '-lpthread -lm' ?
My program is very simple, I upload it.

Best regards.

Downloadapplication/x-gtar prog.tgz3.8 KB
2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


add  USE mkl95_LAPACK in my source code

please close or delete this post.

Best regards.

Leave a Comment

Please sign in to add a comment. Not a member? Join today