[petsc-users] MPICH C++ compilers when using PETSC --with-cxx=0

Robert.Crockett at lamresearch.com Robert.Crockett at lamresearch.com
Fri Jul 21 10:11:21 CDT 2023


Hello,
I built PETSc with -with-cxx=0 in order to get around a likely Intel C++ compiler bug.
However, the MPICH that also gets built by PETSc then picks up the wrong C++ compiler; mpicxx -show indicates that it is using G++, while mpicc is correctly using icc.

Is there a way to get PETSc to pass the correct C++ compiler for the MPICH build when using -with-cxx=0? I need to compile parts of my own program with mpicxx/icpc.
Robert Crockett
Plasma Simulation Engineer | OCTO - Computational Products
P: 617.648.8349  M: 415.205.4567

LAM RESEARCH
4650 Cushing Pkwy, Fremont CA 94538 USA
lamresearch.com<https://www.lamresearch.com/>
[cid:image001.png at 01D9BBC4.11B5C6D0]


LAM RESEARCH CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files, or previous e-mail messages attached to it, (collectively, "E-mail Transmission") may be subject to one or more of the following based on the associated sensitivity level: E-mail Transmission (i) contains confidential information, (ii) is prohibited from distribution outside of Lam, and/or (iii) is intended solely for and restricted to the specified recipient(s). If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender and destroy the original transmission and its attachments without reading them or saving them to disk. Thank you.


Confidential - Limited Access and Use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230721/b3f44a57/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1167 bytes
Desc: image001.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230721/b3f44a57/attachment-0001.png>


More information about the petsc-users mailing list