Merge pull request #4782 from martin-frbg/azurewincl
Fix NAN handling in ARM/generic SCAL; have AzureCI Windows show errors on failure
This commit is contained in:
commit
5d08ec7ff3
|
@ -136,7 +136,7 @@ jobs:
|
|||
cmake -G "Ninja" -DCMAKE_C_COMPILER=cl -DCMAKE_Fortran_COMPILER=flang-new -DC_LAPACK=1 -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release -DMSVC_STATIC_CRT=ON ..
|
||||
cmake --build . --config Release
|
||||
ctest
|
||||
|
||||
ctest --rerun-failed --output-on-failure
|
||||
|
||||
|
||||
- job: OSX_OpenMP
|
||||
|
|
|
@ -48,7 +48,11 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da, FLOAT *x, BLAS
|
|||
{
|
||||
|
||||
if ( da == 0.0 )
|
||||
if (!isnan(x[i]) && !isinf(x[i])) {
|
||||
x[i]=0.0;
|
||||
} else {
|
||||
x[i]=NAN;
|
||||
}
|
||||
else
|
||||
x[i] = da * x[i] ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue