Using PETSc from MATLAB code, experimental
PETSc users, It is now possible to write MATLAB programs (sequential) that use PETSc KSP, SNES, and TS solvers directly in MATLAB. The code is still experimental and incomplete. But if you are interested in trying it out, get the development release of PETSc http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html join the development mailing list petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/miscellaneous/mailing-lists.html, read bin/matlab/classes/PetscInitialize.m, configure and make PETSc and join the fun. We are definitely in need of more developers for this code. Barry
Hi Barry, is Matlab under Windows with petsc-cygwin supported? Thanks, Michel On Sun, Dec 26, 2010 at 5:17 AM, Barry Smith <[email protected]> wrote:
PETSc users,
It is now possible to write MATLAB programs (sequential) that use PETSc KSP, SNES, and TS solvers directly in MATLAB. The code is still experimental and incomplete. But if you are interested in trying it out, get the development release of PETSc http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html join the development mailing list petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/miscellaneous/mailing-lists.html, read bin/matlab/classes/PetscInitialize.m, configure and make PETSc and join the fun. We are definitely in need of more developers for this code.
Barry
On 13 January 2011 08:38, Michel Cancelliere <[email protected]> wrote:
Hi Barry, is Matlab under Windows with petsc-cygwin supported?
Unlikely, we would need to build PETSc as a DLL... If anyone can manage to do that, then Barry's work should work out of the box. Or perhaps PETSc do build as a DLL under cygwin?
Thanks, Michel On Sun, Dec 26, 2010 at 5:17 AM, Barry Smith <[email protected]> wrote:
PETSc users,
It is now possible to write MATLAB programs (sequential) that use PETSc KSP, SNES, and TS solvers directly in MATLAB. The code is still experimental and incomplete. But if you are interested in trying it out, get the development release of PETSc http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html join the development mailing list petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/miscellaneous/mailing-lists.html, read bin/matlab/classes/PetscInitialize.m, configure and make PETSc and join the fun. We are definitely in need of more developers for this code.
Barry
-- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169
Michel Lisandro is exactly right. The key is building the .dll. If you are interested in pursing this we are eager to help but are not Windows experts in any way. 1) are you using the GNU compiler or Microsoft? 2) if you are using GNU you can try building with the same options as indicated in the docs. including the --with-shared-libraries flag. what happens? What is generated? Let us know and we'll go from there, Barry On Jan 13, 2011, at 11:18 AM, Lisandro Dalcin wrote:
On 13 January 2011 08:38, Michel Cancelliere <[email protected]> wrote:
Hi Barry, is Matlab under Windows with petsc-cygwin supported?
Unlikely, we would need to build PETSc as a DLL... If anyone can manage to do that, then Barry's work should work out of the box.
Or perhaps PETSc do build as a DLL under cygwin?
Thanks, Michel On Sun, Dec 26, 2010 at 5:17 AM, Barry Smith <[email protected]> wrote:
PETSc users,
It is now possible to write MATLAB programs (sequential) that use PETSc KSP, SNES, and TS solvers directly in MATLAB. The code is still experimental and incomplete. But if you are interested in trying it out, get the development release of PETSc http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html join the development mailing list petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/miscellaneous/mailing-lists.html, read bin/matlab/classes/PetscInitialize.m, configure and make PETSc and join the fun. We are definitely in need of more developers for this code.
Barry
-- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169
I suspect Matlab would work with MS dlls - and not cygwin/gnu dlls.. satish On Thu, 13 Jan 2011, Barry Smith wrote:
Michel
Lisandro is exactly right. The key is building the .dll. If you are interested in pursing this we are eager to help but are not Windows experts in any way.
1) are you using the GNU compiler or Microsoft? 2) if you are using GNU you can try building with the same options as indicated in the docs. including the --with-shared-libraries flag. what happens? What is generated?
Let us know and we'll go from there,
Barry
On Jan 13, 2011, at 11:18 AM, Lisandro Dalcin wrote:
On 13 January 2011 08:38, Michel Cancelliere <[email protected]> wrote:
Hi Barry, is Matlab under Windows with petsc-cygwin supported?
Unlikely, we would need to build PETSc as a DLL... If anyone can manage to do that, then Barry's work should work out of the box.
Or perhaps PETSc do build as a DLL under cygwin?
Thanks, Michel On Sun, Dec 26, 2010 at 5:17 AM, Barry Smith <[email protected]> wrote:
PETSc users,
It is now possible to write MATLAB programs (sequential) that use PETSc KSP, SNES, and TS solvers directly in MATLAB. The code is still experimental and incomplete. But if you are interested in trying it out, get the development release of PETSc http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html join the development mailing list petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/miscellaneous/mailing-lists.html, read bin/matlab/classes/PetscInitialize.m, configure and make PETSc and join the fun. We are definitely in need of more developers for this code.
Barry
-- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169
On Jan 13, 2011, at 1:26 PM, Satish Balay wrote:
I suspect Matlab would work with MS dlls - and not cygwin/gnu dlls..
Yes, but it is much easier for checking than MS dlls so we have to start somewhere. Barry
satish
On Thu, 13 Jan 2011, Barry Smith wrote:
Michel
Lisandro is exactly right. The key is building the .dll. If you are interested in pursing this we are eager to help but are not Windows experts in any way.
1) are you using the GNU compiler or Microsoft? 2) if you are using GNU you can try building with the same options as indicated in the docs. including the --with-shared-libraries flag. what happens? What is generated?
Let us know and we'll go from there,
Barry
On Jan 13, 2011, at 11:18 AM, Lisandro Dalcin wrote:
On 13 January 2011 08:38, Michel Cancelliere <[email protected]> wrote:
Hi Barry, is Matlab under Windows with petsc-cygwin supported?
Unlikely, we would need to build PETSc as a DLL... If anyone can manage to do that, then Barry's work should work out of the box.
Or perhaps PETSc do build as a DLL under cygwin?
Thanks, Michel On Sun, Dec 26, 2010 at 5:17 AM, Barry Smith <[email protected]> wrote:
PETSc users,
It is now possible to write MATLAB programs (sequential) that use PETSc KSP, SNES, and TS solvers directly in MATLAB. The code is still experimental and incomplete. But if you are interested in trying it out, get the development release of PETSc http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html join the development mailing list petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/miscellaneous/mailing-lists.html, read bin/matlab/classes/PetscInitialize.m, configure and make PETSc and join the fun. We are definitely in need of more developers for this code.
Barry
-- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169
participants (4)
-
Barry Smith -
Lisandro Dalcin -
Michel Cancelliere -
Satish Balay