Skip to content

Cleanup hackathon unit tests#55

Merged
nkoukpaizan merged 15 commits into
olcf-hackathon-2026-devfrom
nicholson/hackathon-cleanup
May 19, 2026
Merged

Cleanup hackathon unit tests#55
nkoukpaizan merged 15 commits into
olcf-hackathon-2026-devfrom
nicholson/hackathon-cleanup

Conversation

@nkoukpaizan
Copy link
Copy Markdown
Collaborator

@nkoukpaizan nkoukpaizan commented May 18, 2026

Merge request type

  • New feature
  • Resolves bug
  • Documentation
  • Other

Relates to

  • OPFLOW
  • SOPFLOW
  • SCOPFLOW
  • TCOPFLOW
  • CMake build system
  • Spack configuration
  • Manual
  • Web docs
  • Other

This MR updates

  • Header files
  • Source code
  • CMake build system
  • Spack configuration
  • Web docs
  • Manual
  • Other

Summary
This cleans up unit tests, particularly the constraints Jacobian tests/benchmarks added during the recent hackathon. This could always use more cleanup, but I think it moves us in the right direction.

  • Moved test_pflow.cpp from test/unit/ to test/unit/pflow
  • Moved test_acopf.cpp and test_ineqjac_gpu.cpp from test/unit/ to test/unit/opflow
  • Consolidated test_eqjac_gpu.cpp and test_eqjac_perf.cpp and moved them to test/unit/opflow. The intent is to keep the tests that are in subfolder constraint_jacobian as true unit tests (comparing to "analytical" reference rather than PETSc, see WIP: Equality constraint Jacobian test #38)
  • Modified the new constraints Jacobian tests to always run the benchmarks when using GPUs
  • Minor naming fixes to facilitate searching (e.g., ConstraintHessian --> ConstraintsHessian)

@nkoukpaizan nkoukpaizan self-assigned this May 18, 2026
@nkoukpaizan nkoukpaizan marked this pull request as ready for review May 18, 2026 22:37
Copy link
Copy Markdown
Collaborator

@pelesh pelesh left a comment

Choose a reason for hiding this comment

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

Thanks @nkoukpaizan for putting some order in ExaGO testing code! Looks good to me, but I would wait for @PhilipFackler's review before merging.

Copy link
Copy Markdown
Collaborator

@PhilipFackler PhilipFackler left a comment

Choose a reason for hiding this comment

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

Yes, very good!

@nkoukpaizan nkoukpaizan merged commit b332272 into olcf-hackathon-2026-dev May 19, 2026
@nkoukpaizan nkoukpaizan deleted the nicholson/hackathon-cleanup branch May 21, 2026 23:53
nkoukpaizan added a commit that referenced this pull request May 28, 2026
* Hessian --> hessian in unit test folders

* ConstraintHessian --> ConstraintsHessian in hiopkernels.

* UNIT_TEST_ --> UNIT_TESTS_.

* Capitalize test names for consistency.

* EQJAC --> EQUALITY_CONSTRAINT_JACOBIAN in test name.

* Include OPFLOW_ in related objective and constraints Jacobian unit test names.

* Cleanup a few CMake guards.

* Reorganize opflow unit tests.

* Remove  option from test_ineqjac_gpu, i.e, always evaluate performance.

* Minor edits to comments and print statements.

* Fix test_eqjac NETFILES and remove unnecessary command line option.

* Consolidate test_eqjac_gpu and test_eqjac_perf.

* Minor comment/print statement fix.

* Remove test_eqjac_perf from CMakeList.

---------

Co-authored-by: nkoukpaizan <nkoukpaizan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants