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

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

XZ_IES
Principiante
691 Vistas

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 Solución
Steve_Lionel
Colaborador Distinguido III
680 Vistas

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

Ver la solución en mensaje original publicado

3 Respuestas
Steve_Lionel
Colaborador Distinguido III
681 Vistas

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

TobiasK
Moderador
555 Vistas

@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

XZ_IES
Principiante
455 Vistas

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.

Responder