Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7006 Discussions

DGESV modifies programming variables without passing them

abenitoh
Beginner
216 Views
I am using Visual Studio Community 2022, along with Intel Fortran Compiler & Intel Fortran Compiler Classic 2024.1.0 and Itenl one API Base Toolkit with MKL API Math 2024.1; When using IFORT and the DGESV function the program resolves a system without problems, but when using IFX I noticed that DGESV modifies variables in my program that I do not pass as input variables, I was able to verify this since I printed the values ​​of these variables before and after to execute DGESV. I don't know if working with IFX I should protect all program variables or IFX is modifying memory sectors. I understand that IFORT will be discontinued in October 2024 and I want to take precaution since later it could be more difficult to correct the problem

 

0 Kudos
1 Reply
mecej4
Honored Contributor III
164 Views

The leading dimension of matrix H is given as Nn-2 when it is allocated in line 154, but the fourth argument in the call to DEGESV on line 270 differs from this. Change this line to

call DGESV(n, 1, H, nn-2, ipiv, B, nn-2, info)

and try again.

0 Kudos
Reply