Re: [petsc-users] KSP on GPU

2022-11-01 Thread Stefano Zampini
Are you calling VecRestoreArray when you are done inserting the values? On Tue, Nov 1, 2022, 18:42 Carl-Johan Thore via petsc-users < petsc-users@mcs.anl.gov> wrote: > Thanks for the tips! > > > > The suggested settings for GAMG did not yield better results, > > but hypre worked well right away,

Re: [petsc-users] KSP on GPU

2022-11-01 Thread Carl-Johan Thore via petsc-users
Yes, I'm calling VecRestoreArray, but I realized now that I exported the vectors to Matlab before doing that. Apparently that worked anyway for the CPU, but when using the GPU it didn't. If I call VecRestoreArray before exporting then everything works fine on the GPU as well. Thanks for

Re: [petsc-users] Field split degree of freedom ordering

2022-11-01 Thread Jed Brown
In most circumstances, you can and should interlace in some form such that each block in fieldsplit is distributed across all ranks. If you interlace at scalar granularity as described, then each block needs to be able to do that. So for the Stokes equations with equal order elements (like

Re: [petsc-users] PETSc Windows Installation

2022-11-01 Thread Mohammad Ali Yaqteen
What if I use Codeblocks to run petsc? Would I still need to reinstall petsc or the Cygwin installation will work? Thanks Ali -Original Message- From: Satish Balay Sent: Wednesday, November 2, 2022 12:13 AM To: Mohammad Ali Yaqteen Cc: petsc-users Subject: Re: [petsc-users] PETSc

[petsc-users] Field split degree of freedom ordering

2022-11-01 Thread Alexander Lindsay
In the block matrices documentation, it's stated: "Note that for interlaced storage the number of rows/columns of each block must be the same size" Is interlacing defined in a global sense, or a process-local sense? So explicitly, if I don't want the same size restriction, do I need to ensure that

Re: [petsc-users] PETSc Windows Installation

2022-11-01 Thread Mohammad Ali Yaqteen
The above commands worked but I get an error message when I include petsc.h in Visual Studio. The error message is "Cannot open include file: 'petscconf.h': No such file or directory Thanks, Ali -Original Message- From: Satish Balay Sent: Tuesday, November 1, 2022 2:40 PM To: Mohammad

Re: [petsc-users] PETSc Windows Installation

2022-11-01 Thread Satish Balay via petsc-users
If you need to use PETSc from Visual Studio - you need to follow instructions at https://petsc.org/release/install/windows/#installation-with-microsoft-intel-windows-compilers [i.e install with MS compilers/MPI - not cygwin compilers/MPI] Also check "Project Files" section on how to setup

Re: [petsc-users] KSP on GPU

2022-11-01 Thread Carl-Johan Thore via petsc-users
Thanks for the tips! The suggested settings for GAMG did not yield better results, but hypre worked well right away, giving very good convergence! A follow-up question then (I hope that's ok; and it could be related to GAMG not working, I'll check that). Once everything was running I discovered

[petsc-users] AMD vs Intel mobile CPU performance

2022-11-01 Thread D.J. Nolte
Hi all, I'm looking for a small laptop which I'll be using (also) for small scale PETSc (KSP & SNES) simulations. For this setting performance is not that important, but still, I wonder if the community has any experience with AMD Ryzen CPUs (specifically 5 Pro 6650U) CPUs compared to Intel i7