Poplar and PopLibs
|
Structure to specify floating point behaviour. More...
#include <CSRFunctions.hpp>
Structure to specify floating point behaviour.
inv | If true, a floating-point invalid operation (defined by IEEE 754) will cause an exception. The invalid operations are:
|
div | If true a floating point divide by zero operation will cause an exception. |
oflo | If true a floating point overflow will cause an exception. |
esr | Enable stochastic rounding. |
nanoo | Enable Not-a-Number on overflow mode. When enabled, half precision calculations that have overflowed will produce a Not-a-Number result, rather than saturating to the half precision max/min value, and the invalid operation (inv ) flag will be set. It can also be enabled in the environment variable POPLAR_ENGINE_OPTIONS by setting debug.nanOverflowMode to true. |