Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
32 Views

icpc version and __INTEL_COMPILER

Linux 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

> icpc -V

Intel C++ Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.4.191 Build 20110427

Copyright (C) 1985-2011 Intel Corporation. All rights reserved.

-----------------------------

// File eee.cpp

#include

int main()

{

std::cout << __INTEL_COMPILER << std::endl;

return 0;

}

------------------------------

> icpc eee.cpp

> ./a.out

1200

Excepted output of a.out is 1204, but actual 1200

Alex

0 Kudos
4 Replies
Highlighted
Black Belt
32 Views

For this macro to do as you want, the header file would have to be updated with every release.

You could try the macro __INTEL_COMPILER_BUILD_DATE .
0 Kudos
Highlighted
Beginner
32 Views

Which header file should be updated with every release?
0 Kudos
Highlighted
Black Belt
32 Views

I am not sure; at any rate, I meant that the compiler vendor would need to do the update, not the user. It is also possible that some of these are built-in macros, so they may not be accessible through a header file.
0 Kudos
Highlighted
Beginner
32 Views

It seems that __INTEL_COMPILER is built-in macros
0 Kudos