<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
It looks like a problem with the initialization of the MPI library. </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Try to compile a toy program with mpif90 and see if it runs with 2 or more ranks. </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
Pietro </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Da:</b> users <users-bounces@lists.quantum-espresso.org> per conto di Kliavinek, Sergei <skliavin@caltech.edu><br>
<b>Inviato:</b> mercoledì 13 settembre 2023 19:17<br>
<b>A:</b> Quantum ESPRESSO users Forum <users@lists.quantum-espresso.org><br>
<b>Oggetto:</b> [QE-users] QE compilation for Mac with Intel processor</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Dear QE developers, <br>
<br>
I compile QE inside Docker, which I run on several computers, including a Mac with an Intel processor. I manage to configure and compile pw.x, however, I get the following on running it:<br>
<br>
forrtl: severe (168): Program Exception - illegal instruction<br>
Image PC Routine Line Source<br>
libc.so.6 00007F8B5581A520 Unknown Unknown Unknown<br>
libmpi.so.12.0.0 00007F8B565EE77F MPL_wtime_init Unknown Unknown<br>
libmpi.so.12.0.0 00007F8B565DDDFA MPL_dbg_pre_init Unknown Unknown<br>
libmpi.so.12.0.0 00007F8B55EA1315 Unknown Unknown Unknown<br>
libmpi.so.12.0.0 00007F8B55EA0D1B MPI_Init Unknown Unknown<br>
libmpifort.so.12. 00007F8B574EC85B PMPI_INIT Unknown Unknown<br>
pw.x 0000000000AAD538 Unknown Unknown Unknown<br>
pw.x 0000000000AACFF6 Unknown Unknown Unknown<br>
pw.x 0000000000407AB5 Unknown Unknown Unknown<br>
pw.x 0000000000407A5D Unknown Unknown Unknown<br>
libc.so.6 00007F8B55801D90 Unknown Unknown Unknown<br>
libc.so.6 00007F8B55801E40 __libc_start_main Unknown Unknown<br>
pw.x 0000000000407975 Unknown Unknown Unknown<br>
<br>
Here is the configuration command I am using:<br>
<br>
./configure CFLAGS=-O3 FFLAGS=-O3 F90=ifort MPIF90=mpiifort --with-hdf5="/opt/hdf5"<br>
I've also tried to add arguments -host=mac686, ARCH="mac686", and this command:<br>
./configure CFLAGS=-O3 FFLAGS=-O3<br>
<br>
But also obtained the same result. <br>
<br>
However, If directly disable parallelizaton:<br>
<br>
./configure CFLAGS=-O3 FFLAGS=-O3 --disable-parallel<br>
<br>
Everything works fine. <br>
What could be the problem?<br>
<br>
P.S. I use intel toolkit as a base image:<br>
FROM intel/oneapi-hpckit:2023.0.0-devel-ubuntu22.04<br>
<br>
Best, <br>
Sergei<br>
_______________________________________________<br>
The Quantum ESPRESSO community stands by the Ukrainian<br>
people and expresses its concerns about the devastating<br>
effects that the Russian military offensive has on their<br>
country and on the free and peaceful scientific, cultural,<br>
and economic cooperation amongst peoples<br>
_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu">www.max-centre.eu</a>)<br>
users mailing list users@lists.quantum-espresso.org<br>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users">https://lists.quantum-espresso.org/mailman/listinfo/users</a><br>
</div>
</span></font></div>
</body>
</html>