<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> You need to look in the configure.log you to see the exact configure/cmake command PETSc configure is using for each package it builds specific to that run of PETSc configure. We do not save them in some other place.<div><br></div><div><br><div><br><blockquote type="cite"><div>On Jul 21, 2023, at 12:14 PM, Robert.Crockett@lamresearch.com wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; 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;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Can I easily get the MPICH config PETSc uses? I’m poking through the repo and not seeing anything related to config of downloaded packages.<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks,<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Robert<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(225, 225, 225) currentcolor currentcolor; border-image: none; padding: 3pt 0in 0in;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><b>From:</b><span class="Apple-converted-space"> </span>Barry Smith <<a href="mailto:bsmith@petsc.dev" style="color: blue; text-decoration: underline;">bsmith@petsc.dev</a>><span class="Apple-converted-space"> </span><br><b>Sent:</b><span class="Apple-converted-space"> </span>Friday, July 21, 2023 11:35 AM<br><b>To:</b><span class="Apple-converted-space"> </span>Crockett, Robert <<a href="mailto:Robert.Crockett@lamresearch.com" style="color: blue; text-decoration: underline;">Robert.Crockett@lamresearch.com</a>><br><b>Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:petsc-users@mcs.anl.gov" style="color: blue; text-decoration: underline;">petsc-users@mcs.anl.gov</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [petsc-users] MPICH C++ compilers when using PETSC --with-cxx=0<o:p></o:p></div></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width: 1358px;"><tbody><tr><td style="background: rgb(166, 166, 166); padding: 5.25pt 1.5pt;"></td><td width="100%" style="width: 1324px; background: rgb(234, 234, 234); padding: 5.25pt 3.75pt 5.25pt 11.25pt;"><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif; color: rgb(33, 33, 33);">You don't often get email from<span class="Apple-converted-space"> </span><a href="mailto:bsmith@petsc.dev" style="color: blue; text-decoration: underline;">bsmith@petsc.dev</a>.<span class="Apple-converted-space"> </span><a href="https://aka.ms/LearnAboutSenderIdentification" style="color: blue; text-decoration: underline;">Learn why this is important</a><o:p></o:p></span></div></div></td><td width="75" style="width: 56.25pt; background: rgb(234, 234, 234); padding: 5.25pt 3.75pt;"></td></tr></tbody></table><div><div><p class="MsoNormal" style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"></p><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width: 1358px;"><tbody><tr><td style="background: red; padding: 0in;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style=""> </span><o:p></o:p></div></td><td width="100%" style="width: 1347.171875px; background: lightyellow; padding: 1pt 2pt 1pt 3pt;"><div><p><strong><span style="font-family: Calibri, sans-serif;">External Email:</span></strong><span style=""><span class="Apple-converted-space"> </span>Do NOT reply, click on links, or open attachments<span class="Apple-converted-space"> </span><u>unless</u><span class="Apple-converted-space"> </span>you recognize the sender and know the content is safe. If you believe this email may be unsafe, please click on the “Report Phishing” button on the top right of Outlook.</span><o:p></o:p></p></div></td></tr></tbody></table><p> <o:p></o:p></p></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> No, you will need to build MPICH yourself, stand-alone and then direct PETSc's configure to use what you have built.<o:p></o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Barry<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><br><br><o:p></o:p></div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">On Jul 21, 2023, at 11:11 AM, Robert Crockett via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" style="color: blue; text-decoration: underline;">petsc-users@mcs.anl.gov</a>> wrote:<o:p></o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Hello,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">I built PETSc with –with-cxx=0 in order to get around a likely Intel C++ compiler bug.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 12.65pt;"><span style="font-size: 12.5pt; font-family: Georgia, serif;">Robert Crockett</span><span class="apple-converted-space"><span style="font-size: 16pt; font-family: Georgia, serif;"> </span></span><span style="font-size: 16pt; font-family: Georgia, serif;"><br></span><span style="font-size: 9pt; font-family: Georgia, serif;">Plasma Simulation Engineer | OCTO - Computational Products</span><span style="font-size: 16pt; font-family: Georgia, serif;"><br></span><span style="font-size: 9pt; font-family: Arial, sans-serif;">P:<span class="apple-converted-space"> </span><span style="color: rgb(68, 68, 68);">617.648.8349</span> M: 415.205.4567<br><br></span><b><span style="font-size: 7pt; font-family: Arial, sans-serif;">LAM RESEARCH<br></span></b><span style="font-size: 7pt; font-family: Arial, sans-serif;">4650 Cushing Pkwy, Fremont CA 94538 USA<span class="apple-converted-space"> </span><br></span><a href="https://www.lamresearch.com/" style="color: blue; text-decoration: underline;"><span style="font-size: 7pt; font-family: Arial, sans-serif;">lamresearch.com</span></a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 16pt; font-family: Georgia, serif;"><image001.png></span><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 8pt; font-family: Arial, sans-serif;"><br>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.<o:p></o:p></span></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 13.5pt; font-family: Helvetica, sans-serif;"><br style="caret-color: rgb(0, 0, 0); font-variant-caps: normal; text-align: start; -webkit-text-stroke-width: 0px; word-spacing: 0px;"><br></span><o:p></o:p></div><p style="margin: 5pt;"><span style="font-size: 8pt; font-family: Arial, sans-serif; color: rgb(164, 174, 183);">Confidential – Limited Access and Use<o:p></o:p></span></p></div></blockquote></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div></div></div></div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; 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;"><p align="Left" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: arial; font-size: 8pt; color: rgb(164, 174, 183); margin: 5pt;">Confidential – Limited Access and Use</p></div></blockquote></div><br></div></body></html>