Hi there,
I've encountered two different FPE with the MKL Data Fitting library which have been driving me a little insane!
I previously mentioned the first FPE in another thread here (https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/840833), and at the time I couldn't get a small reproducer to demonstrate the problem. This FPE occurs within the construction of the Akima spline when there are multiple, repeated y-values provided for a spline. It can be consistently repeated using the attached reproducer and compile/link lines.
The second FPE occurs within the construction of the Natural spline and seems to only occur on certain machines within our cluster. I'll provide specific kernel release and CPU info for one of the machines below, but there are multiple machines that repeat the FPE. This specific FPE seems to be temporarily resolved by enabled the MKL CNR compatibility mode. Again, the attached reproducer will consistently produce this FPE on specific machines.
I compile using GCC 7.3 and use MKL 2019u5. I'm compiling on a CentOS 7 box, and running on other CentOS 7 machines.
After sourcing the Intel PSXE script 'psxevars.sh', I compile and link the reproducer using the following commands:
g++ -m64 -I${MKLROOT}/include -c CubicSpline_MKL.cc g++ -m64 -I${MKLROOT}/include -c test_MKLSpline.cc g++ -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl CubicSpline_MKL.o test_MKLSpline.o -o test_MKLSpline
If there are any further questions, or you want some more specific info then I'm happy to help. It has taken me a while to get this reproducer, so I'm very keen to try and resolve these issues :)
Thanks,
Ewan
Details of a machine that exhibits the second FPE with the attached testcase:
thanks for a reproducer, Ewan. We will investigate the case.
Edward, We reproduced both of these issues and will keep this thread updated with the progress.
I'm not sure who Edward is, but I'm glad the reproducer works on your systems too.
Ewan
Has there been any update on this issue?
Ewan, there is no update on this issue so far. Do you have the deadline, when do you expect to see this fix?
On my end, I've missed the boat for our upcoming release. However I'm hoping I can get a fix for these issues within our next cycle.
That would mean ideally a tested fix by June/July. Is this a reasonable expectation?
Yes, we are planning to do that but these topics are subject to change and we couldn't guarantee that the fix at the next update 2. We will keep you informed of the progress we make.
Gennady
For more complete information about compiler optimizations, see our Optimization Notice.