Description
For spack-stack@2.x / FMS@2025.03 (see configs/common/packages.yaml), ifx will optimize away a check for dividing by zero.
To Reproduce
See the reproducer code in the issue noted above.
Expected behavior
ifx does not optimize away checks for division by zero.
System, compiler, code, ...
- All RDHPCS hosts
- ifx@2025.{2,3}.1
Additional context
This is not a bug with spack / spack-stack per se, noting it here for the sake of completeness.
This may solved by adding the following stanza to configs/common/packages.yaml for package fms
- any_of:
- 'fflags="-fp-speculation=safe"'
when: '%oneapi'
message: Reduce aggressive speculative optimization for ifx
Note that any_of could also be one_of
Description
For
spack-stack@2.x/FMS@2025.03(see configs/common/packages.yaml),ifxwill optimize away a check for dividing by zero.To Reproduce
See the reproducer code in the issue noted above.
Expected behavior
ifx does not optimize away checks for division by zero.
System, compiler, code, ...
Additional context
This is not a bug with
spack/spack-stackper se, noting it here for the sake of completeness.This may solved by adding the following stanza to
configs/common/packages.yamlfor packagefmsNote that
any_ofcould also beone_of