Sigsegv with Intel Compiler  [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
falsafi
Posts: 2
Joined: Thu Mar 31, 2016 10:28 am

Sigsegv with Intel Compiler

Post by falsafi » Mon Apr 11, 2016 9:17 am

Hi,

I configured and made abinit with mkl and cuda, on intel cpu and nvida GPU, but the program seemed to be problematic.

With gdb, I found the place where the program emitted sigsegv:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00007fffd4af8d0d in mkl_blas_avx2_xzcopy () from /opt/intel/[b]composer_xe_2015.3.187[/b]/mkl/lib/intel64/libmkl_avx2.so
Missing separate debuginfos, use: debuginfo-install xorg-x11-drv-nvidia-libs-352.79-1.el7.x86_64
(gdb) r


I would appreciate your help!
Last edited by falsafi on Mon Apr 18, 2016 2:40 am, edited 4 times in total.

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

Re: Sigsegv with Intel Compiler  [SOLVED]

Post by gmatteo » Mon Apr 11, 2016 9:46 am

with_linalg_libs="-L/home/xxx/lib/magma/lib -lmagma -L/opt/intel/mkl/lib -lmkl_scalapack_ilp64 -lmkl_intel_ilp64 -lmkl_core -lmkl_intel_thread lmkl_blacs_intelmpi_ilp64 -lpthread -lm -ldl -liomp5 -lmkl_lapack95_ilp64"


Use the lp64 version of the mkl library instead of ilp64.
The ilp64 version assumes the 64-bit integer type whereas the default integer in Fortran is usually 4bytes.
One should compile Abinit with `ifort -i8` to be able to link against ilp64 but we don't test this option
on the test farm so, for the time being, I strongly suggest the lp64 interface.

See also https://software.intel.com/en-us/node/528682 for further details

BTW - Could you post the full backtrace given by gdb?

Locked