Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Why -fast option is now removed?

fatvlad1744
Beginner
970 Views

Greetings,

 

icpc (ICC) 16.0.1 compiler had "-fast" option which was expanded to "-xHOST -O3 -ipo -no-prec-div -static -fp-model fast=2" according to the manual.

However, new compiler icpc (ICC) 2021.2.0 does not have this alias. What is the reason for deprecation?

 

Thanks in advance

 

0 Kudos
1 Solution
Viet_H_Intel
Moderator
866 Views

Seems like a bug in our help option. It has been missing since 19.0. AFAIK, -fast is still supported. If we plan to deprecate it, it will be informed.

You can see the list of deprecated options by "icc -help deprecated"

Thanks


View solution in original post

5 Replies
MRajesh_intel
Moderator
948 Views

Hi,


The -fast option is available in the ICC 2021.2 version.

Link: https://software.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/optimization-options/fast.html


Example Usage: icpc -fast file.cpp


Please let us know if you face any issues.


Regards

Rajesh.


0 Kudos
fatvlad1744
Beginner
942 Views

Hi Rajesh,

 

I looked through `icpc --help` output and haven't found "-fast" option while "-Ofast" is still there. Looks like it is simply missing from the manual, because it seems to add "-static" when I use "-fast". Can you confirm? Also, is there some specific reason why it is missing from the help string, is it considered deprecated?

 

Thanks

0 Kudos
MRajesh_intel
Moderator
913 Views

Hi,


>>It seems to add "-static" when I use "-fast". 

As per documentation, -fast option includes -ipo, -O3, -static, -fp-model fast=2 options.


>>Is there some specific reason why it is missing from the help string

We are checking it internally and will get back to you.


Regards

Rajesh.


0 Kudos
Viet_H_Intel
Moderator
867 Views

Seems like a bug in our help option. It has been missing since 19.0. AFAIK, -fast is still supported. If we plan to deprecate it, it will be informed.

You can see the list of deprecated options by "icc -help deprecated"

Thanks


Viet_H_Intel
Moderator
818 Views

Hi,


Since you have accepted the solution. Let us close this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


Thanks,


0 Kudos
Reply