Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Different results given by debug mode and standalone calculation

$
0
0

I have been using the Intel Visual Fortran Composer XE 2011 on my project and I found something weird recently. When I run the code in the debugging window, it produces perfect result; however, if the executable is moved to a different location and perform a standalone calculation (meaning not through the IDE) there, the result is totally off. I'm sure this is caused by the MKL because:

1) it is the only additional library my code uses, more specifically, only subroutine DGETRF and DGETRS are called, 2) a comparison of the correct and incorrect results indicate that the difference rises from the outputs of these subroutines.

I used to use the "Build IDE one button option" (http://software.intel.com/en-us/articles/using-mkl-in-intel-compiler-mkl-qmkl-options), so I thought the issue is that when the location changes, the code somehow cannot figure out where to find the library. Then I switched to the manual configuration for the MKL setup: I set the Intel MKL include dependencies (\<mkl directory>\include\ia32), the library dependencies in Linker > General (<mkl directory>\lib\ia32) and Linker > Input (mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib mkl_lapack95.lib mkl_blas95.lib). All the procedures are given in the MKL user guide (http://download-software.intel.com/sites/products/documentation/hpc/mkl/...). I believe at least this will help the code locate the library because everything here is given by full path. Unfortunately, the problem exists.

I wonder if anybody has seen this before. Any help will be highly appreciated. Thanks very much for your time.

Jason


Viewing all articles
Browse latest Browse all 3005

Latest Images

Trending Articles



Latest Images