Programming-Language-Benchmarks
Programming-Language-Benchmarks copied to clipboard
Why @setFloatMode(.Optimized) is allowed for Zig?
Could you please explain why @setFloatMode(.Optimized) is allowed for zig in spectralnorm code? As far as I know this is “equivalent” to -ffast-math in GCC yet quite rightfully -ffast-math is not allowed for gcc.
You are right. https://ziglang.org/documentation/master/#setFloatMode It is should be:
- removed from Zig implementations or
- allowed to add fast-math to others.
Similar problem with Zig's Vector. It uses SIMD inside..https://github.com/hanabi1224/Programming-Language-Benchmarks/issues/316 At least those implementations should be marked with "-I" flag.