[petsc-users] Using MATLAB on Windows with PETSc on WSL

Barry Smith bsmith at petsc.dev
Tue Sep 28 10:48:03 CDT 2021



> On Sep 28, 2021, at 11:33 AM, Lucas Banting <bantingl at myumanitoba.ca> wrote:
> 
> Hello,
> 
> My overall goal is to send a sparse matrix to PETSc (in WSL)from MATLAB (in Windows) so I can use SLEPc for some eigenvalue routines, and send those eigenvectors back to MATLAB, as the MATLAB eigs() struggles with my matrix and I was looking to experiment with different eigenvalue algorithms.
> 
> I was trying to configure PETSc on Windows Subsystem for Linux (WSL2). Configuring without '--with-matlab' works fine. I tried the configure command:
> 
> ./configure --with-scalar-type=complex --with-openblas-dir=~/software/OpenBLAS/
> --with-matlab-dir=/mnt/e/Program\ Files/MATLAB/R2020b
> 
> I was wondering if there is a fundamental reason this configure won't work, or if it is just the space in 'Program Files' that is breaking the configure command. 

   We cannot tell without the configure.log file. Note you may be able to use the shorten MS DOS directory names which do not have spaces for that directory?

> 
> I think the only thing configuring with MATLAB is 'sopen' and 'sclose'?

  Yes

> Is it possible I could just remake these on my own for a WSL compatible version?

  The building of sopen and sclose is something you can do directly by adjusting the makefile  by hand to link the correct files. 
> 
> Thanks,
> 
> Lucas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210928/0411b92f/attachment.html>


More information about the petsc-users mailing list