<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>   I got this error when I used Kokkos master branch. When I used the branch we commonly used I did not get this problem. <div class=""><br class=""></div><div class="">   I think it is glitch in Kokkos that the Kokkos team has to deal with if you want to use that version of Kokkos. I think it only comes up on relative new NVIDIA systems so the Kokkos team may not have seen it. Nothing to do with PETSc.</div><div class=""><br class=""></div><div class="">   Barry</div><div class=""><br class=""><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 24, 2021, at 2:02 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="">Thanks,<div class="">I now see this. I recall this error being posted recently ...</div><div class=""><br class=""></div><div class="">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 class="">/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 class="">            function "__half::operator float() const"<br class="">            function "__half::operator short() const"<br class="">            function "__half::operator unsigned short() const"<br class="">            function "__half::operator int() const"<br class="">            function "__half::operator unsigned int() const"<br class="">            function "__half::operator long long() const"<br class="">            function "__half::operator unsigned long long() const"<br class="">            function "__half::operator __nv_bool() const"<br class=""><br class=""></div></div><br class=""><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" class="">bsmith@petsc.dev</a>> wrote:<br class=""></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;" class=""><div class=""><br class=""></div>   In kokkos-kernels.py comment out <div class=""><br class=""></div><div class="">#self.includes         = ['KokkosBlas.hpp','KokkosSparse_CrsMatrix.hpp']</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">   I don't know why this didn't hit has a long long time ago.</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Apr 24, 2021, at 8:21 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank" class="">mfadams@lbl.gov</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">I don't see this in kokkos-kernels.py.<div class="">I seem to get past Kokkos but it does in KK.</div></div><br class=""><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" class="">junchao.zhang@gmail.com</a>> wrote:<br class=""></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" class="">Hi, Mark,<div class="">  It is because in configure check of CUDA, we compile <a href="http://conftest.cc/" target="_blank" class="">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 class=""><br class=""></div><div class="">  A workaround is in kokkos.py and kokkos-kernels.py, comment out lines as follows, to disable the check.</div><div class=""><span style="color:rgb(0,128,0);font-family:Menlo,Monaco,"Courier New",monospace;font-size:14px;white-space:pre-wrap" class="">  #self.includes </span><span style="color:rgb(0,128,0);font-family:Menlo,Monaco,"Courier New",monospace;font-size:14px;white-space:pre-wrap" class="">= ['Kokkos_Macros.hpp']</span><div class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">--Junchao Zhang</div></div></div><br class=""></div></div></div><br class=""><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" class="">mfadams@lbl.gov</a>> wrote:<br class=""></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" class=""><div class="">I had Kokkos working here but I seemed to have broken it:</div><div class=""><br class=""></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 class=""> #error \<br class=""> <br class=""><div class="">Any ideas?</div></div>
</blockquote></div>
</blockquote></div>
<span id="gmail-m_-44282847159539924cid:f_knvrseqp0" class=""><configure.log></span></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></div></body></html>