Page 1 of 1

using Intel compiler but shows C++ compiler : gnu13.1

Posted: Wed Apr 09, 2014 4:57 am
by weitong
Yesterday I did a simple computing by using abinit 7.6.2 build with mpich3.1+intel13.
In the output file, I noticed that the C++ compiler is not intel13.1, but I did build mpich with"CXX=icpc", and build abinit7.6.2 with CXX="mpicxx" option. why?

Code: Select all

 === Compiler Suite === 
  C compiler       : intel13.1
  CFLAGS           :  -g -O2 -vec-report0
  C++ compiler     : gnu13.1
  CXXFLAGS         : -m64 -g -O2 -mtune=native -march=native
  Fortran compiler : intel13.1
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 CPP options activated during the build:

                  CC_INTEL                   CXX_GNU                  FC_INTEL


[weitong@magnetics local]$ which mpicxx
/usr/local/mpich3_intel13/bin/mpicxx
[weitong@magnetics local]$ /usr/local/mpich3_intel13/bin/mpicxx -v
mpicxx for MPICH version 3.1
icpc version 13.1.3 (gcc version 4.4.7 compatibility)

thanks.

WT

Re: using Intel compiler but shows C++ compiler : gnu13.1  [SOLVED]

Posted: Wed Apr 09, 2014 3:31 pm
by gmatteo
It's a undocumented feature (aka bug) of the build system.
Note however that this minor problem doesn't affect the build of the code
since C++ is not used in abinit.

Re: using Intel compiler but shows C++ compiler : gnu13.1

Posted: Mon Apr 14, 2014 4:08 pm
by pouillon
This is actually a regression in the build system. I fixed incorrect detection of Intel compilers a few years a go. In any case, as Matteo says, this is not an issue, since abinit does not include C++ code.

Could you send us the output of "icpc -V" on your machine? Thank you in advance.

Re: using Intel compiler but shows C++ compiler : gnu13.1

Posted: Wed Apr 16, 2014 4:32 pm
by weitong
Here is the "icpc -V" response:
Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 13.1.3.192 Build 20130607
Copyright (C) 1985-2013 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY