Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to use Pardiso interface with Matlab

Subject: How to use Pardiso interface with Matlab

From: evan um

Date: 18 Mar, 2009 00:25:03

Message: 1 of 4

Hi all,

I am trying to use PARDISO from MATLAB on Windows.
I got libpardiso_GNU43_IA32_P.so file from PARDISO homepage:
INTEL, 32-bit, gcc/gfortran 4.3 parallel libpardiso_GNU43_IA32_P.so

I also have several files from pardiso-matlab-sym.tgz:
pardiso.lic, pardisosolve.c, pardisoreorder.c, pardisofactor.c, pardisoinit.c, example.m

I chose lcc from mex -set up.
When I try to mex a c file above, I end up with the following errors:
EDU>> mex libpardiso_GNU43_IA32_P.so pardisoinit.c
libpardiso_GNU43_IA32_P.so : fatal error LNK1136: invalid or corrupt file
C:\MATLAB\BIN\MEX.PL: Error: Link of 'libpardiso_GNU43_IA32_P.mexw32' failed.
??? Error using ==> mex at 213
Unable to complete successfully.

I don't think that the so file is corrupted.
Did anyone face this problem or know how to solve this problem?
Did it happen becuase I used lcc?
How can I add gcc/gfrotran4.3 to compiler list in mex -set up?
In advance, thanks for all helps.

Evan

Subject: How to use Pardiso interface with Matlab

From: Ashish Uthama

Date: 19 Mar, 2009 19:29:42

Message: 2 of 4

On Tue, 17 Mar 2009 20:25:03 -0400, evan um <evanum@gmail.com> wrote:

> Hi all,
>
> I am trying to use PARDISO from MATLAB on Windows.
> I got libpardiso_GNU43_IA32_P.so file from PARDISO homepage:
> INTEL, 32-bit, gcc/gfortran 4.3 parallel libpardiso_GNU43_IA32_P.so
>
> I also have several files from pardiso-matlab-sym.tgz:
> pardiso.lic, pardisosolve.c, pardisoreorder.c, pardisofactor.c,
> pardisoinit.c, example.m
>
> I chose lcc from mex -set up.
> When I try to mex a c file above, I end up with the following errors:
> EDU>> mex libpardiso_GNU43_IA32_P.so pardisoinit.c
> libpardiso_GNU43_IA32_P.so : fatal error LNK1136: invalid or corrupt file
> C:\MATLAB\BIN\MEX.PL: Error: Link of 'libpardiso_GNU43_IA32_P.mexw32'
> failed.
> ??? Error using ==> mex at 213
> Unable to complete successfully.
>
> I don't think that the so file is corrupted.
> Did anyone face this problem or know how to solve this problem?
> Did it happen becuase I used lcc?
> How can I add gcc/gfrotran4.3 to compiler list in mex -set up?
> In advance, thanks for all helps.
>
> Evan

It appears to me that you are trying to use Linux files on a windows
machine.

.so files are shared object files in the Linux environment, LCC will not
be able to understand this file format.

Subject: How to use Pardiso interface with Matlab

From: A B

Date: 20 May, 2010 09:51:04

Message: 3 of 4

"evan um" <evanum@gmail.com> wrote in message <gppf0v$si9$1@fred.mathworks.com>...
> Hi all,
>
> I am trying to use PARDISO from MATLAB on Windows.
> I got libpardiso_GNU43_IA32_P.so file from PARDISO homepage:
> INTEL, 32-bit, gcc/gfortran 4.3 parallel libpardiso_GNU43_IA32_P.so
>
> I also have several files from pardiso-matlab-sym.tgz:
> pardiso.lic, pardisosolve.c, pardisoreorder.c, pardisofactor.c, pardisoinit.c, example.m
>
> I chose lcc from mex -set up.
> When I try to mex a c file above, I end up with the following errors:
> EDU>> mex libpardiso_GNU43_IA32_P.so pardisoinit.c
> libpardiso_GNU43_IA32_P.so : fatal error LNK1136: invalid or corrupt file
> C:\MATLAB\BIN\MEX.PL: Error: Link of 'libpardiso_GNU43_IA32_P.mexw32' failed.
> ??? Error using ==> mex at 213
> Unable to complete successfully.
>
> I don't think that the so file is corrupted.
> Did anyone face this problem or know how to solve this problem?
> Did it happen becuase I used lcc?
> How can I add gcc/gfrotran4.3 to compiler list in mex -set up?
> In advance, thanks for all helps.
>
> Evan

did you manage to solve your problem? i'm also trying to build pardiso on windows. however i haven't got intel fortran for windwos, and i'm trying it with silverfrost ftn95, but so far no luck. especially as ftn95 isn't that easy to interface with matlab itself

Subject: How to use Pardiso interface with Matlab

From: alorenzom

Date: 6 Dec, 2011 08:28:08

Message: 4 of 4

Dear All

did u fix this problem?

I tried to use pardiso-matlab.tgz at http://www.pardiso-project.org/index.php?p=manual

I tried

mex pardisoinit.cpp

and i got

lnk2019

"evan um" wrote in message <gppf0v$si9$1@fred.mathworks.com>...
> Hi all,
>
> I am trying to use PARDISO from MATLAB on Windows.
> I got libpardiso_GNU43_IA32_P.so file from PARDISO homepage:
> INTEL, 32-bit, gcc/gfortran 4.3 parallel libpardiso_GNU43_IA32_P.so
>
> I also have several files from pardiso-matlab-sym.tgz:
> pardiso.lic, pardisosolve.c, pardisoreorder.c, pardisofactor.c, pardisoinit.c, example.m
>
> I chose lcc from mex -set up.
> When I try to mex a c file above, I end up with the following errors:
> EDU>> mex libpardiso_GNU43_IA32_P.so pardisoinit.c
> libpardiso_GNU43_IA32_P.so : fatal error LNK1136: invalid or corrupt file
> C:\MATLAB\BIN\MEX.PL: Error: Link of 'libpardiso_GNU43_IA32_P.mexw32' failed.
> ??? Error using ==> mex at 213
> Unable to complete successfully.
>
> I don't think that the so file is corrupted.
> Did anyone face this problem or know how to solve this problem?
> Did it happen becuase I used lcc?
> How can I add gcc/gfrotran4.3 to compiler list in mex -set up?
> In advance, thanks for all helps.
>
> Evan

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us