From 5afcbcf0f3de455a390ae94bee0435fb6b76c4d6 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 27 Jun 2025 06:00:24 +0000 Subject: [PATCH] Cshift uses flight recorder --- Grid/cshift/Cshift_mpi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Grid/cshift/Cshift_mpi.h b/Grid/cshift/Cshift_mpi.h index 6f2e2699..05ee946b 100644 --- a/Grid/cshift/Cshift_mpi.h +++ b/Grid/cshift/Cshift_mpi.h @@ -143,9 +143,11 @@ template void Cshift_comms(Lattice &ret,const Lattice &r int comm_proc = ((x+sshift)/rd)%pd; if (comm_proc==0) { + FlightRecorder::StepLog("Cshift_Copy_plane"); tcopy-=usecond(); Copy_plane(ret,rhs,dimension,x,sx,cbmask); tcopy+=usecond(); + FlightRecorder::StepLog("Cshift_Copy_plane_complete"); } else { int words = buffer_size; @@ -153,9 +155,11 @@ template void Cshift_comms(Lattice &ret,const Lattice &r int bytes = words * sizeof(vobj); + FlightRecorder::StepLog("Cshift_Gather_plane"); tgather-=usecond(); Gather_plane_simple (rhs,send_buf,dimension,sx,cbmask); tgather+=usecond(); + FlightRecorder::StepLog("Cshift_Gather_plane_complete"); // int rank = grid->_processor; int recv_from_rank; @@ -166,6 +170,7 @@ template void Cshift_comms(Lattice &ret,const Lattice &r tcomms-=usecond(); grid->Barrier(); + FlightRecorder::StepLog("Cshift_SendRecv"); #ifdef ACCELERATOR_AWARE_MPI grid->SendToRecvFrom((void *)&send_buf[0], xmit_to_rank, @@ -182,10 +187,12 @@ template void Cshift_comms(Lattice &ret,const Lattice &r bytes); acceleratorCopyToDevice(&hrecv_buf[0],&recv_buf[0],bytes); #endif + FlightRecorder::StepLog("Cshift_SendRecv_complete"); xbytes+=bytes; grid->Barrier(); tcomms+=usecond(); + FlightRecorder::StepLog("Cshift_barrier_complete"); tscatter-=usecond(); Scatter_plane_simple (ret,recv_buf,dimension,x,cbmask);