You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IBM code has undergone significant changes over the last year, with several new case parameters being added. However, none of those parameters have been added to work with the --case-optimization flag. On GPU and CPU, performance should be measured for various parameters and how code performance is affected when they are passed in via case optimization. This may involve pulling out some variables in code, such as the moving_immersed_boundary_flag variable and setting something equivalent in the case file parameters that can be passed in.
Anything that does not provide meaningful performance gain should not be included to prevent the code needing to be recompiled when these values are changed.
Checked against current master 4be75395: still open. CASE_OPT_PARAMS (toolchain/mfc/params/definitions.py:47) holds only reconstruction, IGR, MHD, num_fluids, nb and viscous parameters, and no IB parameter. moving_immersed_boundary_flag is still a runtime logical in m_ibm.fpp:203.
Since this was filed, several IB choices have become runtime branches inside device loops: ib_ip_interp (ib_ip_width 2 or 3), ib_wall_order, ib_visc_compact, the thermal and chemistry wall models, and ib_mass_relax. #2486 made ib_wall_order = 2, TSC image points and ib_visc_compact the defaults. That puts more branches in the ghost-point loop, and it makes them the ones most worth measuring. The measurement the issue asks for has not been done.
Size: medium. It is a measurement first: grind time of a moving-IB case such as examples/2D_mibm_particle_cloud or examples/3D_mibm_periodic_collision on one GPU, with each candidate fixed at build time against runtime. Only a parameter that shows a measurable gain should be added to CASE_OPT_PARAMS, because each one forces a rebuild when it changes.
Activity
sbryngelson commentedon Nov 27, 2026
Checked against current master
4be75395: still open.CASE_OPT_PARAMS(toolchain/mfc/params/definitions.py:47) holds only reconstruction, IGR, MHD,num_fluids,nbandviscousparameters, and no IB parameter.moving_immersed_boundary_flagis still a runtimelogicalinm_ibm.fpp:203.Since this was filed, several IB choices have become runtime branches inside device loops:
ib_ip_interp(ib_ip_width2 or 3),ib_wall_order,ib_visc_compact, the thermal and chemistry wall models, andib_mass_relax. #2486 madeib_wall_order = 2, TSC image points andib_visc_compactthe defaults. That puts more branches in the ghost-point loop, and it makes them the ones most worth measuring. The measurement the issue asks for has not been done.Size: medium. It is a measurement first: grind time of a moving-IB case such as
examples/2D_mibm_particle_cloudorexamples/3D_mibm_periodic_collisionon one GPU, with each candidate fixed at build time against runtime. Only a parameter that shows a measurable gain should be added toCASE_OPT_PARAMS, because each one forces a rebuild when it changes.AI-assisted (Claude Code).