Error with zdotc and cdotc when compiling with gfortran+mkl
When MaPHyS is compiled with gfortran using mkl on plafrim2, a segmentation fault can occur. The error seems to come from the zdotc and cdotc function in mkl.
#5 (closed) zmph_test_all () at /home/gmarait/MAPHYS-DEV/spack-build/tests/unittest/zmph_test_all.F90:28 (at 0x0000000000402fff)
#4 test_utils_mod::test (sub=..., text=..., _text=25) at /home/gmarait/MAPHYS-DEV/tests/unittest/test_utils_mod.F90:107 (at 0x00007ffff7b935ac)
#3 (closed) zmph_test_dense_matrix_mod::zmph_test_dm_matvect_unsym () at /home/gmarait/MAPHYS-DEV/spack-build/tests/unittest/zmph_test_dense_matrix_mod.F90:56 (at 0x00007ffff7bbc079)
#2 (closed) zmph_test_dense_matrix_mod::zmph_test_dm_matvect (a=..., x=..., b=..., eps=1.0000000036274937e-15) at /home/gmarait/MAPHYS-DEV/spack-build/tests/unittest/zmph_test_dense_matrix_mod.F90:129 (at 0x00007ffff7bbbeea)
#1 (closed) zmph_test_fixture_mod::zmph_norm2_diff (a1=..., a2=..., len=5) at /home/gmarait/MAPHYS-DEV/spack-build/tests/unittest/zmph_test_fixture_mod.F90:478 (at 0x00007ffff7bb78cc)
#0 zdotc_ () from /cm/shared/apps/intel/composer_xe/2017.0.020/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_lp64.so (at 0x00007ffff5f4755f)