Skip to content

Commit

Permalink
MueLu PerfModels: Silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Sep 18, 2023
1 parent 71605a4 commit 57ccd02
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/muelu/src/Utils/MueLu_PerfModels_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ namespace MueLu {

template <class exec_space, class memory_space>
void pingpong_basic(int KERNEL_REPEATS, int MAX_SIZE,const Teuchos::Comm<int> &comm, std::vector<int> & sizes, std::vector<double> & times) {
#ifdef HAVE_MPI
int rank = comm.getRank();
int nproc = comm.getSize();

if(nproc < 2) return;

#ifdef HAVE_MPI

const int buff_size = (int) pow(2,MAX_SIZE);

sizes.resize(MAX_SIZE+1);
Expand Down Expand Up @@ -243,6 +243,8 @@ namespace MueLu {
sizes[i] = msg_size;
times[i] = time_per_call;
}
#else
return;
#endif
}

Expand Down

0 comments on commit 57ccd02

Please sign in to comment.