<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear PETSc team,</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I’m encountering an issue when running a PETSc-based application with TAU instrumentation on macOS with Apple Silicon (M-series chip). The command I used is:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
tau_exec ./ex56 -log_perfstubs</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<code style="font-family: Aptos, Arial, Helvetica, sans-serif;"></code>```</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, it results in the following error:</div>
<div dir="ltr" style="font-family: -webkit-standard; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: -webkit-standard; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<p dir="ltr" style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(200, 20, 201);">❯</span><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);"> tau_exec ./ex56 -log_perfstubs</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(180, 36, 25);"><b>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</b></span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: Error in external library</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: perfstubs could not be initialized</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Y921vmhOfEgEAvsThMr8bYV0Dl7pvKJs2Jjextm_IgBm1MrgwUsBGAxFZ9uPb9Ev5ZSFB2VzhgsJcDkhw3ZDGTII$">https://petsc.org/release/faq/</a> for trouble shooting.</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: PETSc Release Version 3.23.0, unknown</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: ./ex56 with 1 MPI process(es) and PETSC_ARCH arch-firedrake-default on yzzs-mac.local by zzyang Thu Jun 5 09:19:42 2025</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: Configure options: --COPTFLAGS="-O3 -march=native -mtune=native" --CXXOPTFLAGS="-O3 -march=native -mtune=native" --FOPTFLAGS="-O3
-mtune=native" --download-bison --download-cmake --download-ctetgen --download-eigen --download-fftw --download-hpddm --download-hypre --download-libpng --download-metis --download-mmg --download-mumps --download-mumps-avoid-mpi-in-place --download-netcdf
--download-p4est --download-parmmg --download-pnetcdf --download-pragmatic --download-ptscotch --download-scalapack --download-slepc --download-suitesparse --download-superlu_dist --download-tetgen --download-triangle --with-c2html=0 --with-debugging=0 --with-fortran-bindings=0
--with-hdf5-dir=/opt/homebrew --with-hwloc-dir=/opt/homebrew --with-shared-libraries=1 --with-strict-petscerrorcode --with-zlib PETSC_ARCH=arch-firedrake-default --with-tau-perfstubs</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #1 PetscLogHandlerCreate_Perfstubs() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/logging/handler/impls/perfstubs/logperfstubs.c:184</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #2 PetscLogHandlerSetType() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/logging/handler/interface/lhreg.c:104</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #3 PetscLogTypeBegin() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/logging/plog.c:423</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #4 PetscLogPerfstubsBegin() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/logging/plog.c:658</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #5 PetscOptionsCheckInitial_Private() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/objects/init.c:528</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #6 PetscInitialize_Common() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/objects/pinit.c:1046</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #7 PetscInitialize() at /Users/zzyang/opt/firedrake/firedrake-pip/petsc/src/sys/objects/pinit.c:1369</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: #8 main() at ex56.c:208</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: PETSc Option Table entries:</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">[0]PETSC ERROR: -log_perfstubs (source: command line)</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(180, 36, 25);"><b>[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------</b></span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">--------------------------------------------------------------------------</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_SELF</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);"> Proc: [[8742,0],0]</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);"> Errorcode: 76</span></p>
<p style="line-height: normal; margin: 0px; min-height: 15px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);"><br>
</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">You may or may not see output from other processes, depending on</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">exactly when Open MPI kills them.</span></p>
<p style="line-height: normal; margin: 0px;"><span style="font-family: Menlo; font-size: 13px; color: rgb(0, 0, 0);">--------------------------------------------------------------------------</span></p>
<div dir="ltr" style="font-family: -webkit-standard; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I would appreciate any guidance on how to resolve or further debug this issue:</div>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":1}" style="list-style-type: decimal;">
<li style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div dir="ltr">Are there known issues with PerfStubs support on Apple Silicon?</div>
</li><li style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div dir="ltr">Are there recommended configuration steps or flags needed when building TAU and PETSc for this platform?</div>
</li></ol>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
</body>
</html>