- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I got a problem while using data fitting module in MKL (I am using version 11.3.0 Build 20150730), here is the sample code.
#include <iostream> #ifdef __cplusplus extern "C" { #endif // sample function int sample_dfslinearspline(); #ifdef __cplusplus } #endif int main() { std::cout << "hello!" << std::endl; return sample_dfslinearspline(); }
And the function sample_dfslinearspline is same with main function in MKL's example file %MKLROOT%\examples\datafittingc\source\dfslinearspline.c.
While run this code, I got a ERROR result :
Integration results for Y1 :
Integration interval Result
( -1.5, +0.5 ) -64372931560441346000000000000000000.000000
( -1.0, +1.0 ) +0.000000
( -0.5, +1.5 ) -67739524352558409000000000000000000.000000
Integration results for Y2 :
Integration interval Result
( -1.5, +0.5 ) +0.000000
( -1.0, +1.0 ) -67739524352558409000000000000000000.000000
( -0.5, +1.5 ) +0.000000
If I remove the first output line :
std::cout << "hello!" << std::endl;
Then the result is correct.
Next, I check the example code, and add a CheckErrorCode line after call dfsIntegrate1D, just like :
/***** Compute integrals *****/
errcode = dfsIntegrate1D( task, DF_METHOD_PP, nlim, llim, llimhint,
rlim, rlimhint, ldatahint, rdatahint,
r, rhint );
CheckDfError(errcode);
Now, it report an error after call dfsIntegrate1D:
Error: invalid flag defining structure of spline based integration results (code -1034).
Is it a bug? My project is generate from Qt Creator.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tianxiong,
I was not able to reproduce the issue on our side under Linux OS, so it makes sense to sync up on the build/run parameters.
I used this build/run line on Linux which uses 32 bit version of Intel® MKL
icc -openmp -parallel -static-intel -mkl -L/home/mymkl/__release_lnx/mkl/lib/ia32 main.cpp dfslinearspline.c -o main.exe
./main.exe
Can you specify the build line you use on your side? It could be found by using option -n when running qmake
Thanks,
Eugeny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Eugeny,
Sorry, I can not found any option -n about qmake.
I build this program in QtCreator IDE or with VS 2012 compiler, just run nmake command without any options.
Now I found it runs correctly in command line, but failed with error code -1034 while run it in Qt Creator. So I think there are some differences on run enviroment variables. I will check it.
Thanks,
Tianxiong

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page