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

Cannot access "Named Shared Memory" when running MPI

$
0
0

I am creating a MPI transfer application to move data between two programs working together on a local area network, but initial testing I am running the tests on a single computer with 2 processes. I still feel new to MPI, but experienced programmer in other fields. 

When executing my main program that creates data and windows name shared memory for it there are no issues, using CreateFileMappingA(). Then when running the MPI code in Visual studio 2010 with the Local windows debugger the MPI code can access the memory using OpenFileMappingA(). So the code seems ok.

The issue is when running with the MPI cluster debugger or when running from a CMD with mpiexec. In those cases, the ones needed for the full functionality of the code, the OpenFileMappingA operation returns error 2 "The system cannot find the file specified." Seems to be environment related or maybe different permissions with MPI processes?

I believe it is caused by something to do with MPI, but not Intel MPI specifically as I reproduced the error with MS-MPI. But seeing as the named shared memory works without MPI I believe it’s not windows related.  

Posting here because I intend to use Intel MPI for the final code and I found a related post on the forms here https://software.intel.com/en-us/forums/intel-clusters-and-hpc-technolog... . I tried adding a DNS suffix to my computer, but as the code isn't even working on a single machine with 2 MPI processes I'm thinking it is unlikely to be the same error. 

I'm happy to provide settings or potions of code, only using the most basic MPI settings now though. Maybe MPI needs some special permissions to access Windows shared named memory? 

Thank you in advance

 


Viewing all articles
Browse latest Browse all 930

Trending Articles



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