Skip to content

Moving IBM Case Optimization #1455

Open
Open

Description

@danieljvickers

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.

Activity

  1. added
    enhancement
    good first issue
    on May 27, 2026
  2. sbryngelson commented on Nov 27, 2026

    @sbryngelson
    Member

    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.

    AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementgood first issue

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions