Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Handling errors

madir
Beginner
132 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
132 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
Reply