From 24602e1259e9c63260e2fe3eafc738f0f6b22211 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 7 May 2024 17:28:38 +0000 Subject: [PATCH] Accidental synchronise --- Grid/util/FlightRecorder.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Grid/util/FlightRecorder.cc b/Grid/util/FlightRecorder.cc index 32fcd48b..60d18fb6 100644 --- a/Grid/util/FlightRecorder.cc +++ b/Grid/util/FlightRecorder.cc @@ -247,9 +247,12 @@ void FlightRecorder::ReductionLog(double local,double global) } void FlightRecorder::xmitLog(void *buf,uint64_t bytes) { + if(LoggingMode == LoggingModeNone) return; + if ( ChecksumCommsSend ){ uint64_t *ubuf = (uint64_t *)buf; if(LoggingMode == LoggingModeNone) return; + #ifdef GRID_SYCL uint64_t _xor = svm_xor(ubuf,bytes/sizeof(uint64_t)); if(LoggingMode == LoggingModePrint) { @@ -284,14 +287,6 @@ void FlightRecorder::xmitLog(void *buf,uint64_t bytes) } XmitLoggingCounter++; } -#endif - } else { - uint64_t word = 1; - deviceVector dev(1); - acceleratorCopyToDevice(&word,&dev[0],sizeof(uint64_t)); - acceleratorCopySynchronise(); -#ifndef GRID_COMMS_NONE - MPI_Barrier(MPI_COMM_WORLD); #endif } }