willow-ahrens/ReproBLAS

SEGV in MPI Example

Opened this issue · 0 comments

I compiled the library using the instructions, and with
Gcc 7.3.0; Python 2.7.15rc1 and opempi (3 and 4).

While the library compiles successfully, when I run the MPI example I get this error

$ > ./MPI_sum_sine 
Sum of sin(2* M_PI * (i / (double)n - 0.5)).  n = 100000.

     Sum Method : Time (s) : |Sum - Sum of Shuffled| = ?
         double : 0.000354 : |9.22010745204628057e-13 - -7.78821451774547313e-14| = 9.99893e-13
[nico-Latitude-7390:04742] *** Process received signal ***
[nico-Latitude-7390:04742] Signal: Segmentation fault (11)
[nico-Latitude-7390:04742] Signal code: Address not mapped (1)
[nico-Latitude-7390:04742] Failing at address: 0x483
[nico-Latitude-7390:04742] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f8d5c4aef20]
[nico-Latitude-7390:04742] [ 1] /home/nico/pkg/openmpi-3.0.4/lib/libmpi.so.40(ompi_datatype_create_contiguous+0xf)[0x7f8d5c8bcf2f]
[nico-Latitude-7390:04742] [ 2] /home/nico/pkg/openmpi-3.0.4/lib/libmpi.so.40(MPI_Type_contiguous+0x79)[0x7f8d5c8e52b9]
[nico-Latitude-7390:04742] [ 3] ./MPI_sum_sine(+0x8799)[0x55d52a0d1799]
[nico-Latitude-7390:04742] [ 4] ./MPI_sum_sine(+0x160a)[0x55d52a0ca60a]
[nico-Latitude-7390:04742] [ 5] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f8d5c491b97]
[nico-Latitude-7390:04742] [ 6] ./MPI_sum_sine(+0xdca)[0x55d52a0c9dca]
[nico-Latitude-7390:04742] *** End of error message ***
Segmentation fault (core dumped)

My guess is that the compiler might be optimizing the functions virtual table for the MPI operations.