Re: [petsc-dev] OpenMP

2021-11-06 Thread Junchao Zhang
On Sat, Nov 6, 2021 at 3:51 PM Mark Adams wrote: > Yea, that is a bit inscrutable, but I see mumps is the main/only user of > this: > > /* if using PETSc OpenMP support, we only call MUMPS on master ranks. > Before/after the call, we change/restore CPUs the master ranks can run on */ > > And I

Re: [petsc-dev] OpenMP

2021-11-06 Thread Mark Adams
Yea, that is a bit inscrutable, but I see mumps is the main/only user of this: /* if using PETSc OpenMP support, we only call MUMPS on master ranks. Before/after the call, we change/restore CPUs the master ranks can run on */ And I see _OPENMP is a macro for the release date (mm) of the OMP

Re: [petsc-dev] OpenMP

2021-11-06 Thread Junchao Zhang
On Sat, Nov 6, 2021 at 5:51 AM Mark Adams wrote: > Two questions on OMP: > > * Can I test for the version of OMP? I want >= 5 and I see this, which > looks promising: > include/petscsys.h:#elif defined(_OPENMP) && *_OPENMP >= 201307* && > !defined(_WIN32) > > * What is the difference between

Re: [petsc-dev] [DocTip!] #2: Aiming for self-updating docs

2021-11-06 Thread Matthew Knepley
On Sat, Nov 6, 2021 at 10:34 AM Patrick Sanan wrote: > > > Am Fr., 5. Nov. 2021 um 19:18 Uhr schrieb Lawrence Mitchell >: > >> >> > On 5 Nov 2021, at 15:25, Patrick Sanan wrote: >> > >> > Good question. We don't have any that start at specific line numbers, >> currently, as it is indeed too

Re: [petsc-dev] [DocTip!] #3 CI docs build and preview

2021-11-06 Thread Mark Adams
This is nice. I see "view latest app" in the pipeline box and you can edit/commit in the browser also. On Sat, Nov 6, 2021 at 10:10 AM Patrick Sanan wrote: > All MRs now build all the documentation. This is done with the > "docs-review" job (defined in .gitlab-ci.yml ) . There is special logic

Re: [petsc-dev] [DocTip!] #2: Aiming for self-updating docs

2021-11-06 Thread Patrick Sanan
Am Fr., 5. Nov. 2021 um 19:18 Uhr schrieb Lawrence Mitchell : > > > On 5 Nov 2021, at 15:25, Patrick Sanan wrote: > > > > Good question. We don't have any that start at specific line numbers, > currently, as it is indeed too brittle - I suspect I removed some that were > there at one point. > >

[petsc-dev] [DocTip!] #3 CI docs build and preview

2021-11-06 Thread Patrick Sanan
All MRs now build all the documentation. This is done with the "docs-review" job (defined in .gitlab-ci.yml ) . There is special logic associated with the "docs-only" label: if you add this to your MR, the usual heavy library tests will be skipped, and the docs will be built without you having to

[petsc-dev] OpenMP

2021-11-06 Thread Mark Adams
Two questions on OMP: * Can I test for the version of OMP? I want >= 5 and I see this, which looks promising: include/petscsys.h:#elif defined(_OPENMP) && *_OPENMP >= 201307* && !defined(_WIN32) * What is the difference between HAVE_OPENMP and HAVE_OPENMP_SUPPORT. Thanks, Mark