I didn't have to install the HPC Pack, as far as I know it is only needed
when you want to develop/debug in a cluster. I'm sorry I can't help you
with VS 2010 (I hated it, I switched back to VS 2008), but the
instructions to configure VS 2010 seems to be similar, check the MPICH2
guide for Windows developers.
May be this option is not available for Visual Fortran.
> I'm using VS 2010 Professional + Intel Visual Fortran. I don't have the
> "Debugger to Launch" option in my version (or I'm looking in the wrong
> place), and don't see MPI options any where. Do you have any additional
> software installed, like the HPC Pack 2008?
> On 07/04/2011 04:32 PM, Miguel Vargas Felix wrote:
>> well, I don't have a lot of experience with VS+MPI, but these are the
>> steps taht I followed to make my projects run:
>> 1. Select your project from the Solution explorer, right-click and
>> 2. From the list on the left, select "Debugging"
>> 3. Set "Debugger to launch" to "MPI Cluster Debugger"
>> 4. Set "MPIRun Command" to the full path of your "mpiexec" (use quotes
>> to enclose the path)
>> 5. Use "MPIRun Arguments" to set the number of processes to start, like
>> "-n 4"
>> 6. Set "MPIRUN Working Directory" if you need.
>> 7. "Application Command" normaly is "$(TargetPath)"
>> 8. "Application Arguments" if you need them.
>> 9. "MPIShim Location", this is a triky one, for some reason some times
>> needs the full path for this VS tool. It is located at: "C:\Program
>> Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote
>> Debugger\x64\mpishim.exe" or "C:\Program Files\Microsoft Visual Studio
>> 9.0\Common7\IDE\Remote Debugger\x86\mpishim.exe" (use quotes at to
>> the path).
>> I haven't played with the other options.
>> 10. Close the dialog box.
>> 11. Set some breakpoints in your program.
>> 12. Ready to run.
>> These instructions only work to debug MPI processes on the localhost,
>> I only have tested VS+MPI using MPICH2 for Windows.
>> To debug on several nodes you should install the Microsoft HPC SDK (I
>> haven't used it).
>> Good luck.
>> PS. I use Visual Studio 2008 professional. Also, I know that MPI
>> is not available in VS Express editions.
>>> Does anyone on this list have experience using MS Visual Studio for MPI
>>> development? I'm supporting a Windows user who has been doing Fortran
>>> programming on Windows using an ANCIENT version of Digital Visual
>>> Fortran (I know, I know - using "ancient" and "Digital" in the same
>>> sentence is redundant.)
>>> Well, we are upgrading his equally ancient laptopa new one with Windows
>>> 7, so we installed Intel Visual Fortran (direct descendent of DVF) and
>>> Visual Studio 2010, and to be honest, I feel like a fish out of water
>>> using VS 2010. It took me a longer than I care to admit to figure out
>>> how to specify the include and linker paths.
>>> Right now, I'm working with the Intel MPI libraries, but plan on
>>> installing OpenMPI, too, once I figure out VS 2010.
>>> Can anyone tell me how to configure visual studio so that when you
>>> on the little "play" icon to build/run the code, it will call mpiexec
>>> automatically? Right now, it compiles fine, but throws errors when the
>>> program executes because it doesn't have the right environment setup
>>> because it's not being executed by mpiexec. It runs fine when I execute
>>> it with mpiexec or wmpiexec.
>> users mailing list