Hello Gus,
Thanks for your reply. Yes I've read multiple threads for very old versions of OMPI and PGI before posting, some said it'll be patched so I thought this is fixed in the recent versions. And some fixes didn't work for me. Now I tried the first suggestion (CC="pgcc -noswitcherror" as the error is with pgcc) The OMPI build was finished, but when I tried to use it to build QE GPU version, I got: undefined reference to `ompi_igatherv_f' I tried the other workaround https://www.mail-archive.com/users@lists.open-mpi.org/msg10375.html<https://urldefense.com/v3/__https://www.mail-archive.com/users@lists.open-mpi.org/msg10375.html__;!!Nmw4Hv0!mHuOLtyAuSwka2PpXEsyHXX5N2xzBT7digyvflX1ZBibtEeKFnwlHKCk3JyuA2ePQ7Gy0N8$> to rebuild OMPI, I got pgcc-Error-Unknown switch: +03 Please advise. All the best, Passant ________________________________ From: users <users-boun...@lists.open-mpi.org> on behalf of Gus Correa via users <users@lists.open-mpi.org> Sent: Friday, January 15, 2021 2:36 AM To: Open MPI Users Cc: Gus Correa Subject: Re: [OMPI users] Error with building OMPI with PGI Hi Passant, list This is an old problem with PGI. There are many threads in the OpenMPI mailing list archives about this, with workarounds. The simplest is to use FC="pgf90 -noswitcherror". Here are two out of many threads ... well, not pthreads! :) https://www.mail-archive.com/users@lists.open-mpi.org/msg08962.html<https://urldefense.com/v3/__https://www.mail-archive.com/users@lists.open-mpi.org/msg08962.html__;!!Nmw4Hv0!mHuOLtyAuSwka2PpXEsyHXX5N2xzBT7digyvflX1ZBibtEeKFnwlHKCk3JyuA2ePOctuIAQ$> https://www.mail-archive.com/users@lists.open-mpi.org/msg10375.html<https://urldefense.com/v3/__https://www.mail-archive.com/users@lists.open-mpi.org/msg10375.html__;!!Nmw4Hv0!mHuOLtyAuSwka2PpXEsyHXX5N2xzBT7digyvflX1ZBibtEeKFnwlHKCk3JyuA2ePQ7Gy0N8$> I hope this helps, Gus Correa On Thu, Jan 14, 2021 at 5:45 PM Passant A. Hafez via users <users@lists.open-mpi.org<mailto:users@lists.open-mpi.org>> wrote: Hello, I'm having an error when trying to build OMPI 4.0.3 (also tried 4.1) with PGI 20.1 ./configure CPP=cpp CC=pgcc CXX=pgc++ F77=pgf77 FC=pgf90 --prefix=$PREFIX --with-ucx=$UCX_HOME --with-slurm --with-pmi=/opt/slurm/cluster/ibex/install --with-cuda=$CUDATOOLKIT_HOME in the make install step: make[4]: Leaving directory `/tmp/openmpi-4.0.3/opal/mca/pmix/pmix3x' make[3]: Leaving directory `/tmp/openmpi-4.0.3/opal/mca/pmix/pmix3x' make[2]: Leaving directory `/tmp/openmpi-4.0.3/opal/mca/pmix/pmix3x' Making install in mca/pmix/s1 make[2]: Entering directory `/tmp/openmpi-4.0.3/opal/mca/pmix/s1' CCLD mca_pmix_s1.la<https://urldefense.com/v3/__http://mca_pmix_s1.la__;!!Nmw4Hv0!mHuOLtyAuSwka2PpXEsyHXX5N2xzBT7digyvflX1ZBibtEeKFnwlHKCk3JyuA2ePOBK8qAw$> pgcc-Error-Unknown switch: -pthread make[2]: *** [mca_pmix_s1.la<https://urldefense.com/v3/__http://mca_pmix_s1.la__;!!Nmw4Hv0!mHuOLtyAuSwka2PpXEsyHXX5N2xzBT7digyvflX1ZBibtEeKFnwlHKCk3JyuA2ePOBK8qAw$>] Error 1 make[2]: Leaving directory `/tmp/openmpi-4.0.3/opal/mca/pmix/s1' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/tmp/openmpi-4.0.3/opal' make: *** [install-recursive] Error 1 Please advise. All the best, Passant