Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/options/include/traccc/options/throughput.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class throughput : public interface {
std::size_t cold_run_events = 10;

/// Enable or disable the randomization of event processing
bool deterministic_event_order = false;
bool deterministic_event_order = true;
Comment thread
krasznaa marked this conversation as resolved.
/// Set the random event processing seed
unsigned int random_seed = 0;

Expand Down
2 changes: 1 addition & 1 deletion examples/options/src/throughput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ throughput::throughput() : interface("Throughput Measurement Options") {
po::value(&cold_run_events)->default_value(cold_run_events),
"Number of events to run 'cold'");
m_desc.add_options()("deterministic",
po::bool_switch(&deterministic_event_order)
po::value<bool>(&deterministic_event_order)
->default_value(deterministic_event_order),
"Process events in deterministic order");
m_desc.add_options()("random-seed",
Expand Down
8 changes: 7 additions & 1 deletion extras/benchmark/traccc_bench_tools/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


DETERMINISTIC_ORDER_COMMIT = "7e7f17ccd2e2b0db8971655773b351a365ee1cfc"
DETERMINISTIC_DEFAULT_COMMIT = "80e34dc2195fc3897f1d7d97a71c0701edaa6aa1"
BOOLEAN_FLAG_COMMIT = "380fc78ba63a79ed5c8f19d01d57636aa31cf4fd"
INHOMOGENEOUS_BFIELD_COMMIT = "3654a64d5fe06509e6bf8be332f5aae7b8ff2da9"

Expand Down Expand Up @@ -44,7 +45,12 @@ def run_profile(
if ncu_wrapper is not None:
profile_args = ncu_wrapper.split() + profile_args

if git.is_parent_of(commit, DETERMINISTIC_ORDER_COMMIT):
if git.is_parent_of(commit, DETERMINISTIC_DEFAULT_COMMIT):
log.info(
"Commit is a child of (or is) %s; deterministic processing is default",
DETERMINISTIC_DEFAULT_COMMIT[:8],
)
elif git.is_parent_of(commit, DETERMINISTIC_ORDER_COMMIT):
log.info(
"Commit is a child of (or is) %s; enabling deterministic processing",
DETERMINISTIC_ORDER_COMMIT[:8],
Expand Down
Loading