I am stuck with basic stuff and have no idea where to go.
I have and old F77 code with a include 'mpi.h' line. The Fortran version I used at the time did not support MPI so I installed MPICH and was able to include the path somewhere.
However, things are too powerful now and I feel that I am trying to kill a mosquito with an atomic bomb: I have MS Visual Studio Enterprise 2015 (MSDNAA) and Intel Parallel Studio XE 2016 Update 3 - which includes Intel MPI Library 5.1. (I would possibly get away with the 1999 Compaq Visual Fortran so it is really too much...)
So it seems that I have all I need installed but the knowledge to make things work. Could anyone please easy my pain and tell me where and how I include the mpi library in the path?? I also did not find any mpi.h header so possibly things evolved and I am still in the jurassic age?
Thank you very much for any support.
From the Intel® MPI Library Developer Guide for Windows* OS, please review the details in the topic, Configuring a Visual Studio* Project, https://software.intel.com/en-us/node/610381
You should be able to use mpif.h or the Fortran specific pre-compiled mpi module (i.e. USE mpi). If you have the full Intel® MPI installed both the .h and .mod are available under a path named like: C:\Program Files (x86)\IntelSWTools\mpi\126.96.36.199\intel64\include
If you are missing the "include" sub-folder then you may not have installed the complete Intel® MPI component which is only included with the Parallel Studio XE Cluster Edition. There is a smaller run-time environment only that will install when using a Fortran Composer Edition license subscription.
You have license subscriptions for both Composer and Cluster Editions so when you install make certain you use the serial number for the Cluster Edition and then watch/double-check during the installation to ensure that you install the complete Intel® MPI component.
Hope this helps.
Kevin pointed out the instructions for VS projects with MPI. If compiling from command line, the compiler wrapper mpiifort is used in place of ifort as the compile command after opening the compiler cmd prompt window. MPICH would use the mpif90 wrapper. These wrappers take care of the MPI include and library/dll paths.
In the documentation folder of your parallel studio there is a full set of Intel MPI documents, if you have installed MPI.
Many thanks for the comments.
I do everything from within VS - just easier, I suppose.
The folders are there - I think I am stuck with the project "options" / parameters rather than anything else... and yes, MPI + include is there. I will try with USE mpi instead of include mpif.h. These things are confusing...
I also tried what is described in the link below, but all the steps and/or options mentioned there do not exist in my case!!!! Or even worse: how do I do these things???
You appear to be building for Win32 which is not supported. Only Intel® 64 is supported per the MPI Library 5.1 RNs, https://software.intel.com/sites/default/files/managed/f1/f9/intelmpi-5.1-update3-releasenotes-windo...
I expect if you create an x64 configuration from what you described currently having done under your Visual Studio solution/project, then it should work. I confirmed the settings you cited from the earlier UG reference work using the attached example.