IO500 / io500

IO500 Storage Benchmark source code
MIT License
98 stars 31 forks source link

compile-time error with INI_UNSET_FLOAT #26

Closed Michael-Hennecke closed 3 years ago

Michael-Hennecke commented 3 years ago

With the Intel compiler (2020.4.304), the following causes a compile-time error (occurred during io500-isc21_v1 prepare):

$ ./prepare.sh
...
src/ini-parse.c(285): error #264: floating-point value does not fit in required floating-point type
              *(float*) o->var = INI_UNSET_FLOAT;
                                 ^
 compilation aborted for src/ini-parse.c (code 2)
make: *** [build/ini-parse.o] Error 2

The culprit seems to be this #define:

include/io500-util.h:#define INI_UNSET_FLOAT 1e307

JulianKunkel commented 3 years ago

Thanks, that is helpful, I hope with the proper limit of 1e38, it works.

Michael-Hennecke commented 3 years ago

yes, i can confirm that it compiles cleanly with 1e38...