<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 3:15 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
  Mark,<br>
<br>
  Looks like you are building Kokkos without CUDA.   </blockquote><div><br></div><div>Yes. This is a CPU build of Kokkos.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> You don't have --with-cuda on configure line that is used by Kokkos to determine what version to build.<br>
<br>
  Junchao,<br>
<br>
  I guess you need to test Kokkos Kernels without CUDA and HIP and make a few changes.<br></blockquote><div><br></div><div>I'm trying with OpenMP right now. If you want CPU runs then asking for OMP is not terrible.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
  Barry<br>
<br>
<br>
<br>
<br>
#if defined(PETSC_HAVE_CUDA)<br>
  #define WaitForKokkos() PetscCUDASynchronize ? (Kokkos::fence(),0) : 0;<br>
#elif defined(PETSC_HAVE_HIP)<br>
  #define WaitForKokkos() PetscHIPSynchronize ? (Kokkos::fence(),0) : 0;<br>
#endif<br>
<br>
<br>
<br>
> On Oct 2, 2020, at 11:47 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
> <br>
> <br>
> <configure.log><make.log><br>
<br>
</blockquote></div></div>