On 05/16/2013 10:13 PM, Tim Prince wrote:
> On 5/16/2013 2:16 PM, Geraldine Hochman-Klarenberg wrote:
>> Maybe I should add that my Intel C++ and Fortran compilers are
>> different versions. C++ is 12.0.2 and Fortran is 13.0.2. Could that
>> be an issue? Also, when I check for the location of ifort, it seems
>> to be in usr/bin - which is different than the C compiler (even
>> though I have folders /opt/intel/composer_xe_2013 and
>> /opt/intel/composer_xe_2013.3.171 etc.). And I have tried /source
>> /opt/intel/bin/ifortvars.sh intel64/ too.
>> On May 16, 2013, at 11:57 AM, Geraldine Hochman-Klarenberg wrote:
>>> I am having trouble configuring OpenMPI-1.6.4 with the Intel C/C++
>>> composer (12.0.2). My OS is OSX 10.7.5.
>>> I am not a computer whizz so I hope I can explain what I did properly:
>>> 1) In bash, I did /source /opt/intel/bin/compilervars.sh intel64/
>>> and then /echo PATH/ showed:
>>> 2)/which icc /and /which icpc /showed:
>>> So that all seems okay to me. Still when I do
>>> /./configure CC=icc CXX=icpc F77=ifort FC=ifort
>>> from the folder in which the extracted OpenMPI files sit, I get
>>> /== Configuring Open MPI/
>>> /*** Startup tests/
>>> /checking build system type... x86_64-apple-darwin11.4.2/
>>> /checking host system type... x86_64-apple-darwin11.4.2/
>>> /checking target system type... x86_64-apple-darwin11.4.2/
>>> /checking for gcc... icc/
>>> /checking whether the C compiler works... no/
>>> /configure: error: in
>>> /configure: error: C compiler cannot create executables/
>>> /See `config.log' for more details/
> You do need to examine config.log and show it to us if you don't
> understand it.
> Attempting to use the older C compiler and libraries to link .o files
> made by the newer Fortran is likely to fail.
> If you wish to attempt this, assuming the Intel compilers are
> installed in default directories, I would suggest you source the
> environment setting for the older compiler, then the newer one, so
> that the newer libraries will be found first and the older ones used
> only when they aren't duplicated by the newer ones.
> You also need the 64-bit g++ active.
It's probably unnecessary to use icpc at all when building OpenMPI. icpc
is compatible with gcc/g++ built objects,