- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
From MS Access, I used to call a DLL Fortran program, which in turn calls an exe Fortran program using RUNQQ command. When the Access is 32 bit (2007) running on 64 bit PC using Win 7, I used to call a 32 bit DLL (built by MS PowerStation) and a 64 bit exe (built by Intel Visual Fortran). Both calls were successful even when the exe uses MS MPI. Now, I have Intel Parallel Studio and Win 10 64 bit, where calling exe is successful only when it does not use MS MPI. If it does, an error message is displayed for invalid rank. I discovered that the ‘np’ parameter of mpiexe run by RUNQQ is not identified. I tried SYSTEMQQ to run mpiexe by START but I receive the same error message.
Any help.
Said
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will guess that this is a PATH issue - that when you use RUNQQ or SYSTEM (there is a Fortran standard intrinsic EXECUTE_COMMAND_LINE you should use instead), you're getting "the wrong mpiexec". Make sure that MS MPI is earlier in PATH than, say, Intel MPI (if you have that installed.)
There's no issue with running a 64-bit EXE from a 32-bit DLL using one of these routines.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will guess that this is a PATH issue - that when you use RUNQQ or SYSTEM (there is a Fortran standard intrinsic EXECUTE_COMMAND_LINE you should use instead), you're getting "the wrong mpiexec". Make sure that MS MPI is earlier in PATH than, say, Intel MPI (if you have that installed.)
There's no issue with running a 64-bit EXE from a 32-bit DLL using one of these routines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-np is not universal. Some MPIs use -N or -n for number of ranks. Open a terminal and get help from mpiexe like mpiexe -help or --help or -h OR look up documentation on your MPI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
So long. As usual, your guess is perfect. I have been in the Fortran programming since Fortran II in the 60's of last century . I feel proud you are here to support.
Said
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If my answer was correct, please mark this as the accepted answer, to help others. Glad to have been of help.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page