Mark, Looks like you tried to do two things at once, you removed the fopenmp and put back the --with-cuda. Like I said if you want PETSc to build OpenMP and CUDA you need to remove this line (and some others) from kokkos.py if self.openmp.found + pthreadfound + self.cuda.found > 1: raise RuntimeError("Kokkos only supports a single parallel system during its configuration")
On Jan 17, 2021, at 9:39 PM, Mark Adams <[email protected]> wrote:
Here is the problem. You set --CXXOPTFLAGS="-g -O0 -fPIC -fopenmp" to indicate how to compile for OpenMP but when ./configure checks the installed KokkosKernel include files it uses CXXPPFLAGS. (Since you provided the flag CXXOPTFLAGS ./configure never determines the flag to put into CXXPPFLAGS.
It is more desirable if you do not provide -fPIC -fopenmp. ./configure will figure them out for you.
:( <configure.log>