Skip to content

Commit df2ba1b

Browse files
authored
Merge pull request #137 from arrowd/master
BLACS: fix implicit function declarations errors
2 parents 655382d + ea39758 commit df2ba1b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

BLACS/SRC/Bdef.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ typedef void (*SDRVPTR)(BLACSCONTEXT *, Int, Int, BLACBUFF *);
129129
void BI_BlacsWarn(Int ConTxt, Int line, char *file, char *form, ...);
130130
void BI_BlacsErr(Int ConTxt, Int line, char *file, char *form, ...);
131131
Int BI_ContxtNum(BLACSCONTEXT *ctxt);
132+
void BI_TransDist(BLACSCONTEXT *ctxt, char scope, Int m, Int n, Int *rA,
133+
Int *cA, Int ldrc, BI_DistType *dist, Int rdest, Int cdest);
134+
void BI_dmvcopy(Int m, Int n, double *A, Int lda, double *buff);
135+
void BI_dvmcopy(Int m, Int n, double *A, Int lda, double *buff);
136+
void BI_imvcopy(Int m, Int n, Int *A, Int lda, Int *buff);
137+
void BI_ivmcopy(Int m, Int n, Int *A, Int lda, Int *buff);
138+
void BI_smvcopy(Int m, Int n, float *A, Int lda, float *buff);
139+
void BI_svmcopy(Int m, Int n, float *A, Int lda, float *buff);
140+
void Cblacs_pinfo(Int *mypnum, Int *nprocs);
132141

133142
/*
134143
* If we've got an ANSI standard C compiler, we can use void pointers...

BLACS/SRC/blacs_init_.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ void Cblacs_gridinit(Int *ConTxt, char *order, Int nprow, Int npcol)
66
F_VOID_FUNC blacs_gridinit_(Int *ConTxt, F_CHAR order, Int *nprow, Int *npcol)
77
#endif
88
{
9+
#if (INTFACE == C_CALL)
910
void Cblacs_gridmap(Int *, Int *, Int, Int, Int);
11+
#else
12+
F_VOID_FUNC blacs_gridmap_(Int *ConTxt, Int *usermap, Int *ldup, Int *nprow0,
13+
Int *npcol0);
14+
#endif
1015
Int *tmpgrid, *iptr;
1116
Int i, j;
1217

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ append_subdir_files(src "SRC")
223223
append_subdir_files(src-C "SRC")
224224

225225
if (NOT MSVC)
226+
set_source_files_properties(TOOLS/SL_gridreshape.c PROPERTIES COMPILE_OPTIONS "-Wno-error=implicit-function-declaration")
226227
add_library(scalapack ${blacs} ${tools} ${tools-C} ${extra_lapack} ${pblas} ${pblas-F} ${ptzblas} ${ptools} ${pbblas} ${redist} ${src} ${src-C})
227228
set_target_properties(scalapack PROPERTIES
228229
VERSION ${SCALAPACK_VERSION}

0 commit comments

Comments
 (0)