When I call "dgesv" routine from mkl library with fortran 95 interface I get segmentation fault.
call dgesv( adns, rhs , ipiv , info ) ! forrtl: severe (174): SIGSEGV, segmentation fault occurred
call dgesv( n, nrhs, adns, max(1,n), ipiv, rhs, max(1,n), info ) ! F77 works fine
ifort -V
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.2.139 Build 20140121
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
compiler flags: ifort main.f90 -mkl -lmkl_lapack95_lp64