Skip to content

Unify main entry points into single htsim_uec binary#12

Open
tommasobo wants to merge 1 commit intomainfrom
feature/unified-main
Open

Unify main entry points into single htsim_uec binary#12
tommasobo wants to merge 1 commit intomainfrom
feature/unified-main

Conversation

@tommasobo
Copy link
Contributor

Merge main_uec_df.cpp (Dragonfly) and main_uec_sf.cpp (SlimFly) into main_uec.cpp with a new -topology flag (fattree|dragonfly|slimfly).

Key changes:

  • Add TopologyType enum and CLI flags: -topology, -basepath, -routing
  • Add Dragonfly/SlimFly code paths inside main_uec.cpp
  • Remove htsim_uec_df and htsim_uec_sf executables from CMakeLists.txt
  • Fix queue_type enum ODR violation in slimfly_topology.h (COMPOSITE was 1 in SF vs 3 in FT/DF headers)
  • Auto-detect packet size: 4150 for FatTree, 4160 for DF/SF
  • Fix Logged object lifetimes (move declarations before if/else block)
  • Update README documentation for unified binary usage

Merge main_uec_df.cpp (Dragonfly) and main_uec_sf.cpp (SlimFly) into
main_uec.cpp with a new -topology flag (fattree|dragonfly|slimfly).

Key changes:
- Add TopologyType enum and CLI flags: -topology, -basepath, -routing
- Add Dragonfly/SlimFly code paths inside main_uec.cpp
- Remove htsim_uec_df and htsim_uec_sf executables from CMakeLists.txt
- Fix queue_type enum ODR violation in slimfly_topology.h (COMPOSITE was
  1 in SF vs 3 in FT/DF headers)
- Auto-detect packet size: 4150 for FatTree, 4160 for DF/SF
- Fix Logged object lifetimes (move declarations before if/else block)
- Update README documentation for unified binary usage

All 22 functional tests and 18 reachability tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant