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

If PARDISO generates an error, does it release its memory?

crispybits
Beginner
334 Views
I see that when error <> 0 , the example just exits after phase 1, 2 or 3 without calling PARDISO with phase=-1.

Is this safe?


0 Kudos
1 Solution
Sergey_P_Intel2
Employee
334 Views

On the phase=-1 PARDISO releases internal memory and deletes OOC files (if necessary). So in PARDISO examples described behavior is safe, because internal memory cleaned automatically on exit. This phase = -1 makes sense in the following situations:
1) PARDISOis used in OOC mode, so working files need to be deleted;
2)Your program continues its work afterPARDISO calls and internal PARDISO data should be released.

- Sergey

View solution in original post

0 Kudos
1 Reply
Sergey_P_Intel2
Employee
335 Views

On the phase=-1 PARDISO releases internal memory and deletes OOC files (if necessary). So in PARDISO examples described behavior is safe, because internal memory cleaned automatically on exit. This phase = -1 makes sense in the following situations:
1) PARDISOis used in OOC mode, so working files need to be deleted;
2)Your program continues its work afterPARDISO calls and internal PARDISO data should be released.

- Sergey
0 Kudos
Reply