- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ifc 7.1 manuals are no longer available. I can see how in ifort
version 8 how to set FTZ (-ftz) and the DAZ flag is set automatically for P3 and above.
There is no -ftz flag for ifc 7.1. Also how do you set the DAZ flag in ifc 7.1?
Thanks,
David
version 8 how to set FTZ (-ftz) and the DAZ flag is set automatically for P3 and above.
There is no -ftz flag for ifc 7.1. Also how do you set the DAZ flag in ifc 7.1?
Thanks,
David
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The primary alternative to the command line option, which would set mxcsr in main(), is to use the setcsr() intrinsics from . A call to a simple gcc function would do. IIRC, there was no change in the way DAZ was handled between 7.1 and 8.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you tell me the exact 'C' subroutine for setting the FTZ bit?
Thanks,
David
Thanks,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
e.g. Fortran code:
call setftz
...
C code:
#include
void setftz_(){
_MM_SET_FLUSH_ZERO_MODE (_MM_FLUSH_ZERO_ON);
}
While not standard C syntax, it is supported by current gcc, icc, and MSVC compilers, as well as (supposedly), by PGI C and Fortran compilers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
![](/skins/images/BC9A7A3465121B56B278007F4EE8899F/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page