<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 28, 2021, at 10:52 PM, Rafael Monteiro da Silva <<a href="mailto:rafael.m.silva@alumni.usp.br" class="">rafael.m.silva@alumni.usp.br</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you Satish and Stefano for pointing me out how to do this.<div class=""><div class=""><br class=""></div><div class="">Stefano, if I'm interpreting correctly, I could try to add build options I need to this script. Is that correct?</div></div></div></div></blockquote><div><br class=""></div><div>The script configures PETSc with default options for NEC. I don’t recommend changing compilation flags</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">First, I'll try to install (based on arch-necve.py script) and then, as Satish suggested, include additional build options.</div><div class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div>Good luck with building and running these external packages</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Rafael.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui., 28 de out. de 2021 às 16:38, Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" class="">stefano.zampini@gmail.com</a>> escreveu:<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="">Rafael<div class=""><br class=""></div><div class="">PETSc can be built for NEC vector engines. Here is a sample configure script <a href="https://gitlab.com/petsc/petsc/-/blob/main/config/examples/arch-necve.py" target="_blank" class="">https://gitlab.com/petsc/petsc/-/blob/main/config/examples/arch-necve.py</a></div><div class="">NEC blas lapack should be automatically used.</div><div class=""><br class=""></div><div class="">I don’t know if the packages you need will compile and run smoothly. Their C/C++ compiler is very buggy, and I had to resort compiling with -O1to get almost all PETSc tests pass.</div><div class=""><div class="">PETSc automatically uses this optimization flag if you compile using with-debugging=0. Do not use higher optimizations, unless you are willing to file bug reports to them</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Stefano</div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Oct 28, 2021, at 10:12 PM, Rafael Monteiro da Silva <<a href="mailto:rafael.m.silva@alumni.usp.br" target="_blank" class="">rafael.m.silva@alumni.usp.br</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hello.<div class=""><br class=""></div><div class="">On my machine, for initial tests, I use the following options to install petsc:</div><div class=""><br class=""></div><div class="">PETSC_DIR=/home/rafael/petsc PETSC_ARCH=optimized-v3.15.5 --with-debugging=0 COPTFLAGS="-O3 -march=native -mtune=native" CXXOPTFLAGS="-O3 -march=native -mtune=native" FOPTFLAGS="-O3 -march=native -mtune=native" --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-fblaslapack --download-mpich --download-superlu_dist --download-metis --download-parmetis --download-mumps --download-scalapack --download-hdf5<br class=""></div><div class=""><br class=""></div><div class="">I need to test our software in an environment with NEC SX-Aurora TSUBASA Vector Engine.</div><div class="">Is there any resource where I can set up petsc to use Vector Engine?</div><div class=""><br class=""></div><div class="">Thank you!</div><div class="">Regards,</div><div class="">Rafael.</div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></body></html>