<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello All,<div class=""><br class=""></div><div class="">Does anyone have any experience building petsc with cuda support on Lassen? I’ve been having trouble building with ibm xl compilers + spectrum-mpi + nvcc. NVCC seems to not like -std=c++14 argument, complaining that its configured host compiler doesn’t support it, but compiling the following “<a href="http://test.cc" class="">test.cc</a>":</div><div class=""><br class=""></div><div class="">#include <stdlib.h><br class=""><br class="">int main(int argc, char **argv)<br class="">{                                                                                                   <br class="">  int i = 1;<br class="">  i += argc;<br class="">  return(i);<br class="">}<br class=""><br class=""></div><div class="">With mpicc -std=c++14 <a href="http://test.cc" class="">test.cc</a> produces zero errors. </div><div class="">------------------------------------------------------------------------</div><div class=""><br class=""></div><div class="">Modules loaded:</div><div class=""><br class=""></div><div class="">module load xl/2020.11.12-cuda-11.1.1                                                               <br class="">module load spectrum-mpi<br class="">module load cuda/11.1.1<br class="">module load python/3.8.2<br class="">module load cmake<br class="">module load valgrind<br class="">module load lapack<br class=""><br class=""></div><div class="">My configure commands:</div><div class=""><br class=""></div><div class="">./configure  --with-cc=mpicc --with-cxx=mpiCC --with-fc=mpifort --with-cuda --with-debugging=1 PETSC_ARCH=arch-linux-c-debug</div><div class=""><br class=""></div><div class="">The error:</div><div class=""><br class=""></div><div class="">TESTING: findMPIInc from config.packages.MPI(config/BuildSystem/config/packages/MPI.py:636)         *******************************************************************************<br class="">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br class="">-------------------------------------------------------------------------------<br class="">Bad compiler flag: -I/usr/tce/packages/spectrum-mpi/ibm/spectrum-mpi-rolling-release/include<br class="">*******************************************************************************</div><div class=""><br class=""></div><div class="">The actual configure.log error:</div><div class=""><br class=""></div><div class="">Executing: nvcc -c -o /var/tmp/petsc-2v0k4k61/config.setCompilers/conftest.o -I/var/tmp/petsc-2v0k4\<br class="">k61/config.setCompilers -I/var/tmp/petsc-2v0k4k61/config.types  -g -std=c++14 -I/usr/tce/packages/s\<br class="">pectrum-mpi/ibm/spectrum-mpi-rolling-release/include  -Wno-deprecated-gpu-targets /var/tmp/petsc-2v\<br class="">0k4k61/config.setCompilers/conftest.cu <br class="">Possible ERROR while running compiler:<br class="">stderr:<br class="">nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be\<br class=""> ignored.<br class="">Source:<br class="">#include "confdefs.h"<br class="">#include "conffix.h"<br class=""><br class="">int main() {<br class="">;<br class="">  return 0;<br class="">}<br class="">                  Rejecting compiler flag -I/usr/tce/packages/spectrum-mpi/ibm/spectrum-mpi-rolling-release/include  due to <br class="">nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>

</div></body></html>