Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] compilation with intel fortran compiller problem
From: Mostyn Lewis (Mostyn.Lewis_at_[hidden])
Date: 2008-01-26 14:57:54

Yes, Intel 10.0 (and some say 10.1) have this problem with gcc 4.2.X (which
it is using) - it works with 4.1.2 as in SuSE SLES 10.

A workaround is to include in your flags (CXXFLAGS, presumably), the following:

-D "__sync_fetch_and_add(ptr,addend)=_InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)"


On Sat, 26 Jan 2008, Andrei Neamtu wrote:

> Hello,
> I will be quick:
> I want to compile open-mpi using Intel C, C++, Fortran compillers suite.
> With Fortran and C compiler it works fine but when I enable C++ Intel
> compiler got errors.
> Here is what I done:
> #define the environmet variables
> shell> export FC=/opt/intel/fce/10.1.008/bin/ifort
> shell> export F77=/opt/intel/fce/10.1.008/bin/ifort
> shell> export CC=/opt/intel/cce/10.1.008/bin/icc
> shell> export CXX=/opt/intel/cce/10.1.008/bin/icpc
> #after that issue the configure script
> shell> ./configure
> It works fine until the C++ compiler setup and it ends up with the message:
> *** C++ compiler and preprocessor
> checking whether we are using the GNU C++ compiler... yes
> checking whether /opt/intel/cce/10.1.008/bin/icpc accepts -g... yes
> checking dependency style of /opt/intel/cce/10.1.008/bin/icpc... gcc3
> checking how to run the C++ preprocessor... /opt/intel/cce/10.1.008/bin/icpc -E
> checking for the C++ compiler vendor... intel
> checking if C++ compiler works... no
> **********************************************************************
> * It appears that your C++ compiler is unable to produce working
> * executables. A simple test application failed to properly
> * execute. Note that this is likely not a problem with Open MPI,
> * but a problem with the local compiler installation. More
> * information (including exactly what command was given to the
> * compiler and what error resulted when the command was executed) is
> * available in the config.log file in this directory.
> **********************************************************************
> configure: error: Could not run a simple C++ program. Aborting.
> I also attached the config.log file.
> I am new to open-mpi (I used lam-mpi and GNU compilers) but I want to
> use the Intel compilers because they give more than 20% performance
> gaining in my specific parallel application.
> Any help or suggestion will be greatly appreciated !!!!
> Best regards,
> Andrei

users mailing list