mkl+scalapack issue  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
Jordan
Posts: 282
Joined: Tue May 07, 2013 9:47 am

mkl+scalapack issue

Post by Jordan » Thu Jan 30, 2014 11:45 pm

Dear all,

I am experiencing some issue using mkl+scalapack.
I compilte the code with -O0 -g -traceback options and with the ifort 14.0.1 compiler. The MKL is the version 11.0.1 and openmpi 1.7.2

Everything goes fine except the segfault that occures at the very beginning of the code.
The functions stack is
abi_linalg_init
init_scalapack
build_grid_scalapack
BLACS_GRIDINIT which is in th MKL library and can not be debugged.

I removed the scalapack linal flavor and it works.

I am not sure I really need scalapack but it is always good to report errors we find.

Best,

Jordan

EDIT : Scalapack of the MKL library, architecture Marenostrum III at the BSC (Intel Xeon E5-2670). Abinit is my 7.7.1-private, I can try the released 7.6
Attachments
config.log
(129.67 KiB) Downloaded 382 times
Last edited by Jordan on Tue Feb 04, 2014 6:24 pm, edited 2 times in total.

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: mkl+scalapack issue

Post by pouillon » Tue Feb 04, 2014 5:34 pm

As usual: which version of Abinit? Which version of ScaLAPACK? Which architecture? ...

A config.log would also be welcome.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

User avatar
gmatteo
Posts: 291
Joined: Sun Aug 16, 2009 5:40 pm

Re: mkl+scalapack issue

Post by gmatteo » Tue Feb 04, 2014 6:25 pm

I've encountered similar problems with MKL+Scalapack in older versions of Abinit (I guess Jordan is using v7.6 or 7.7.1).
I didn't have time to investigate the problem and I decided to disable Scalapack in the GW code.
Of course I'm not happy with this solution, and I would prefer to have a suite of unit tests for the Scalapack wrappers.
pFunit seems an interesting framework (http://pfunit.sourceforge.net/) as it provides supports for MPI and Omp

Jordan
Posts: 282
Joined: Tue May 07, 2013 9:47 am

Re: mkl+scalapack issue

Post by Jordan » Tue Feb 04, 2014 6:41 pm

Yes Matteo.
I did almost the same as you -> disable ScaLAPACK in the whole abinit since the segfault arrives at the very beginning of the code....

Jordan
Posts: 282
Joined: Tue May 07, 2013 9:47 am

Re: mkl+scalapack issue  [SOLVED]

Post by Jordan » Fri Feb 07, 2014 4:11 pm

I finally found out what the problem was.
I use openmpi and to use mkl+scalapack, one should link with mkl_blacs_openmpi !
Everything works smoothly now.

Jordan

Locked