Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28859 Discussions

/assume:[no]ieee_compares ifx flag returns "unrecognized keyword" error

XZ_IES
Beginner
322 Views

I am porting ifort (2021.5) to ifx (2024.2.1), and regression tests are failing on floating point values throughout the code.

The porting guide (Porting Guide for ifort Users to ifx) suggests using "/assume:[no]ieee_compares" to achieve ifort floating point behaviour in ifx. Despite this I'm getting the error:
" ifx: command line error: Unrecognized keyword '[no]ieee_compares' for option '/assume' "

The fortran flags that I currently use with ifort (2021.5) are:

  • /fpe:0
  • /fp:precise
  • /arch:SSE2
  • /Qimf-arch-consistency:true
  • /Qdiag-disable:10212

My questions are:

  • Why is the [no]ieee_compares argument not recognised
  • Confirmation on what flags to use with IFX to achieve consistent numeric behaviour with my current ifort setup.



0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
311 Views

The brackets are the way the documentation specifies optional things. In your case you want /assume:noieee_compares . 

View solution in original post

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
312 Views

The brackets are the way the documentation specifies optional things. In your case you want /assume:noieee_compares . 

0 Kudos
TobiasK
Moderator
186 Views

@XZ_IES  if you did set:
/assume:[no]ieee_compares
that is of course not a valid option.
You need to set either /assume:noieee_compares or /assume:ieee_compares

0 Kudos
XZ_IES
Beginner
86 Views

Marked as done to indicate that the initial error was argument formatting. I still haven't achieved parity in results, but I'll split that into its own question as necessary.

0 Kudos
Reply