Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 ディスカッション

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

XZ_IES
ビギナー
694件の閲覧回数

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 件の賞賛
1 解決策
Steve_Lionel
名誉コントリビューター III
683件の閲覧回数

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

元の投稿で解決策を見る

3 返答(返信)
Steve_Lionel
名誉コントリビューター III
684件の閲覧回数

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

TobiasK
モデレーター
558件の閲覧回数

@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
ビギナー
458件の閲覧回数

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.

返信