<div dir="ltr">Thanks,<div>I now see this. I recall this error being posted recently ...</div><div><br></div><div>nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).<br>/global/homes/m/madams/petsc/arch-cori-gpu-opt-kokkos-gcc/include/Cuda/Kokkos_Cuda_Half.hpp(220): error: more than one conversion function from "Kokkos::Experimental::half_t::impl_type" to a built-in type applies:<br> function "__half::operator float() const"<br> function "__half::operator short() const"<br> function "__half::operator unsigned short() const"<br> function "__half::operator int() const"<br> function "__half::operator unsigned int() const"<br> function "__half::operator long long() const"<br> function "__half::operator unsigned long long() const"<br> function "__half::operator __nv_bool() const"<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 24, 2021 at 1:09 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"><div style="overflow-wrap: break-word;"><div><br></div> In kokkos-kernels.py comment out <div><br></div><div>#self.includes = ['KokkosBlas.hpp','KokkosSparse_CrsMatrix.hpp']</div><div><br></div><div><br></div><div> I don't know why this didn't hit has a long long time ago.</div><div><br></div><div><br><div><br><blockquote type="cite"><div>On Apr 24, 2021, at 8:21 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:</div><br><div><div dir="ltr">I don't see this in kokkos-kernels.py.<div>I seem to get past Kokkos but it does in KK.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 4:41 PM Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com" target="_blank">junchao.zhang@gmail.com</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"><div dir="ltr">Hi, Mark,<div> It is because in configure check of CUDA, we compile <a href="http://conftest.cc" target="_blank">conftest.cc</a> (which includes kokkos headers) with mpicxx. Kokkos complains it was configured with cuda but now is not compiled with cudac.</div><div><br></div><div> A workaround is in kokkos.py and kokkos-kernels.py, comment out lines as follows, to disable the check.</div><div><span style="color:rgb(0,128,0);font-family:Menlo,Monaco,"Courier New",monospace;font-size:14px;white-space:pre-wrap"> #self.includes </span><span style="color:rgb(0,128,0);font-family:Menlo,Monaco,"Courier New",monospace;font-size:14px;white-space:pre-wrap">= ['Kokkos_Macros.hpp']</span><div><div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">--Junchao Zhang</div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 1:59 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</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"><div dir="ltr"><div>I had Kokkos working here but I seemed to have broken it:</div><div><br></div>global/homes/m/madams/petsc/arch-cori-gpu-opt-kokkos-gcc/include/setup/Kokkos_Setup_Cuda.hpp:54:2: error: #error "KOKKOS_ENABLE_CUDA defined but the compiler is not defining the __CUDACC__ macro as expected"<br> #error \<br> <br><div>Any ideas?</div></div>
</blockquote></div>
</blockquote></div>
<span id="gmail-m_-44282847159539924cid:f_knvrseqp0"><configure.log></span></div></blockquote></div><br></div></div></blockquote></div>