Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
7234 Discussions

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

crispybits
Beginner
635 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
635 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
636 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