Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clustering config fix #801

Merged
merged 3 commits into from
Dec 10, 2024
Merged
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
8 changes: 4 additions & 4 deletions core/include/traccc/clusterization/clustering_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct clustering_config {
* set this too low (which will reduce occupancy due to available thread
* slots) or too high (which may not be supported on a device).
*/
unsigned int threads_per_partition;
unsigned int threads_per_partition{256};

/**
* @brief The maximum number of cells per thread.
Expand All @@ -34,7 +34,7 @@ struct clustering_config {
* occupancy. If this is too low, scratch space will need to be used which
* may slow the algorithm down.
*/
unsigned int max_cells_per_thread;
unsigned int max_cells_per_thread{16};

/**
* @brief The desired number of cells per thread.
Expand All @@ -43,7 +43,7 @@ struct clustering_config {
* Decreasing this may decrease occupancy. Increasing this increases the
* probability that scratch space will need to be used.
*/
unsigned int target_cells_per_thread;
unsigned int target_cells_per_thread{8};

/**
* @brief The upscaling factor for the scratch space.
Expand All @@ -52,7 +52,7 @@ struct clustering_config {
* of times larger than the maximum partition size determined by
* `threads_per_partition` and `max_cells_per_thread`
*/
unsigned int backup_size_multiplier;
unsigned int backup_size_multiplier{256};

/**
* @brief The maximum number of cells per partition.
Expand Down
Loading