Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6974 Discussions

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

youzhao_l_
Beginner
296 Views

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 http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
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.
sandf

0 Kudos
1 Reply
youzhao_l_
Beginner
296 Views

solved

add  USE mkl95_LAPACK in my source code

please close or delete this post.

Best regards.
sandf

0 Kudos
Reply