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

MPI_Comm_spawn strips empty strings from argv

$
0
0

Hi. I'm using Intel MPI 5 on Windows and have the following problem.  I have a C++ application that spawns worker processes using MPI_Comm_spawn() and passing parameters via the argv argument.  I have an array of strings that is passed this way - however, one of these string is empty.  When the worker process receives the argv array, the empty string has been removed from the array.

f argv is an array of 3 strings, then in the worker process, I would expect argc = 4 (3 + 1 for the worker exe name).  However, if one of the strings is empty (note, empty but not NULL), then argc = 3 in the worker process.  This seems to me to be a bug.  Can someone confirm?  Is there a workaround?


Viewing all articles
Browse latest Browse all 927

Trending Articles



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