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

Handling errors

madir
Beginner
226 Views
Hello all!

I'm creating a library of computational functions that are to be called bydifferent applications and I need some advice on how to handle errors in MKL.

Shouldn't LAPACKE_zgels return an integer !=0if something goes wrong? I got an error today when calling zgels, butit didn't return any integer like I thought it would!

What is the recommended way to handle errors in MKL functions? Do they throw exceptions? If so, where do I find them?

Best regards,
Matt [c++ & MKL newbie]
0 Kudos
1 Reply
Alexander_K_Intel3
226 Views
Hello Matt,

LAPACKE_* interfaces returns value whichcorresponds to output parameter INFO of a wrapped function. Additionally the return value could represent two memory allocation errors, which could happen in the wrappers itself: LAPACK_WORK_MEMORY_ERROR and LAPACK_TRANSPOSE_MEMORY_ERROR. Both values defined in mkl_lapacke.h. There is no exception throwing/handling mechanism in MKL.

W.B.R.,
Alexaner
0 Kudos
Reply