What is floating point speculation and how does it differ from the compiler's floating point model

前端 未结 3 1265
面向向阳花
面向向阳花 2021-02-15 10:48

The Intel C++ compiler provides two options for controlling floating point:

-fp-speculation (fast/safe/strict/off) -fp-model (precise/fast/strict and source/double/exten

3条回答
  •  借酒劲吻你
    2021-02-15 10:54

    Out of order execution and speculative execution can result in extraneous exceptions or raise exceptions at the wrong time.

    If that matters to you, you can use the fp-speculation option to control speculation of floating-point instructions.

    For (a little bit) more information: http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/fortran/lin/compiler_f/copts/common_options/option_fp_speculation.htm

提交回复
热议问题