Re: [petsc-dev] MATOP_MAT_MULT

2020-05-08 Thread Jose E. Roman
Stefano, I have tried to make my code work with your code on GPU (branch jose/bv-matmult-fallback), but I have errors. This is what I do on CPU: if (create) { ierr = MatCreateDense(PetscObjectComm((PetscObject)bv),bv->n,PETSC_DECIDE,bv->N,m,vv,&bv->Aget);CHKERRQ(ierr); /* pass a pointer to a

Re: [petsc-dev] MATOP_MAT_MULT

2020-05-08 Thread Stefano Zampini
Jose Just send me a MWE and I’ll fix the case for you Thanks Stefano > On May 8, 2020, at 6:13 PM, Jose E. Roman wrote: > > Stefano, I have tried to make my code work with your code on GPU (branch > jose/bv-matmult-fallback), but I have errors. > > This is what I do on CPU: > > if (create)

Re: [petsc-dev] MATOP_MAT_MULT

2020-05-08 Thread Jose E. Roman
Attached. Run with -test 1 or -test 2 > El 8 may 2020, a las 17:14, Stefano Zampini > escribió: > > Jose > > Just send me a MWE and I’ll fix the case for you > > Thanks > Stefano ex1.c Description: Binary data