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 the Fortran intrinsic ABS and complex divisions and report fails during build #623
Test the Fortran intrinsic ABS and complex divisions and report fails during build #623
Conversation
Codecov Report
@@ Coverage Diff @@
## master #623 +/- ##
=======================================
Coverage 0.00% 0.00%
=======================================
Files 1894 1894
Lines 184021 184021
=======================================
Misses 184021 184021 Continue to review full report at Codecov.
|
…g compile time. Currently only working with the CMake build!
50ea276
to
19fafd4
Compare
… run on the Makefile build
I am proposing a short output during the build. For example, when compiling with gfortran 9.3.0 : ./test_zcomplexabs 2> test_zcomplexabs.err
./test_zcomplexdiv 2> test_zcomplexdiv.err
!! Some (x+x*I)/(x+x*I) differ from 1
!! Some (x+x*I)/(x-x*I) differ from I
# Please check the failed divisions in [stderr] The complete description of the failing tests si in the stderr file:
The identifiers, e.g., |
I have just added tests for the intrinsic MIN, MAX and for the complex multiplication. Interesting, I found that
using gfortran 9.3.0 on a Linux machine |
Personal note about complex multiplications in C and Fortran using GCC: |
Description
After the long discussion in #575, I started testing the intrinsic routines complex ABS and complex division of some Fortran compilers. It is good that the user are aware of the compiler behavior.
This PR puts 2 new tests in LAPACK. The tests run at the build process. The build system reports any failures via command line, and the details are stored in disk inside the INSTALL directory. With this information, the user can better define/configure its Fortran compiler.
Checklist