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

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
weitong
Posts: 26
Joined: Mon Sep 27, 2010 5:16 am

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

Post by weitong » Wed Apr 09, 2014 4:57 am

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

User avatar
gmatteo
Posts: 291
Joined: Sun Aug 16, 2009 5:40 pm

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

Post by gmatteo » Wed Apr 09, 2014 3:31 pm

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.

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

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

Post by pouillon » Mon Apr 14, 2014 4:08 pm

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.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

weitong
Posts: 26
Joined: Mon Sep 27, 2010 5:16 am

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

Post by weitong » Wed Apr 16, 2014 4:32 pm

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

Locked