From 373a70ed637f8986ba7e66617c3d3bd94ae78659 Mon Sep 17 00:00:00 2001 From: Gleb Popov Date: Wed, 2 Jul 2025 17:56:55 +0300 Subject: math/scalapack: Fix building with Flang Upstream PR: https://github.com/Reference-ScaLAPACK/scalapack/pull/137 Upstream PR: https://github.com/Reference-ScaLAPACK/scalapack/pull/140 --- math/scalapack/files/patch-BLACS_SRC_Bdef.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 math/scalapack/files/patch-BLACS_SRC_Bdef.h (limited to 'math/scalapack/files/patch-BLACS_SRC_Bdef.h') diff --git a/math/scalapack/files/patch-BLACS_SRC_Bdef.h b/math/scalapack/files/patch-BLACS_SRC_Bdef.h new file mode 100644 index 000000000000..7845091f1e18 --- /dev/null +++ b/math/scalapack/files/patch-BLACS_SRC_Bdef.h @@ -0,0 +1,18 @@ +--- BLACS/SRC/Bdef.h.orig 2024-08-06 11:44:11 UTC ++++ BLACS/SRC/Bdef.h +@@ -129,6 +129,15 @@ Int BI_ContxtNum(BLACSCONTEXT *ctxt); + void BI_BlacsWarn(Int ConTxt, Int line, char *file, char *form, ...); + void BI_BlacsErr(Int ConTxt, Int line, char *file, char *form, ...); + Int BI_ContxtNum(BLACSCONTEXT *ctxt); ++void BI_TransDist(BLACSCONTEXT *ctxt, char scope, Int m, Int n, Int *rA, ++ Int *cA, Int ldrc, BI_DistType *dist, Int rdest, Int cdest); ++void BI_dmvcopy(Int m, Int n, double *A, Int lda, double *buff); ++void BI_dvmcopy(Int m, Int n, double *A, Int lda, double *buff); ++void BI_imvcopy(Int m, Int n, Int *A, Int lda, Int *buff); ++void BI_ivmcopy(Int m, Int n, Int *A, Int lda, Int *buff); ++void BI_smvcopy(Int m, Int n, float *A, Int lda, float *buff); ++void BI_svmcopy(Int m, Int n, float *A, Int lda, float *buff); ++void Cblacs_pinfo(Int *mypnum, Int *nprocs); + + /* + * If we've got an ANSI standard C compiler, we can use void pointers... -- cgit v1.2.3