- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I force the 64 bit ifort compiler to generate x87 FPU code (internal 80 bit precision) instead of SSE2 (internal 64 bit precision)? As best as I can tell, the 32bit compiler by default uses the x87 FPU unless an architecture flag is passed. The 64 bit compiler use -xW by default which forces SSE2 (I think). How can I tell the compiler to generate x87 FPU code?
This is for benchmarking and testing purposes.
Thanks,
- Henrik
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure what the point of this is - you deliberately want to hobble the code? Note that in version 11, SSE2 will be the default for IA-32 as well. You would be better off to tell the 32-bit compiler to assume SSE2 (-xW) if you want a real comparison.
From a glance through the compiler options manual, I don't see an option to do this. I'm not even sure the compiler has support for that. -mia32 is not supported in the x64 compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort -fno-inline-functions -ftz- -assume protect_parens paranoia.f
./a.out>ifortnftz.out
ifort -fno-inline-functions -mp paranoia.f
./a.out>ifortmp.out
diff ifortnftz.out ifortmp.out|less
< SUBEXPRESSIONS DO NOT APPEAR TO BE CALCULATED
< WITH EXTRA PRECISION
---
> SOME SUBEXPRESSIONS APPEAR TO BE CALCULATED EXTRA-PRECISELY
> WITH ABOUT 11.000000 EXTRA BASE B DIGITS, I. E.
> ROUGHLY 3.3113298 EXTRA SIGNIFICANT DECIMALS.
> THAT FEATURE IS NOT TESTED FURTHER BY THIS PROGRAM.
.....
Similar to gfortran -mfpmath=387 result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you everyone!
- Henrik

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page