Skip to content

Commit

Permalink
Is it my AMD GPU thats wrong?
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Nov 7, 2024
1 parent 42a9356 commit 82353bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bvals/bvals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<MeshBlock> pmb = GetBlockPointer();
// Fence to make sure buffers are loaded before sending
pmb->exec_space.fence();
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 4 additions & 0 deletions src/interface/swarm_comms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);

Expand Down Expand Up @@ -372,6 +374,8 @@ void Swarm::UnloadBuffers_() {
}

bool Swarm::Receive(BoundaryCommSubset phase) {
return true; // Debug

auto pmb = GetBlockPointer();
const int nneighbor = pmb->neighbors.size();

Expand Down

0 comments on commit 82353bc

Please sign in to comment.