Skip to content

Conversation

@aeriforme
Copy link
Member

Add Gpu::streamSynchronize(); after copying TableData from either host-to-device and device-to-host in the ParticleHistogram2D and DifferentialLuminosity2D reduced diagnostics.

We have observed unstable behaviors with the DifferentialLuminosity2D diagnostic and @RemiLehe suggested this could be a reason.

Marked as bug, unless otherwise recommended.

@aeriforme aeriforme added bug Something isn't working component: diagnostics all types of outputs labels Mar 4, 2025
@aeriforme aeriforme requested review from WeiqunZhang and ax3l March 4, 2025 01:00
}

d_data_2D.copy(m_h_data_2D);
Gpu::streamSynchronize();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sync is not needed, because there is a sync in WarpXParIter constructor later.

@RemiLehe RemiLehe enabled auto-merge (squash) March 4, 2025 13:35
@RemiLehe RemiLehe merged commit 529723f into BLAST-WarpX:development Mar 4, 2025
36 checks passed
@aeriforme aeriforme mentioned this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working component: diagnostics all types of outputs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants