Exit with an error code from potrf if matrix is non positive definite
- A library written using Chameleon is called by another software.
- This software calls the library in a loop.
- This software needs to know whether the library failed or not.
- Currently library directly exits (calls
exit()even for MPI case) in the task that does potrf if the matrix is reported to be non positive definite at the LAPACK call.
My question is:
Is there a proper way to stop the execution in a task that encounters a problem and return some info about the problem to the caller software?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information