Skip to content

Conversation

@anandrdbz
Copy link
Contributor

Code is fully refactored (RHS only 2800 lines) and passes all test cases on GPUs. Dead code removed from m_cbc, m_weno, m_monopole and m_bubbles as well (FYPP, removing _flat, _alt etc)

Run times are identical (slightly quicker in fact) for the fully resolved cases.

Sub-grid bubbles, which was previously quite slow on GPUs, now runs 20X faster (had to modify the bubble source kernel). Now, they exhibit identical speedups to the fully resolved case.

QBMM cases also show slight (5%) improvement from previous state. However GPU speedup is limited (3-4X slower than fully resolved / bubbles) due to the vast number of power operations (This is quite slow on OpenACC + F90).

In summary, runtimes for all cases are either identical to previous state or significantly better, with a vast reduction in number of lines

wilfonba and others added 26 commits November 8, 2022 16:19
This reverts commit 58e4ea0.
…s speedup for other cases + All tests pass
@sbryngelson
Copy link
Member

sbryngelson commented Nov 30, 2022

@anandrdbz @wilfonba CI failed. Why have all the golden files changed?

@anandrdbz
Copy link
Contributor Author

@anandrdbz @wilfonba CI failed. Why have all the golden files changed?

@sbryngelson should be fixed now, there was a deallocate statement in m_viscous that was causing the bug (which only shows on GCC)

@@ -0,0 +1,4 @@
#!bash

Copy link
Member

Choose a reason for hiding this comment

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

remove this file

qL_rsx_vf_flat, qL_rsy_vf_flat, qL_rsz_vf_flat, &
qR_rsx_vf_flat, qR_rsy_vf_flat, qR_rsz_vf_flat, &
qL_rsx_vf, qL_rsy_vf, qL_rsz_vf, &
qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, &
id)

iv%beg = mom_idx%beg; iv%end = mom_idx%end
if (weno_Re_flux) then
Copy link
Member

Choose a reason for hiding this comment

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

it seems like this subroutine s_reconstruct_cell_boundary_values_visc_deriv should be moved to the viscous module?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I must have missed that one. I'll move it.

Copy link
Member

Choose a reason for hiding this comment

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

thanks @wilfonba -- i already pulled your request so please create a new one for it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Will do!

@sbryngelson sbryngelson merged commit 31420aa into MFlowCode:master Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants