Remove openmp.py as package and instead check for flag only?
We do not use OpenMP within PETSc code, unless in few places if PETSC_HAVE_OPENMP_SUPPORT
is defined (what is the rationale for that? Why #if __OPENMP
is not enough? @jczhang07
We currently treat OpenMP as a package, while instead it should be handled as a compiler flag (like --with-cxx-dialect
for example).
Can we get rid of the package code and move the relevant code when configuring the compiler flags?
This will enable adding openmp as compiler flags for nvcc
(-Xcompiler -fopenmp
) so that third-party libraries can take advantage of OpenMP while compiling with nvcc
.