-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure with new Intel compilers #2700
Comments
We do not typically test against the Intel compilers; I'll take a look at icx and see if I can determine what is going on. |
`############################## Install NETCDF-C Library ############################ cd $WRF_FOLDER/Downloads these variables need to be set for the NetCDF-C install to workexport CPPFLAGS=-I$DIR/grib2/include autoreconf -i CC=$MPICC FC=$MPIFC CXX=$MPICXX F90=$MPIF90 F77=$MPIF77 CFLAGS=$CFLAGS ./configure --prefix=$DIR/NETCDF --disable-dap --enable-netcdf-4 --enable-netcdf4 --enable-shared --enable-pnetcdf --enable-cdf5 --enable-parallel-tests | tee netcdf.configure.log make -j $CPU_HALF_EVEN 2>&1 | tee netcdf.make.log other libraries below need these variables to be setexport PATH=$DIR/NETCDF/bin:$PATH echo " "` This works for GNU but not intel |
|
@WardF @cross85 @edwardhartnett So I found a solution for NETCDF-C(4.9.2) annd NETCDF-Fortran (4.6.0)
Relevant Log Files: NETCDF-Fortran: Hope This helps. |
Building with icx seems to work, but 'make check' runs into failures with infinities and NaNs. From tst_netcdf4.log:
Intel(R) oneAPI DPC++/C++ Compiler 2023.2.3 (2023.2.3.20231204) |
So this error will take some thought of how to approach, as it appears to reflect a compiler-specific representation rather than an error in the code. Thank you for the updated report! |
I was wrong. The decision to print "Infinity" or "NaN" is made by
So my current hypothesis is that isnan() and isinf() are not working right
Again, a simple program could test this.
|
I've just tried -fhonor-infinities compiler flag and I've passed all the tests. I'm not 100% sure if it's a great solution. I'm using version 2024.1.0. |
Did you try the test program I suggested to see what isinf() and isnan() |
Thank you for the efforts. I've encountered this issue in |
seems more like a bandaid then a fix for the issue. Because it is supressing a warning right? |
The failure being reported in the test appears to be a difference in infinity representation; thanks for reporting the flag |
After reading this: abseil/abseil-cpp#1451 I was able to pass all "make check" tests by using the flag |
Thank you all; @Maduvi I appreciate the reference, I will see about adding a compiler check and setting the flag appropriately in our |
I'm building the 4.9.2 version with new intel compiler icx. Specifically in nczarr_test in the run_ncgen4.sh test
But if I use the icc compiler, it works ok. Is it any known bug or still not completely compatible with the new compilers?
I did a very simple build:
export CC=icc
./configure --prefix=$path_netcdf/netcdf --disable-shared --with-pic --enable-largefile --disable-filter-testing --disable-dap --disable-netcdf4
The text was updated successfully, but these errors were encountered: