<!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
On 18 Mar 2024, at 5: 13 PM, Satish Balay via petsc-users <petsc-users@ mcs. anl. gov> wrote: Ah - the compiler did flag code bugs. (current version is 0. 3. 26 but we can’t update because there is a huge performance regression which makes
</div>
<!-- Preheader Text : END -->
<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>
<!--[if ((ie)|(mso))]>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
<table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
<table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
<tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
This Message Is From an External Sender
</td></tr>
<tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
This message came from outside your organization.
</td></tr>
</table>
</td></tr></table>
</td></tr></table>
<![endif]-->
<![if !((ie)|(mso))]>
<div dir="ltr" id="pfptBanner87d6nqv" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
<div id="pfptBanner87d6nqv" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
<div id="pfptBanner87d6nqv" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
This Message Is From an External Sender
</div>
<div id="pfptBanner87d6nqv" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
</div>
</div>
<div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
</div>
<![endif]>
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->
<!-- BaNnErBlUrFlE-BoDy-end -->
<html><head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
#pfptBanner87d6nqv { all: revert !important; display: block !important;
visibility: visible !important; opacity: 1 !important;
background-color: #D0D8DC !important;
max-width: none !important; max-height: none !important }
.pfptPrimaryButton87d6nqv:hover, .pfptPrimaryButton87d6nqv:focus {
background-color: #b4c1c7 !important; }
.pfptPrimaryButton87d6nqv:active {
background-color: #90a4ae !important; }
</style>
<!-- BaNnErBlUrFlE-HeAdEr-end -->
<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;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 18 Mar 2024, at 5:13 PM, Satish Balay via petsc-users <petsc-users@mcs.anl.gov> wrote:</div><br class="Apple-interchange-newline"><div><div>Ah - the compiler did flag code bugs.<br><br><blockquote type="cite">(current version is 0.3.26 but we can’t update because there is a huge performance regression which makes the pipeline timeout)<br></blockquote><br>maybe we should retry - updating to the latest snapshot and see if this issue persists.<br></div></div></blockquote><div><br></div><div>Well, that’s easy to see it is _still_ broken: <a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/jobs/6419779589__;!!G_uCfscf7eWS!cZG6l8dQlL2q2LEgYiQw4bVE64zferDGxmonm_Z2I-6VXhae4u8oQiPv0BSGhXpi3y27-tKR-5wxh9MDGerWMQ$">https://gitlab.com/petsc/petsc/-/jobs/6419779589</a></div><div>The infamous gcc segfault that can’t let us run the pipeline, but that builds fine when it’s you that connect to the machine (I bothered you about this a couple of months ago in case you don’t remember, see <a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7143__;!!G_uCfscf7eWS!cZG6l8dQlL2q2LEgYiQw4bVE64zferDGxmonm_Z2I-6VXhae4u8oQiPv0BSGhXpi3y27-tKR-5wxh9NMU62L0Q$">https://gitlab.com/petsc/petsc/-/merge_requests/7143</a>).</div><div><br></div><div>Thanks,</div><div>Pierre</div><br><blockquote type="cite"><div><div><br>Satish<br><br>On Mon, 18 Mar 2024, Zongze Yang wrote:<br><br><blockquote type="cite">The issue of openblas was resolved by this pr https://urldefense.us/v3/__https://github.com/OpenMathLib/OpenBLAS/pull/4565__;!!G_uCfscf7eWS!b09n5clcTFuLceLY_9KfqtSsgmmCIBLFbqciRVCKvnvFw9zTaNF8ssK0MiQlBOXUJe7H88nl-7ExdfhB-cMXLQ2d$ <br><br>Best wishes,<br>Zongze<br><br><blockquote type="cite">On 18 Mar 2024, at 00:50, Zongze Yang <yangzongze@gmail.com> wrote:<br><br>It can be resolved by adding CFLAGS=-Wno-int-conversion. Perhaps the default behaviour of the new version compiler has been changed?<br><br>Best wishes,<br>Zongze<br><blockquote type="cite">On 18 Mar 2024, at 00:23, Satish Balay <balay@mcs.anl.gov> wrote:<br><br>Hm - I just tried a build with balay/xcode15-mpich - and that goes through fine for me. So don't know what the difference here is.<br><br>One difference is - I have a slightly older xcode. However your compiler appears to behave as using -Werror. Perhaps CFLAGS=-Wno-int-conversion will help here?<br><br>Satish<br><br>----<br>Executing: gcc --version<br>stdout:<br>Apple clang version 15.0.0 (clang-1500.3.9.4)<br><br>Executing: /Users/zzyang/workspace/repos/petsc/arch-darwin-c-debug/bin/mpicc -show<br>stdout: gcc -fPIC -fno-stack-check -Qunused-arguments -g -O0 -Wno-implicit-function-declaration -fno-common -I/Users/zzyang/workspace/repos/petsc/arch-darwin-c-debug/include -L/Users/zzyang/workspace/repos/petsc/arch-darwin-c-debug/lib -lmpi -lpmpi<br><br>/Users/zzyang/workspace/repos/petsc/arch-darwin-c-debug/bin/mpicc -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_WARMUP -DMAX_CPU_NUMBER=12 -DMAX_PARALLEL_NUMBER=1 -DBUILD_SINGLE=1 -DBUILD_DOUBLE=1 -DBUILD_COMPLEX=1 -DBUILD_COMPLEX16=1 -DVERSION=\"0.3.21\" -march=armv8-a -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME -DASMNAME=_lapack_wrappers -DASMFNAME=_lapack_wrappers_ -DNAME=lapack_wrappers_ -DCNAME=lapack_wrappers -DCHAR_NAME=\"lapack_wrappers_\" -DCHAR_CNAME=\"lapack_wrappers\" -DNO_AFFINITY -I.. -c src/lapack_wrappers.c -o src/lapack_wrappers.o<br>src/lapack_wrappers.c:570:81: error: incompatible integer to pointer conversion passing 'blasint' (aka 'int') to parameter of type 'const blasint *' (aka 'const int *'); take the address with & [-Wint-conversion]<br> RELAPACK_sgemmt(uplo, transA, transB, n, k, alpha, A, ldA, B, ldB, beta, C, info);<br> ^~~~<br> &<br><br>vs:<br>Executing: gcc --version<br>stdout:<br>Apple clang version 15.0.0 (clang-1500.1.0.2.5)<br><br>Executing: /Users/balay/petsc/arch-darwin-c-debug/bin/mpicc -show<br>stdout: gcc -fPIC -fno-stack-check -Qunused-arguments -g -O0 -Wno-implicit-function-declaration -fno-common -I/Users/balay/petsc/arch-darwin-c-debug/include -L/Users/balay/petsc/arch-darwin-c-debug/lib -lmpi -lpmpi<br><br><br>/Users/balay/petsc/arch-darwin-c-debug/bin/mpicc -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_WARMUP -DMAX_CPU_NUMBER=24 -DMAX_PARALLEL_NUMBER=1 -DBUILD_SINGLE=1 -DBUILD_DOUBLE=1 -DBUILD_COMPLEX=1 -DBUILD_COMPLEX16=1 -DVERSION=\"0.3.21\" -march=armv8-a -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME -DASMNAME=_lapack_wrappers -DASMFNAME=_lapack_wrappers_ -DNAME=lapack_wrappers_ -DCNAME=lapack_wrappers -DCHAR_NAME=\"lapack_wrappers_\" -DCHAR_CNAME=\"lapack_wrappers\" -DNO_AFFINITY -I.. -c src/lapack_wrappers.c -o src/lapack_wrappers.o<br>src/lapack_wrappers.c:570:81: warning: incompatible integer to pointer conversion passing 'blasint' (aka 'int') to parameter of type 'const blasint *' (aka 'const int *'); take the address with & [-Wint-conversion]<br> RELAPACK_sgemmt(uplo, transA, transB, n, k, alpha, A, ldA, B, ldB, beta, C, info);<br> ^~~~<br> &<br><br><br><br><br>On Sun, 17 Mar 2024, Pierre Jolivet wrote:<br><br><blockquote type="cite">Ah, my bad, I misread linux-opt-arm as a macOS runner, no wonder the option is not helping…<br>Take Barry’s advice.<br>Furthermore, it looks like OpenBLAS people are steering in the opposite direction as us, by forcing the use of ld-classic https://urldefense.us/v3/__https://github.com/OpenMathLib/OpenBLAS/commit/103d6f4e42fbe532ae4ea48e8d90d7d792bc93d2__;!!G_uCfscf7eWS!bY2l3X9Eb5PRzNQYrfPFXhgcUodHCiDinhQYga0PeQn1IQzJYD376fk-pZfktGAkpTvBmzy7BFDc9SrazFoooQ$ , so that’s another good argument in favor of -framework Accelerate.<br><br>Thanks,<br>Pierre<br><br>PS: anyone benchmarked those https://urldefense.us/v3/__https://developer.apple.com/documentation/accelerate/sparse_solvers__;!!G_uCfscf7eWS!bY2l3X9Eb5PRzNQYrfPFXhgcUodHCiDinhQYga0PeQn1IQzJYD376fk-pZfktGAkpTvBmzy7BFDc9SrpnDvT5g$ ? I didn’t even know they existed.<br><br><blockquote type="cite">On 17 Mar 2024, at 3:06 PM, Zongze Yang <yangzongze@gmail.com <mailto:yangzongze@gmail.com>> wrote:<br><br>This Message Is From an External Sender <br>This message came from outside your organization.<br>Understood. Thank you for your advice.<br><br>Best wishes,<br>Zongze<br><br><blockquote type="cite">On 17 Mar 2024, at 22:04, Barry Smith <bsmith@petsc.dev <mailto:bsmith@petsc.dev> <mailto:bsmith@petsc.dev>> wrote:<br><br><br> I would just avoid the --download-openblas option. The BLAS/LAPACK provided by Apple should perform fine, perhaps even better than OpenBLAS on your system.<br><br><br><blockquote type="cite">On Mar 17, 2024, at 9:58 AM, Zongze Yang <yangzongze@gmail.com <mailto:yangzongze@gmail.com> <mailto:yangzongze@gmail.com>> wrote:<br><br>This Message Is From an External Sender <br>This message came from outside your organization.<br>Adding the flag `--download-openblas-make-options=TARGET=GENERIC` did not resolve the issue. The same error persisted.<br><br>Best wishes,<br>Zongze<br><br><blockquote type="cite">On 17 Mar 2024, at 20:58, Pierre Jolivet <pierre@joliv.et <mailto:pierre@joliv.et> <mailto:pierre@joliv.et>> wrote:<br><br><br><br><blockquote type="cite">On 17 Mar 2024, at 1:04 PM, Zongze Yang <yangzongze@gmail.com <mailto:yangzongze@gmail.com> <mailto:yangzongze@gmail.com>> wrote:<br><br>Thank you for providing the instructions. I try the first option.<br><br>Now, the error of the configuration is related to OpenBLAS.<br>Add `--CFLAGS=-Wno-int-conversion` to configure command resolve this. Should this be reported to OpenBLAS? Or need to fix the configure in petsc?<br></blockquote><br>I see our linux-opt-arm runner is using the additional flag '--download-openblas-make-options=TARGET=GENERIC', could you maybe try to add that as well?<br>I don’t think there is much to fix on our end, OpenBLAS has been very broken lately on arm (current version is 0.3.26 but we can’t update because there is a huge performance regression which makes the pipeline timeout).<br><br>Thanks,<br>Pierre<br><br><blockquote type="cite"><br>The configure.log is attached. The errors are show below:<br> ```<br> src/lapack_wrappers.c:570:81: error: incompatible integer to pointer conversion passing 'blasint' (aka 'int') to parameter of type 'const blasint *' (aka 'const int *'); take the address with & [-Wint-conversion]<br> RELAPACK_sgemmt(uplo, transA, transB, n, k, alpha, A, ldA, B, ldB, beta, C, info);<br> ^~~~<br> &<br> src/../inc/relapack.h:74:216: note: passing argument to parameter here<br> void RELAPACK_sgemmt(const char *, const char *, const char *, const blasint *, const blasint *, const float *, const float *, const blasint *, const float *, const blasint *, const float *, float *, const blasint *);<br> ^<br> src/lapack_wrappers.c:583:81: error: incompatible integer to pointer conversion passing 'blasint' (aka 'int') to parameter of type 'const blasint *' (aka 'const int *'); take the address with & [-Wint-conversion]<br> RELAPACK_dgemmt(uplo, transA, transB, n, k, alpha, A, ldA, B, ldB, beta, C, info);<br> ^~~~<br> &<br> src/../inc/relapack.h:75:221: note: passing argument to parameter here<br> void RELAPACK_dgemmt(const char *, const char *, const char *, const blasint *, const blasint *, const double *, const double *, const blasint *, const double *, const blasint *, const double *, double *, const blasint *);<br> ^<br> src/lapack_wrappers.c:596:81: error: incompatible integer to pointer conversion passing 'blasint' (aka 'int') to parameter of type 'const blasint *' (aka 'const int *'); take the address with & [-Wint-conversion]<br> RELAPACK_cgemmt(uplo, transA, transB, n, k, alpha, A, ldA, B, ldB, beta, C, info);<br> ^~~~<br> &<br> src/../inc/relapack.h:76:216: note: passing argument to parameter here<br> void RELAPACK_cgemmt(const char *, const char *, const char *, const blasint *, const blasint *, const float *, const float *, const blasint *, const float *, const blasint *, const float *, float *, const blasint *);<br> ^<br> src/lapack_wrappers.c:609:81: error: incompatible integer to pointer conversion passing 'blasint' (aka 'int') to parameter of type 'const blasint *' (aka 'const int *'); take the address with & [-Wint-conversion]<br> RELAPACK_zgemmt(uplo, transA, transB, n, k, alpha, A, ldA, B, ldB, beta, C, info);<br> ^~~~<br> &<br> src/../inc/relapack.h:77:221: note: passing argument to parameter here<br> void RELAPACK_zgemmt(const char *, const char *, const char *, const blasint *, const blasint *, const double *, const double *, const blasint *, const double *, const blasint *, const double *, double *, const blasint *);<br> ^<br> 4 errors generated.<br> ```<br><br>Best wishes,<br>Zongze<br><br><configure.log.tar.gz><br><br><blockquote type="cite">On 17 Mar 2024, at 18:48, Pierre Jolivet <pierre@joliv.et <mailto:pierre@joliv.et> <mailto:pierre@joliv.et>> wrote:<br><br>You need this MR https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7365__;!!G_uCfscf7eWS!bY2l3X9Eb5PRzNQYrfPFXhgcUodHCiDinhQYga0PeQn1IQzJYD376fk-pZfktGAkpTvBmzy7BFDc9SqG8HOUGQ$ <https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7365__;!!G_uCfscf7eWS!eCQRfbol7FDQiO0o78iDit2saij_ydIUtCfRQnsQAt-h_YcXr2Yi2BFnFnqHZp0FO3Lhpyr2RKdHZ-T-OF94HpwQ$%3E<br>main has been broken for macOS since https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7341__;!!G_uCfscf7eWS!bY2l3X9Eb5PRzNQYrfPFXhgcUodHCiDinhQYga0PeQn1IQzJYD376fk-pZfktGAkpTvBmzy7BFDc9Soe8Kh_uQ$ <https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7341__;!!G_uCfscf7eWS!eCQRfbol7FDQiO0o78iDit2saij_ydIUtCfRQnsQAt-h_YcXr2Yi2BFnFnqHZp0FO3Lhpyr2RKdHZ-T-OIhlJwLx$%3E, so the alternative is to revert to the commit prior.<br>It should work either way.<br><br>Thanks,<br>Pierre<br><br><blockquote type="cite">On 17 Mar 2024, at 11:31 AM, Zongze Yang <yangzongze@gmail.com <mailto:yangzongze@gmail.com> <mailto:yangzongze@gmail.com>> wrote:<br><br><br>This Message Is From an External Sender<br>This message came from outside your organization.<br>Hi, PETSc Team,<br><br>I am trying to install petsc with the following configuration<br>```<br>./configure \<br> --download-bison \<br> --download-mpich \<br> --download-mpich-configure-arguments=--disable-opencl \<br> --download-hwloc \<br> --download-hwloc-configure-arguments=--disable-opencl \<br> --download-openblas \<br> --download-openblas-make-options="'USE_THREAD=0 USE_LOCKING=1 USE_OPENMP=0'" \<br> --with-shared-libraries=1 \<br> --with-fortran-bindings=0 \<br> --with-zlib \<br> LDFLAGS=-Wl,-ld_classic<br>```<br><br>The log shows that<br>```<br> Exhausted all shared linker guesses. Could not determine how to create a shared library!<br>```<br><br>I recently updated the system and Xcode, as well as homebrew.<br><br>The configure.log is attached.<br><br>Thanks for your attention to this matter.<br><br>Best wishes,<br>Zongze<br><configure.log.tar.gz><br></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote><br></blockquote><configure.log.gz><br></blockquote><br></blockquote><br><br></blockquote></div></div></blockquote></div><br></body></html>