- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm new on using intel MKL Pardiso solver (2023.1.0 version) to solve for a small matrix as a demo on CentOS7. On calling pardiso(), output error value shows to be -1 for both phase 12 and phase 33, which said to be inconsistent input in documentation. That's the only info I can find throughout the Internet. I have no way to debug this issue. Could you help with this? Thanks a lot. Please check the code below.
#include "mkl.h"
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found a fix.
There are several things that are related to this issue. First of all, compiling MKL package looks complicated to me. I'm using cmake with ninja to compile my program with gnu compiler. At first I manually specified the library and include path of MKL and referred to this Link method for compiling flags. With these setup, the above simple code snippet reports error=-1.
Then I found this guide that shows example cmake code. Noticing that I should set MKL_INTERFACE to lp64 in CMakeList.txt since I'm using gnu compiler, otherwise the compiler complains that the definition of MKL_INT is long long, which can not be converted to int. Another thing is that I can switch between sequential and parallel with MKL_THREADING variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think that's correct. In MKLConfig.cmake, it said "Values: lp64, ilp64, GNU or INTEL interface will be selected based on Compiler"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LLP64 will not be there, as I said, that is only Windows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
We have tried at our end using the g++ and icpx compiler and we are able to get the expected results. Please find the below screenshot:
Could you please let us know the GNU compiler version you are using? Also, could you please provide us with the CMakeLists you are using to investigate more at our end?
Thanks & Regards,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Varsha,
Thank you for your reply. The problem is actually due to my incorrect usage and I put the solution in the first reply. I don't have further questions and you can close this topic.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Richard,
Thanks for the confirmation. Glad to know that your issue is resolved. This thread will no longer be monitored by Intel. If you need additional information, please start a new thread.
Have a Good day!
Thanks & Regards,
Varsha
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page