From 82353bcb9e5b237ef4587b25dd9b25ed4e552248 Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Thu, 7 Nov 2024 16:01:50 -0700 Subject: [PATCH] Is it my AMD GPU thats wrong? --- src/bvals/bvals.cpp | 2 ++ src/interface/swarm_comms.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/bvals/bvals.cpp b/src/bvals/bvals.cpp index 37a4d4689916..23fb52fadc85 100644 --- a/src/bvals/bvals.cpp +++ b/src/bvals/bvals.cpp @@ -91,6 +91,7 @@ void BoundarySwarm::SetupPersistentMPI() { // Send particle buffers across meshblocks. If different MPI ranks, use MPI, if same rank, // do a deep copy on device. void BoundarySwarm::Send(BoundaryCommSubset phase) { + // printf("%s:%i\n", __FILE__, __LINE__); std::shared_ptr pmb = GetBlockPointer(); // Fence to make sure buffers are loaded before sending pmb->exec_space.fence(); @@ -161,6 +162,7 @@ void BoundarySwarm::Receive(BoundaryCommSubset phase) { } } #endif + // printf("%s:%i\n", __FILE__, __LINE__); } // BoundarySwarms constructor (the first object constructed inside the MeshBlock() diff --git a/src/interface/swarm_comms.cpp b/src/interface/swarm_comms.cpp index 054ded34fabb..2128e66e8988 100644 --- a/src/interface/swarm_comms.cpp +++ b/src/interface/swarm_comms.cpp @@ -313,6 +313,8 @@ void Swarm::UnloadBuffers_() { auto &bdvar = vbswarm->bd_var_; const int nbmax = vbswarm->bd_var_.nbmax; + return; // debug + if (total_received_particles_ > 0) { auto newParticlesContext = AddEmptyParticles(total_received_particles_); @@ -372,6 +374,8 @@ void Swarm::UnloadBuffers_() { } bool Swarm::Receive(BoundaryCommSubset phase) { + return true; // Debug + auto pmb = GetBlockPointer(); const int nneighbor = pmb->neighbors.size();