Community
cancel
Showing results for 
Search instead for 
Did you mean: 
madir
Beginner
55 Views

Handling errors

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
55 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