Author Topic: Pardiso Solver in Visual Studio  (Read 5542 times)

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
Pardiso Solver in Visual Studio
« on: December 06, 2016, 04:01:43 PM »
Dear FEAP Team & Users,

I have an question:

how can I use Pardiso Solver in Visual Studio in 64bit Windows 10.

I have used the files (FEAP 8.4 User Interface to Pardiso Solver. (Updated: 19 September 2015))

But If I use command in Batch -> PARD ..., It didn't work in 64bit Windows 10...

How can I solve this problem in Win10?

Kind regards,
Yaakov
Let's boost FEAP's performance!

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Pardiso Solver in Visual Studio
« Reply #1 on: December 06, 2016, 09:02:13 PM »
When you say it did not work, what do you mean?  What happened?
Also did you build your project with the MKL libraries etc.?

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
Re: Pardiso Solver in Visual Studio
« Reply #2 on: December 07, 2016, 03:09:17 AM »
Thanks for your answer.

If I use command "PARD", FEAP program exits automatically in WIN10.

Did I build my project with the MKL libraries in the correct way (see the figure in attachment)?

« Last Edit: December 07, 2016, 07:02:43 AM by zheliu »
Let's boost FEAP's performance!

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: Pardiso Solver in Visual Studio
« Reply #3 on: September 18, 2017, 11:27:18 PM »
For me MKL Pardiso is working fine also on Windows machines, compiled with Visual Studio.
But I have observed, that statistics output is not printed to the output terminal. Is there a trick to access the statistics output from MKL Pardiso on Windows? (It's working fine on Linux)

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
Re: Pardiso Solver in Visual Studio
« Reply #4 on: July 21, 2018, 07:44:32 AM »
Hi JStorm,

 "MKL Pardiso is working fine also on Windows machines", is your Libraries setting  in Visual Studio the same to mine (the attached jpg in last post)?

Best,
Yaakov

Let's boost FEAP's performance!

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Pardiso Solver in Visual Studio
« Reply #5 on: July 21, 2018, 08:03:33 AM »
It must be how MKL is developed for Windows versus the one for linux.  We have only the PARD,,,1 to activate statistics and
DEBUg to print the results of a few things (see the files in packages/solvers/pardiso).

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: Pardiso Solver in Visual Studio
« Reply #6 on: July 22, 2018, 08:33:44 AM »
Hi JStorm,

 "MKL Pardiso is working fine also on Windows machines", is your Libraries setting  in Visual Studio the same to mine (the attached jpg in last post)?

Best,
Yaakov

Dear Yaakov,

yes, on VS I also have used the parallel version of MKL. But usually, I'm working at Linux.

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: Pardiso Solver in Visual Studio
« Reply #7 on: July 22, 2018, 08:36:02 AM »
It must be how MKL is developed for Windows versus the one for linux.  We have only the PARD,,,1 to activate statistics and
DEBUg to print the results of a few things (see the files in packages/solvers/pardiso).

Dear Prof. Taylor,

if I activate pardiso statistics on Windows, the statistics might be written to another file handle then the standard output (terminal window)?

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
Re: Pardiso Solver in Visual Studio
« Reply #8 on: July 22, 2018, 08:53:12 AM »
Dear  JStorm,

Thanks a lot for your answer.

if our setting in VS is the same, but your version works, that means my codes may contain some mirror bugs, I will find them.

Best,
Yaakov

Hi JStorm,

 "MKL Pardiso is working fine also on Windows machines", is your Libraries setting  in Visual Studio the same to mine (the attached jpg in last post)?

Best,
Yaakov

Dear Yaakov,

yes, on VS I also have used the parallel version of MKL. But usually, I'm working at Linux.
« Last Edit: July 22, 2018, 01:02:47 PM by Yaakov »
Let's boost FEAP's performance!

resammc

  • Full Member
  • ***
  • Posts: 95
Re: Pardiso Solver in Visual Studio
« Reply #9 on: July 23, 2018, 12:32:47 AM »
I remember that I had the same problem with VS2013 and Intel compiler 2017.

Here is my workaround (from old notes):

It came out that there is a problem in the initialization of Pardiso (enable DEBUG in feap and then issue the TANG command (FEAP will most probably crash), then look at FEAP’s output file and you will see Error -1 at the end of the file).

Disabling MKL library in Visual Studio and configuring the MKL variables outside visual studio solved the problem.

The steps are:
For the executable project (it is not necessary to change the library’s project):
-   Disable all the linkings to the MKL library (including Qmkl)
-   Exit visual studio
-   Go to MKL folder and run mklvars.bat with intel64 architecture, lp64 and your visual studio version.
For me the folder was: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017\windows\mkl\bin and I ran “mklvars intel64 lp64 vs2013”
-   Start Visual Studio and Recompile feap and everything should work