<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=""><div class="">nvcc fatal   : redefinition of argument 'optimize'</div><div class="">make[2]: *** [SRC/CMakeFiles/superlu_dist.dir/build.make:499: SRC/CMakeFiles/superlu_dist.dir/superlu_gpu_utils.cu.o] Error 1</div><div class="">make[2]: *** Waiting for unfinished jobs....</div><div class="">nvcc fatal   : redefinition of argument 'optimize'</div><div class="">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 class="">make[2]: *** Waiting for unfinished jobs....</div></div><div class=""><br class=""></div><div class="">It seems that nvcc is unhappy with something in superlu_gpu_utils.cu  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 class=""><br class=""></div><div class="">Barry</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Aug 25, 2022, at 6:50 AM, byron <<a href="mailto:lbgpublic@gmail.com" class="">lbgpublic@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi All</div><div class=""><br class=""></div><div class="">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 class=""></div><div class=""><br class=""></div><div class="">python3 ./configure --download-hypre=1 \<br class="">--with-shared-libraries=1 \<br class="">--download-hdf5=1 \<br class="">--download-hdf5-fortran-bindings=0 \<br class="">--with-debugging=no \<br class="">--download-fblaslapack=1 \<br class="">--download-metis=1 \<br class="">--download-ptscotch=1 \<br class="">--download-parmetis=1 \<br class="">--download-superlu_dist=1 \<br class="">--download-mumps=1 \<br class="">--download-strumpack=1 \<br class="">--download-scalapack=1 \<br class="">--download-slepc=1 \<br class="">--with-mpi=1 \<br class="">--with-openmp=1 \<br class="">--with-cxx-dialect=C++11 \<br class="">--with-fortran-bindings=0 \<br class="">--with-sowing=0 \<br class="">--with-64-bit-indices \<br class="">--with-cuda \<br class="">--prefix=/home/blah/blah</div><div class=""><br class=""></div><div class="">it fails with <br class=""></div><div class=""><br class=""></div><div class="">=============================================================================================                                                                                                             Installing PTScotch; this may take several minutes                                                                                                                                            =============================================================================================                                                                                                       =============================================================================================                                                                                                             Trying to download git://<a href="https://github.com/xiaoyeli/superlu_dist" class="">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 class="">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br class="">-------------------------------------------------------------------------------<br class="">Error running make on  SUPERLU_DIST<br class="">*******************************************************************************</div><div class=""><br class=""></div><div class="">I've attached the configure.log.</div><div class=""><br class=""></div><div class="">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 class=""></div><div class=""><br class=""></div><div class="">Thanks</div><div class="">Byron<br class=""></div><div class="">           </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> <br class=""></div></div>
<span id="cid:f_l78x98390"><configure.log></span></div></blockquote></div><br class=""></body></html>