Can anyone please provide some advice on how to deal with a run-time error from a lapack function (used to calculate eigen values). The codes can be compiled but I got the following run-time error:
MKL ERROR: Parameter 5 was incorrect on entry to DSYEV
Some background information:
1. I'm trying to use dsyev_ function for calculating eigenvalue/vectors by doing the following:
dsyev_("V","U", &n, &mat, &lda, &vec, work, &lwork, &info);
2. Environment is Linux and this is my LIB_DIRS:
LIB_DIRS = -L/xenv/ICC/X/11.0_081/mkl/lib/em64t /xenv/ICC/X/11.0_081/mkl/lib/em64t/libmkl_solver_ilp 64_sequential.a -Wl,--start-group /xenv/ICC/X/11.0_081/mkl/lib/em64t/libmkl_intel_ilp64.a /xenv/ICC/X /11.0_081/mkl/lib/em64t/libmkl_sequential.a /xenv/ICC/X/11.0_081/mkl/lib/em64t/libmkl_core.a -Wl,--end-group -lpthread -llapack
I have been struggling with this error for a long time, can someone please let me know what might be causing this?
Any information will be highly appreciated.