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

Lucas Banting bantingl at myumanitoba.ca
Tue Sep 28 10:33:37 CDT 2021


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.

I think the only thing configuring with MATLAB is 'sopen' and 'sclose'?
Is it possible I could just remake these on my own for a WSL compatible version?

Thanks,

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


More information about the petsc-users mailing list