Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL+GCC+GOMP segfaults

Juan_Jose_Garcia_Rip
441 Views

Hi, I am experiencing the problem that I mention in the title. I have a program that we have built and linked in three different way: (i) ICC + MKL, (ii) GCC + MKL + GOMP and (iii) GCC + Atlas. Out of them, only (i) and (iii) seem to work, because option (ii) breaks down with a segmentation fault in mkl_serv_malloc() after exhausting all memory.

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
441 Views

can you give us the example of the code for reproducing the problem on our side?

0 Kudos
Juan_Jose_Garcia_Rip
441 Views

Hi Gennady, I am not sure whether this is useful for you. I bundled our simulation code here

https://dl.dropboxusercontent.com/u/23177754/mps-bundle-gcc.tar.gz

It consists on a general purpose high-level algebra library for C++ (mps-bundle-gcc/) and the simulation itself (mps-bundle-gcc/xy_...). To build it and run it is a three steps process:

* From mps-bundle-gcc/ issue "CC=gcc make build" this should detect the Intel MKL library and build the software with it

* From mps-bundle-gcc/xy_stuck issue "make"

* Execute mps-bundle-gcc/xy_stuck/xy_stuck.exe

In our case memory consumption grows until the program issues a SIGSEGV

I attach here the valgrind summary

https://dl.dropboxusercontent.com/u/23177754/xy_stuck.log

0 Kudos
Reply