math.h / cmath isinf problem.

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

math.h / cmath isinf problem.

Postby obm » Tue Dec 05, 2017 4:49 am

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/intel-c-compiler/topic/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?
obm
 
Posts: 1
Joined: Mon Dec 04, 2017 12:22 pm

Re: math.h / cmath isinf problem.

Postby mgates3 » Tue Dec 05, 2017 12:02 pm

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
mgates3
 
Posts: 754
Joined: Fri Jan 06, 2012 2:13 pm

Re: math.h / cmath isinf problem.

Postby ibnu_syuhada_p3 » Wed Dec 06, 2017 11:35 pm

I also meet this problem. I am not using intel compiler, but using gnu compiler
ibnu_syuhada_p3
 
Posts: 1
Joined: Wed Dec 06, 2017 11:32 pm

Re: math.h / cmath isinf problem.

Postby mgates3 » Thu Dec 07, 2017 11:10 am

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
mgates3
 
Posts: 754
Joined: Fri Jan 06, 2012 2:13 pm

Re: math.h / cmath isinf problem.

Postby brianborchers » Mon Dec 11, 2017 12:49 am

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.
brianborchers
 
Posts: 4
Joined: Sun Dec 10, 2017 11:36 pm

Re: math.h / cmath isinf problem.

Postby mgates3 » Sat Dec 16, 2017 7:02 pm

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
mgates3
 
Posts: 754
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron