On Wed, 17 Jun 2015, Fande Kong wrote: > Hi Satish, > > I used the configure at > http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log, > and the code looks fine and do not have any warnings and errors.
> > http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log > > > >> ] > > > >> > > > >> > > /sandbox/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c:416:11: > > > >> error: > > > >> no matching function for call to 'PetscCommBuildTwoSided' Is this the issue you are trying to debug and reproduce? This build is with clang/clang++ petsc@petsc:~$ clang --version clang version 3.6.0 (tags/RELEASE_360/final) Target: x86_64-unknown-linux-gnu Thread model: posix Looking at the logfile - the message says: >>>>>>>> /sandbox/petsc/petsc.clone-2/include/petscsys.h:2534:29: note: candidate function not viable: no known conversion from 'PetscInt *' (aka 'long *') to 'PetscMPIInt *' (aka 'int *') for 7th argument <<<<<<< So perhaps the following fix? [the compile goes through for me with this change. The other warninings still reamin] diff --git a/src/mat/impls/aij/mpi/mpiov.c b/src/mat/impls/aij/mpi/mpiov.c index 50bf118..ce19bae 100644 --- a/src/mat/impls/aij/mpi/mpiov.c +++ b/src/mat/impls/aij/mpi/mpiov.c @@ -58,7 +58,8 @@ static PetscErrorCode MatIncreaseOverlap_MPIAIJ_Once_Scalable(Mat mat,PetscInt n PetscErrorCode ierr; MPI_Comm comm; PetscInt *length,length_i,tlength,*remoterows,nrrows,reducednrrows,*rrow_ranks,*rrow_isids,i,j,owner; - PetscInt *tosizes,*tosizes_temp,*toffsets,*fromsizes,*todata,*fromdata,nto,nfrom; + PetscInt *tosizes,*tosizes_temp,*toffsets,*fromsizes,*todata,*fromdata; + PetscMPIInt nfrom,nto; PetscInt nrecvrows,*sbsizes = 0,*sbdata = 0; const PetscInt **indices,*indices_i; PetscLayout rmap; diff --git a/src/vec/is/is/utils/iscoloring.c b/src/vec/is/is/utils/iscoloring.c index 8f8bf4c..8ac1097 100644 --- a/src/vec/is/is/utils/iscoloring.c +++ b/src/vec/is/is/utils/iscoloring.c @@ -357,7 +357,8 @@ PetscErrorCode ISBuildTwoSided(IS ito, IS *rows) { const PetscInt *ito_indices; PetscInt *send_indices,rstart,*recv_indices,nrecvs,nsends; - PetscInt nto,*tosizes,nfrom,*fromsizes,i,j,*tosizes_tmp,*tooffsets_tmp,ito_ln; + PetscInt nto,*tosizes,*fromsizes,i,j,*tosizes_tmp,*tooffsets_tmp,ito_ln; + PetscMPIInt nfrom; PetscMPIInt *toranks,*fromranks,size,target_rank,*fromperm_newtoold; PetscLayout isrmap; MPI_Comm comm; Satish
