<div dir="ltr"><div>Hi Barry <br></div><div><br></div><div>There doesn't appear to be any reference to 'optimize' in the only copy of  <a href="http://superlu_gpu_utils.cu">superlu_gpu_utils.cu</a> I could find, I've attached a copy.</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 25, 2022 at 1:44 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><div><div>nvcc fatal   : redefinition of argument 'optimize'</div><div>make[2]: *** [SRC/CMakeFiles/superlu_dist.dir/build.make:499: SRC/CMakeFiles/superlu_dist.dir/superlu_gpu_utils.cu.o] Error 1</div><div>make[2]: *** Waiting for unfinished jobs....</div><div>nvcc fatal   : redefinition of argument 'optimize'</div><div>make[2]: *** [SRC/CMakeFiles/superlu_dist-static.dir/build.make:499: SRC/CMakeFiles/superlu_dist-static.dir/superlu_gpu_utils.cu.o] Error 1</div><div>make[2]: *** Waiting for unfinished jobs....</div></div><div><br></div><div>It seems that nvcc is unhappy with something in <a href="http://superlu_gpu_utils.cu" target="_blank">superlu_gpu_utils.cu</a>  Could you check that file for any "redefinition of optimize"? Unfortunately the nvcc compiler isn't kind enough to print the line number of the redefinition or that information is lost somehow in the build process.</div><div><br></div><div>Barry</div><div><br></div><div><blockquote type="cite"><div>On Aug 25, 2022, at 6:50 AM, byron <<a href="mailto:lbgpublic@gmail.com" target="_blank">lbgpublic@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>Hi All</div><div><br></div><div>I am having trouble getting petsc to build with cuda / superlu-dist enabled.  I have been trying to build it as part of another software tool, moose, hence the choice of options being passed to configure<br></div><div><br></div><div>python3 ./configure --download-hypre=1 \<br>--with-shared-libraries=1 \<br>--download-hdf5=1 \<br>--download-hdf5-fortran-bindings=0 \<br>--with-debugging=no \<br>--download-fblaslapack=1 \<br>--download-metis=1 \<br>--download-ptscotch=1 \<br>--download-parmetis=1 \<br>--download-superlu_dist=1 \<br>--download-mumps=1 \<br>--download-strumpack=1 \<br>--download-scalapack=1 \<br>--download-slepc=1 \<br>--with-mpi=1 \<br>--with-openmp=1 \<br>--with-cxx-dialect=C++11 \<br>--with-fortran-bindings=0 \<br>--with-sowing=0 \<br>--with-64-bit-indices \<br>--with-cuda \<br>--prefix=/home/blah/blah</div><div><br></div><div>it fails with <br></div><div><br></div><div>=============================================================================================                                                                                                             Installing PTScotch; this may take several minutes                                                                                                                                            =============================================================================================                                                                                                       =============================================================================================                                                                                                             Trying to download git://<a href="https://github.com/xiaoyeli/superlu_dist" target="_blank">https://github.com/xiaoyeli/superlu_dist</a> for SUPERLU_DIST                                                                                                            =============================================================================================                                                                                                       =============================================================================================                                                                                                             Configuring SUPERLU_DIST with cmake; this may take several minutes                                                                                                                            =============================================================================================                                                                                                       =============================================================================================                                                                                                             Compiling and installing SUPERLU_DIST; this may take several minutes                                                                                                                          =============================================================================================                                                                                                                             *******************************************************************************<br>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>-------------------------------------------------------------------------------<br>Error running make on  SUPERLU_DIST<br>*******************************************************************************</div><div><br></div><div>I've attached the configure.log.</div><div><br></div><div>I've tried a few different things but nothing that resulted in a successfull build.  The most promising was I tried to build superlu_dist separately with the configure options that petsc passes it and then kept trying the build over and over droping out different configure options until I got it to work.  In that case removing a "-std=c++14" entry appeared to fix the problem but then when I made the same change in how petsc builds superlu-dist the make failed on superlu-dist with a different error.  I get the feeling I'm dealing with symptoms of the problem rather than the cause.  <br></div><div><br></div><div>Thanks</div><div>Byron<br></div><div>           </div><div><br></div><div><br></div><div> <br></div></div>
<span id="gmail-m_4640858947137368745cid:f_l78x98390"><configure.log></span></div></blockquote></div><br></div></blockquote></div>