Skip to content

Fix DDS_SCHEDULER build consistency and dtest -r reporting.#201

Open
tameware wants to merge 3 commits into
dds-bridge:developfrom
tameware:dds-scheduler-fix
Open

Fix DDS_SCHEDULER build consistency and dtest -r reporting.#201
tameware wants to merge 3 commits into
dds-bridge:developfrom
tameware:dds-scheduler-fix

Conversation

@tameware

Copy link
Copy Markdown
Collaborator

Propagate scheduler define through :dds to fix Scheduler ODR/crash; use SolveAllBoards for parallel solve timing; clarify calc has no per-board data.

Test with

bazel build --define=scheduler=true //library/tests:dtest
bazel-bin/library/tests/dtest -f hands/list10.txt -r

Propagate scheduler define through :dds to fix Scheduler ODR/crash; use SolveAllBoards for parallel solve timing; clarify calc has no per-board data.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Propagates the DDS_SCHEDULER compile define through the core :dds Bazel targets to avoid mixed-define builds (and associated ODR/runtime issues), and adjusts dtest to use the library batch solver plus clearer -r output when per-board timing isn’t available.

Changes:

  • Add DDS_SCHEDULER_DEFINE to local_defines for :dds and :testable_dds* Bazel targets.
  • Update dtest solve loop to call SolveAllBoards() for the parallel path.
  • Refine dtest -r messaging when per-board timing data is not available (notably for calc).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
library/tests/testcommon.cpp Improves -r reporting when scheduler timing data isn’t available.
library/tests/loop.cpp Switches parallel solve path to SolveAllBoards().
library/src/init.cpp Removes scheduler debug-file init hook from InitDebugFiles().
library/src/BUILD.bazel Propagates DDS_SCHEDULER_DEFINE into core library/testable library targets.

Comment thread library/tests/loop.cpp
Comment thread library/src/BUILD.bazel
tameware and others added 2 commits June 19, 2026 10:34
Zero hands[]/group[] timing fields in Reset() and skip group/per-hand stats unless populated by the GetNumber dispatcher path.

Co-authored-by: Cursor <cursoragent@cursor.com>
…timing.

Add worker_cap to solve_all_boards_n/pbn_n so loop_solve passes options.num_threads_ instead of always using hardware concurrency.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@tameware tameware marked this pull request as ready for review June 19, 2026 16:24
@tameware tameware requested a review from zzcgumn June 19, 2026 16:24
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.

2 participants