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

Robert.Crockett at lamresearch.com Robert.Crockett at lamresearch.com
Fri Jul 21 13:24:39 CDT 2023


No Jacob's fixes have not remedied the errors, unfortunately. Not for trying - he has sent me an update since the first.

I'll build MPI separately+ADs- thanks for the tips.

+AH4-Robert


Confidential +IBM- Limited Access and Use
-----Original Message-----
From: Satish Balay +ADw-balay+AEA-mcs.anl.gov+AD4-
Sent: Friday, July 21, 2023 12:57 PM
To: Barry Smith +ADw-bsmith+AEA-petsc.dev+AD4-
Cc: Crockett, Robert +ADw-Robert.Crockett+AEA-lamresearch.com+AD4AOw- petsc-users +ADw-petsc-users+AEA-mcs.anl.gov+AD4-
Subject: Re: +AFs-petsc-users+AF0- MPICH C+-+- compilers when using PETSC --with-cxx+AD0-0

+AFs-You don't often get email from balay+AEA-mcs.anl.gov. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification +AF0-

External Email: Do NOT reply, click on links, or open attachments unless you recognize the sender and know the content is safe. If you believe this email may be unsafe, please click on the +IBw-Report Phishing+IB0- button on the top right of Outlook.



Were you able to try Jacob's fix - so you could build with cxx?

Wrt building external pkgs - one way:

- first build pkgs:
./configure PETSC+AF8-ARCH+AD0-arch-pkgs --prefix+AD0AJA-HOME/soft/petsc-pkgs --with-cc+AD0-icc --with-cxx+AD0-icpc --with-fc+AD0-ifort --download-mpich --download-suitesparse

- now build PETSc with these pkgs
./configure PETSC+AF8-ARCH+AD0-arch-mybuild --with-mpi-dir+AD0AJA-HOME/soft/petsc-pkgs --with-cxx+AD0-0

+AFs-can't use --with-suitesparse-dir here - due to cxx dependencies within configure - but you disable this dependency check in configure - by commenting out one line of code+AF0-

Wrt configure options used - they are listed in configure.log - also in - for ex:

+AFs-balay+AEA-pj01 petsc+AF0AJA- ls arch-linux-c-debug/externalpackages/+ACo-/+ACo-petsc+ACo-
arch-linux-c-debug/externalpackages/git.sowing/sowing.petscconf

Satish

On Fri, 21 Jul 2023, Barry Smith wrote:

+AD4-
+AD4-   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.
+AD4-
+AD4-
+AD4-
+AD4- +AD4- On Jul 21, 2023, at 12:14 PM, Robert.Crockett+AEA-lamresearch.com wrote:
+AD4- +AD4-
+AD4- +AD4- Can I easily get the MPICH config PETSc uses? I+IBk-m poking through the repo and not seeing anything related to config of downloaded packages.
+AD4- +AD4- Thanks,
+AD4- +AD4- Robert
+AD4- +AD4-
+AD4- +AD4- From: Barry Smith +ADw-bsmith+AEA-petsc.dev +ADw-mailto:bsmith+AEA-petsc.dev+AD4APg-
+AD4- +AD4- Sent: Friday, July 21, 2023 11:35 AM
+AD4- +AD4- To: Crockett, Robert +ADw-Robert.Crockett+AEA-lamresearch.com
+AD4- +AD4- +ADw-mailto:Robert.Crockett+AEA-lamresearch.com+AD4APg-
+AD4- +AD4- Cc: petsc-users+AEA-mcs.anl.gov +ADw-mailto:petsc-users+AEA-mcs.anl.gov+AD4-
+AD4- +AD4- Subject: Re: +AFs-petsc-users+AF0- MPICH C+-+- compilers when using PETSC
+AD4- +AD4- --with-cxx+AD0-0
+AD4- +AD4-
+AD4- +AD4- You don't often get email from bsmith+AEA-petsc.dev
+AD4- +AD4- +ADw-mailto:bsmith+AEA-petsc.dev+AD4-. Learn why this is important
+AD4- +AD4- +ADw-https://aka.ms/LearnAboutSenderIdentification+AD4-
+AD4- +AD4-
+AD4- +AD4- External Email: Do NOT reply, click on links, or open attachments unless you recognize the sender and know the content is safe. If you believe this email may be unsafe, please click on the +IBw-Report Phishing+IB0- button on the top right of Outlook.
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4-   No, you will need to build MPICH yourself, stand-alone and then direct PETSc's configure to use what you have built.
+AD4- +AD4-
+AD4- +AD4-   Barry
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4- On Jul 21, 2023, at 11:11 AM, Robert Crockett via petsc-users +ADw-petsc-users+AEA-mcs.anl.gov +ADw-mailto:petsc-users+AEA-mcs.anl.gov+AD4APg- wrote:
+AD4- +AD4-
+AD4- +AD4- Hello,
+AD4- +AD4- I built PETSc with +IBM-with-cxx+AD0-0 in order to get around a likely Intel C+-+- compiler bug.
+AD4- +AD4- However, the MPICH that also gets built by PETSc then picks up the wrong C+-+- compiler+ADs- mpicxx -show indicates that it is using G+-+-, while mpicc is correctly using icc.
+AD4- +AD4-
+AD4- +AD4- Is there a way to get PETSc to pass the correct C+-+- compiler for the MPICH build when using +IBM-with-cxx+AD0-0? I need to compile parts of my own program with mpicxx/icpc.
+AD4- +AD4- Robert Crockett
+AD4- +AD4- Plasma Simulation Engineer +AHw- OCTO - Computational Products
+AD4- +AD4- P: 617.648.8349  M: 415.205.4567
+AD4- +AD4-
+AD4- +AD4- LAM RESEARCH
+AD4- +AD4- 4650 Cushing Pkwy, Fremont CA 94538 USA lamresearch.com
+AD4- +AD4- +ADw-https://www.lamresearch.com/+AD4- +ADw-image001.png+AD4-
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4- LAM RESEARCH CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files, or previous e-mail messages attached to it, (collectively, +ACI-E-mail Transmission+ACI-) 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.
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4- Confidential +IBM- Limited Access and Use
+AD4- +AD4-
+AD4- +AD4-
+AD4- +AD4- Confidential +IBM- Limited Access and Use
+AD4- +AD4-
+AD4-
+AD4-


More information about the petsc-users mailing list