There are no details on arguments for #pragma float_control directive in Intel C++ Compiler User and Reference Guides

There are no details on arguments for #pragma float_control directive in Intel C++ Compiler User and Reference Guides

There are no details on arguments for #pragma float_control directive in Intel C++ Compiler User and Reference Guides:

Page 1721
...
float_control - specifies floating-point behavior for a function
...

 

7 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Please consult the Microsoft compiler documentation for full details about the Intel supported pragma float_control, e.g. http://msdn.microsoft.com/en-us/library/45ec64h6(v=vs.100).aspx

>>...Please consult the Microsoft compiler documentation for full details about the Intel supported pragma float_control...

Thank you, Melanie and this is exactly what I did. However, wouldn't it better to include some details or a link in Intel docs as well?

Here is another small question. What is wrong with /Qhelp-pragma command line option?
...
/Qhelp-pragma - output supported pragmas and their usage syntax
...
It looks like it doesn't work and could somebody verify it?

Sergey,

the /Qhelp_pragma works. try "icl /c /Qhelp-pragma test.c

Make sure "test.c" exists.

Jennifer

I finally understood how it has to be used. Yes, it works and Thank you for the explanation.

Here is output from my testt:

..\Test>icl.exe /c /Qhelp_pragma Test1.cpp
Intel(R) C++ Compiler XE for applications running on IA-32, Version 12.1.7.371 Build 20120928
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
icl: command line warning #10006: ignoring unknown option '/Qhelp_pragma'

Test1.cpp
Test1.cpp(3): warning #1664: expected "precise", "except", "push", or "pop"
#pragma float_control ( 1 )
^

But, there is a warning message:
...
icl: command line warning #10006: ignoring unknown option '/Qhelp_pragma'
...

It is "/Qhelp-pragma" not "/Qhelp_pragma"

"minus" not "underbar"

Jim Dempsey

www.quickthreadprogramming.com

>>...It is "/Qhelp-pragma" not "/Qhelp_pragma"

Thanks, Jim. Somehow I misused it...

Leave a Comment

Please sign in to add a comment. Not a member? Join today