Page 1 of 1
math.h / cmath isinf problem.
Posted: Tue Dec 05, 2017 4:49 am
by obm
Dear all,
When I am trying to compile magma with intel compilers (17 up 5), the compilation fails, saying math.h isinf and isnan functions are not recognized.
Actually this problem is known:
https://software.intel.com/en-us/forums ... pic/638013
It seems a workaround solution is to bake a macro in the source code such that the correct math.h is included.
Maybe you can consider this workaround in your source tree?
Re: math.h / cmath isinf problem.
Posted: Tue Dec 05, 2017 12:02 pm
by mgates3
Can you give the specific error output, when doing 'make -j1' (i.e., single-threaded make). That will be helpful to understand where the error occurs.
-mark
Re: math.h / cmath isinf problem.
Posted: Wed Dec 06, 2017 11:35 pm
by ibnu_syuhada_p3
I also meet this problem. I am not using intel compiler, but using gnu compiler
Re: math.h / cmath isinf problem.
Posted: Thu Dec 07, 2017 11:10 am
by mgates3
Again, please provide some specifics such as your platform, g++ version, and the output of "make -j1" showing the error, so that we can attempt to reproduce the issue.
-mark
Re: math.h / cmath isinf problem.
Posted: Mon Dec 11, 2017 12:49 am
by brianborchers
This appears to be the same problem that I reported this evening with testing/testing_zlange.cpp. I've given more specific error messages in my report.
Re: math.h / cmath isinf problem.
Posted: Sat Dec 16, 2017 7:02 pm
by mgates3
The link on the Intel site seems to be the *opposite* problem, namely that using std::isinf and std::isnan fails when including both math.h and cmath, with Intel icc 16 + gcc 6. That problem I can replicate. It doesn't occur for icc 17 or 18.
I haven't been able to replicate the problem that using isinf and isnan (without std:: prefix) fails. MAGMA includes math.h, so isinf and isnan should be defined.
See further discussion at
viewtopic.php?f=2&t=1659
-mark
Re: math.h / cmath isinf problem.
Posted: Thu Apr 19, 2018 1:16 pm
by mgates3
This problem should be resolved now in the bitbucket repo. The MAGMA testers include cmath and use std::isinf, std::isnan, and std::copysign.
-mark