Unverified Commit b3dbf792 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

print warning when GPU pair style increases the communication cutoff

parent 9a7caebf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -390,6 +390,11 @@ have fully consistent image flags, since some bonds will cross
periodic boundaries and connect two atoms with the same image
flag. :dd

{Increasing communication cutoff for GPU style} :dt

The pair style has increased the communication cutoff to be consistent with
the communication cutoff requirements for this pair style when run on the GPU. :dd

{KIM Model does not provide 'energy'; Potential energy will be zero} :dt

Self-explanatory. :dd
+5 −0
Original line number Diff line number Diff line
@@ -133,4 +133,9 @@ E: Unknown error in GPU library

Self-explanatory.

W: Increasing communication cutoff for GPU style

The pair style has increased the communication cutoff to be consistent with
the communication cutoff requirements for this pair style when run on the GPU.

*/
+4 −1
Original line number Diff line number Diff line
@@ -206,8 +206,11 @@ void PairSWGPU::init_style()
    neighbor->requests[irequest]->ghost = 1;
  }

  if (comm->cutghostuser < (2.0*cutmax + neighbor->skin) )
  if (comm->cutghostuser < (2.0*cutmax + neighbor->skin)) {
    comm->cutghostuser=2.0*cutmax + neighbor->skin;
    if (comm->me == 0)
       error->warning(FLERR,"Increasing communication cutoff for GPU style");
  }
}

/* ----------------------------------------------------------------------
+4 −1
Original line number Diff line number Diff line
@@ -240,8 +240,11 @@ void PairTersoffGPU::init_style()
    neighbor->requests[irequest]->ghost = 1;
  }

  if (comm->cutghostuser < (2.0*cutmax + neighbor->skin) )
  if (comm->cutghostuser < (2.0*cutmax + neighbor->skin)) {
    comm->cutghostuser = 2.0*cutmax + neighbor->skin;
    if (comm->me == 0)
       error->warning(FLERR,"Increasing communication cutoff for GPU style");
  }
}

/* ----------------------------------------------------------------------
+4 −1
Original line number Diff line number Diff line
@@ -232,8 +232,11 @@ void PairTersoffMODGPU::init_style()
    neighbor->requests[irequest]->ghost = 1;
  }

  if (comm->cutghostuser < (2.0*cutmax + neighbor->skin) )
  if (comm->cutghostuser < (2.0*cutmax + neighbor->skin)) {
    comm->cutghostuser = 2.0*cutmax + neighbor->skin;
    if (comm->me == 0)
       error->warning(FLERR,"Increasing communication cutoff for GPU style");
  }
}

/* ----------------------------------------------------------------------
Loading