Community
cancel
Showing results for 
Search instead for 
Did you mean: 
tp5
New Contributor I
87 Views

bug: -fast -msse does not warn

$ icc -xHost -msse
icc: command line warning #10120: overriding '-xHost' with '-msse'
icc: command line error: no files specified; for help type "icc -help"
$ icc -fast -msse
icc: command line error: no files specified; for help type "icc -help"

Because -fast is short for -xHost and some other options, it should also warn that -msse overrides.

0 Kudos
6 Replies
Kittur_G_Intel
Employee
87 Views

Hi, 
I agree, to make the diagnostic output consistent with your previous command I will file this with the developers and will keep you updated accordingly, thanks.
_
Kittur

TimP
Black Belt
87 Views

As icc hasn't supported an sse option less than sse2 for several years, you would likely need to specify one of the specific sse options supported by icc. 

Kittur_G_Intel
Employee
87 Views

Tim, I agree with what you say!  

Hi, 
I thought I can file an issue assuming that the compiler can further elaborate the diagnostic to say a default (sse2) was used (which is why you don't see a warning on sse) but I doubt if they will do as the help/manual would specify what's default and the compiler cannot issue diagnostics for that (due to so many that have defaults and is implicitly understood by user).

_Kittur 

tp5
New Contributor I
87 Views

I just used -msse as an example. It occurs with any such flag.

$ icc -fast -mavx
icc: command line error: no files specified; for help type "icc -help
$ icc -fast -xAVX
icc: command line error: no files specified; for help type "icc -help"
Kittur_G_Intel
Employee
87 Views

Hi,
BTW, looking at this now, with the command  "-fast -msse" for example, the compiler can as well make the message output consistent with "-xHost -msse" as -xHost is embedded in -fast as well and let the user know about overriding it to make it consistent.   Or the compiler can just output the message on missing files only and if satisfied can then output other overriding message accordingly. Anyways, I've filed an issue on this with the developers and will update you accordingly, thanks!

 

_Kittur 

Kittur_G_Intel
Employee
87 Views

Because -fast is short for -xHost and some other options

Hi, on your comment above, -fast actually contains:  "-ipo, -O3, -no-prec-div, -static, -fp-model fast=2, and -xHost". 
So, if you specify option "-fast -xSSE3", option -xSSE3 takes effect. However, if you specify "-xSSE3 -fast" option -xHost takes effect.

_Kittur

Reply