Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-06 Thread Satish Balay via petsc-users
BTW: Stepping back and looking that the error message: > > > >> Error: The import statement 'import matlab.internal.engine.input' > > cannot be found or cannot be imported. Imported names must end with '.*' or > > be fully qualified. Google suggests:

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-03 Thread Satish Balay via petsc-users
You are missing one more step: > [0] PetscInitialize(): Running on machine: MB108SMEC028 > [0] PetscMatlabEngineCreate(): Starting MATLAB engine with command > /usr/local/MATLAB/R2020b/bin/matlab -glnxa64 -nodisplay -nosplash No run matlab manually on "MB108SMEC028" with the command

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-03 Thread Satish Balay via petsc-users
To use datafiles in the test suite: cd $HOME git clone https://gitlab.com/petsc/datafiles make test query=requires queryval=matlab DATAFILESPATH=$HOME/datafiles Satish On Sun, 3 Sep 2023, Matthew Knepley wrote: > On Sun, Sep 3, 2023 at 8:47 AM INTURU SRINIVAS 20PHD0548 < >

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-03 Thread Satish Balay via petsc-users
On Sun, 3 Sep 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote: > Hi Sathish, > > Thank you so much for your efforts and the support you are giving me to > sort this out. > > I tried to follow the same procedure which you followed to build Petsc > 3.13.4 with Matlab-R2020b on Ubuntu20.04.

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-02 Thread Satish Balay via petsc-users
Perhaps you can try the following to get additional info - and debug Satish -- balay@compute-386-07:/scratch/balay/petsc$ cd src/tao/leastsquares/tutorials/matlab/ balay@compute-386-07:/scratch/balay/petsc/src/tao/leastsquares/tutorials/matlab$ make matlab_ls_test

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-02 Thread Satish Balay via petsc-users
Please don't cc: both petsc-users and petsc-maint [reverting thread to petsc-users only] I'm not sure what is happening here. Can you send the corresponding configure.log, make.log [compressed]? Here is my attempt to reproduce (with petsc-3.13) on Ubuntu-20.04, with Matlab-R2021a - and that

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-02 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Based on the suggestions given by Sathish, I have tried to configure petsc 3.13.4 with Matlab-R2020b. But, it was not successful. After running make -j 10 test command I have got the following error message. not ok tao_leastsquares_tutorials_matlab-matlab_ls_test # Error code: 124 # Running

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Thank you Sathish.I will try this On Fri, Sep 1, 2023, 22:53 Satish Balay wrote: > yes [and remove fblaslapack. don't know if hypre will work here]. > > i.e: > > ./configure --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 > CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread Satish Balay via petsc-users
yes [and remove fblaslapack. don't know if hypre will work here]. i.e: ./configure --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0 --with-x=0 \ --with-matlab-dir=/usr/local/MATLAB/R2020b --with-matlab-engine=1

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Hi Satish, -with-blaslapack-dir=/path/to/matlab_dir --known-64-bit-blas-indices=1 Is this what you are suggesting? On Fri, Sep 1, 2023, 20:42 Satish Balay wrote: > Also: > > '-known-64-bit-blas-indices=1', > > Note: most externalpackages might not work in this mode. > > [we can't really

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread Satish Balay via petsc-users
Also: '-known-64-bit-blas-indices=1', Note: most externalpackages might not work in this mode. [we can't really over come such dependency/conflicts across packages] Satish On Fri, 1 Sep 2023, Satish Balay via petsc-users wrote: > Here is the matlab test that runs in CI > >

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread Satish Balay via petsc-users
Here is the matlab test that runs in CI https://gitlab.com/petsc/petsc/-/jobs/4904566768 config/examples/arch-ci-linux-matlab-ilp64.py # Note: regular BLAS [with 32-bit integers] conflict with # MATLAB BLAS - hence requiring -known-64-bit-blas-indices=1 Ah - so you need to use the ilp64

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
Hi Amneet, Without libmesh, even for PETSc with MATLAB is not working. It is showing error for both 3.13.4 and 3.17.5 versions. I am trying to install IBAMR in HPC cluster with libmesh and this is for general usage not only for WEC. This I tried without linking Matlab with PETSc. Here also I got

Re: [petsc-users] Error while building PETSc with MATLAB

2023-09-01 Thread Amneet Bhalla
Hi Srinivas, As discussed earlier you don’t need libMesh for the WEC application. You can just work with PETSc 3.17.5 that builds with Matlab. Do you have a specific reason for wanting to build libMesh? Thanks, —Amneet On Thu, Aug 31, 2023 at 10:16 PM INTURU SRINIVAS 20PHD0548 via petsc-users

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-29 Thread Satish Balay via petsc-users
Well - you sent in libmesh log not petsc's configure.log/make.log for petsc-3.17 Anyway - with petsc-3.13 - you have: Matlab: Includes: -I/usr/local/MATLAB/R2020b/extern/include /usr/local/MATLAB/R2020b MatlabEngine: Library:

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-29 Thread Matthew Knepley
On Tue, Aug 29, 2023 at 9:08 AM Satish Balay via petsc-users < petsc-users@mcs.anl.gov> wrote: > Send configure.log, make.log from both petsc-3.13 and 3.17 [or 3.19]. > > [you can gzip them to make the logs friendly to mailing list - or send > them to petsc-maint] > > And does test suite work

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-29 Thread Satish Balay via petsc-users
Send configure.log, make.log from both petsc-3.13 and 3.17 [or 3.19]. [you can gzip them to make the logs friendly to mailing list - or send them to petsc-maint] And does test suite work with 3.17? [or 3.19?] Satish On Tue, 29 Aug 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote: > I am

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-28 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
I tried with petsc-3.17.5. During building of libmesh, the error shows petsc was not found On Mon, Aug 28, 2023 at 9:43 PM Satish Balay wrote: > https://ibamr.github.io/linux says petsc-3.17 > > Here you are using 3.13 > > Can you retry with petsc-3.17.5? > > Satish > > On Mon, 28 Aug 2023,

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-28 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
For the past 6 months,I am working on IBAMR without MATLAB. Now for one application it is recommended to build PETSc with MATLAB as mentioned in the following link https://github.com/IBAMR/cfd-mpc-wecs. On Mon, Aug 28, 2023, 21:45 Satish Balay wrote: > Also - the instructions don't say if

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-28 Thread Satish Balay via petsc-users
Also - the instructions don't say if matlab is required. So perhaps you might want to try an install without matlab - and see if you are able to get IBAMR working. Satish On Mon, 28 Aug 2023, Satish Balay via petsc-users wrote: > https://ibamr.github.io/linux says petsc-3.17 > > Here you are

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-28 Thread INTURU SRINIVAS 20PHD0548 via petsc-users
I will try it. On Mon, Aug 28, 2023, 21:43 Satish Balay wrote: > https://ibamr.github.io/linux says petsc-3.17 > > Here you are using 3.13 > > Can you retry with petsc-3.17.5? > > Satish > > On Mon, 28 Aug 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote: > > > Hello, > > > > I want to

Re: [petsc-users] Error while building PETSc with MATLAB

2023-08-28 Thread Satish Balay via petsc-users
https://ibamr.github.io/linux says petsc-3.17 Here you are using 3.13 Can you retry with petsc-3.17.5? Satish On Mon, 28 Aug 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote: > Hello, > > I want to build PETSc with MATLAB for working on the simulation using IBAMR > open software. While

Re: [petsc-users] Error in building PETSc

2023-05-19 Thread Jau-Uei Chen
Thanks for your prompt reply! It works perfectly. Best Regards, Jau-Uei Chen Graduate student Department of Aerospace Engineering and Engineering Mechanics The University of Texas at Austin On Fri, May 19, 2023 at 2:02 PM Satish Balay wrote: > Use "make OMAKE_PRINTDIR=gmake all" instead of

Re: [petsc-users] Error in building PETSc

2023-05-19 Thread Satish Balay via petsc-users
Use "make OMAKE_PRINTDIR=gmake all" instead of "make all" or use latest release Satish On Fri, 19 May 2023, Jau-Uei Chen wrote: > To whom it may concern, > > Currently, I am trying to build PETSc-3.17.4 on my own laptop (MacPro Late > 2019) but encounter an error when performing "make all".