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

Crash at CGETRS call

groupw_bench
Beginner
643 Views

I'm trying to upgrade from CVF 6.6 with Intel MKL 6.1 routines to IVF v. 9.1. The program, which has been running successfully when compiled with the old compiler and MKL library, compiles and links with no errors (I'm compiling with debug options so far.) But it crashes when it reaches the first MKL call, to CGETRS. The error is "Unhandled exception 0xC0000005; access violation writing location 0x00000001." I downloaded and, after some effort, managed to incorporate MKL v. 8.1 in place of MKL 6.1, thinking this would possibly solve the problem. It doesn't. The crash now occurs somewhere just within the CGETRS routine.

I've checked to make sure no constants are being sent to CGETRS which it might be trying to change, but none are.libguide40.lib is being linked with the program, and libguide40.dll is present and being found at run time.

The program is being compiled as a 32 bit Windows executable with no graphics or other fancies.

Does anyone have a clue what the problem might be?

0 Kudos
1 Reply
groupw_bench
Beginner
643 Views

I've solved the problem. I was linking with mkl_s.lib, and changed to mkl_c.lib.

It would sure be nice if a linker error would have occurred, or a more meaningful runtime error been shown.

0 Kudos
Reply