Commit 3ed39ca8 authored by Stan Moore's avatar Stan Moore
Browse files

Make Kokkos comm give warning and switch to classic comm instead of erroring out

parent ee487ef4
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ void CommKokkos::exchange()
    if(!exchange_comm_classic) {
      static int print = 1;
      if(print && comm->me==0) {
        error->warning(FLERR,"Fixes cannot send data in Kokkos communication, "
        error->warning(FLERR,"Fixes cannot yet send data in Kokkos communication, "
                      "switching to classic communication");
      }
      print = 0;
@@ -620,6 +620,19 @@ void CommKokkos::exchange_device()

void CommKokkos::borders()
{
  if (!exchange_comm_classic) {
    static int print = 1;

    if (style != SINGLE || bordergroup || ghost_velocity) {
      if (print && comm->me==0) {
        error->warning(FLERR,"Required border comm not yet implemented in Kokkos communication, "
                      "switching to classic communication");
      }
      print = 0;
      exchange_comm_classic = true;
    }
  }
  
  if (!exchange_comm_classic) {
    if (exchange_comm_on_host) borders_device<LMPHostType>();
    else borders_device<LMPDeviceType>();
+7 −2
Original line number Diff line number Diff line
@@ -82,9 +82,14 @@ E: Ghost velocity forward comm not yet implemented with Kokkos

This is a current restriction.

W: Fixes cannot send data in Kokkos communication, switching to classic communication
W: Fixes cannot yet send data in Kokkos communication, switching to classic communication

This is current restriction with Kokkos.
This is a current restriction with Kokkos.

W: Required border comm not yet implemented in Kokkos communication, switching to classic communication

There are various limitations in the communication options supported
by Kokkos.

E: Required border comm not yet implemented with Kokkos