<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class=""> Mark,</div><div class=""><br class=""></div> Looks like you tried to do two things at once, you removed the fopenmp and put back the --with-cuda.<div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""> Like I said if you want PETSc to build OpenMP and CUDA you need to remove this line (and some others) from kokkos.py</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""> if self.openmp.found + pthreadfound + self.cuda.found > 1:<div class=""> raise RuntimeError("Kokkos only supports a single parallel system during its configuration")</div><div class=""><br class=""></div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 17, 2021, at 9:39 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br class=""><br class="">
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.<br class="">
<br class="">
It is more desirable if you do not provide -fPIC -fopenmp. ./configure will figure them out for you.<br class=""></blockquote><div class=""><br class=""></div><div class="">:( </div></div></div>
<span id="cid:f_kk20rgra0"><configure.log></span></div></blockquote></div><br class=""></div></div></div></body></html>