Quantcast
Channel: Clusters and HPC Technology
Viewing all articles
Browse latest Browse all 927

MPI_Comm_spawn seg fault when used with MPI_Info_set

$
0
0

Hello,

I am a licensed user of Intel MPI for Windows. (5.0.3)   64 bit, Windows 7

I am using MPI_Comm_spawn, and the program crashes when I use MPI_Info_set.

This can be seen as follows:

Master.exe (root node)

#include "mpi.h" 
#include <stdio.h>
#include<Windows.h>
int main( int argc, char **argv ) 

    int intercomm;
    MPI_Init(&argc, &argv); 
    MPI_Info info;
    MPI_Info_create(&info);
    MPI_Info_set(info, "host", "localhost");           // Crashes with host set to localhost,  If this line is commented out, program works fine
    MPI_Comm_spawn("hello.exe", MPI_ARGV_NULL, 2, info, 0, MPI_COMM_SELF, &intercomm, MPI_ERRCODES_IGNORE);  //<-- Intel MPI crashes 
    Sleep(10000);
    MPI_Finalize();

The slave executable: (Hello.exe)

int main_(int argc, char **argv)
{
    MPI_Init(&argc, &argv);
    printf("helloworld\n"); 
    fflush(stdout);
    Sleep(10000);
}

I run with mpiexec -delegate -n 1 Master.exe

The program works fine with the MPI_Info_set line commented out , or using MPI_INFO_NULL. 

It also crashes if I set the "hostfile" key, and supply localhost as the first line of my hostfile. Getting this to work properly is critical to our business!

Thanks,

David Linenberg

 

 


Viewing all articles
Browse latest Browse all 927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>