Skip to content

Commit

Permalink
Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Nov 20, 2023
1 parent 911e6e5 commit 3e8c16c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/include/traccc/finding/finding_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct finding_config {

/// GPU-specific parameter for the number of measurements to be
/// iterated per thread
unsigned int n_measurements_per_thread = 2;
unsigned int n_measurements_per_thread = 32;
};

} // namespace traccc
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ TRACCC_DEVICE inline void find_tracks(
const unsigned int in_param_id =
std::distance(n_measurements_prefix_sum.begin(), lo1);

unsigned int offset = 0;
const unsigned int offset =
lo1 == n_measurements_prefix_sum.begin() ? idx : idx - *(lo1 - 1);
/*
if (lo1 == n_measurements_prefix_sum.begin()) {
offset = idx;
} else {
offset = idx - *(lo1 - 1);
}
*/
// const unsigned int offset = idx - *(lo1 - 1);

const unsigned int meas_idx = ref_meas_idx.at(in_param_id) + offset;
Expand All @@ -104,7 +107,7 @@ TRACCC_DEVICE inline void find_tracks(
*(lo1 - 1));
*/
bound_track_parameters in_par = in_params.at(in_param_id);
const auto meas = measurements.at(meas_idx);
const auto& meas = measurements.at(meas_idx);
track_state<typename detector_t::transform3> trk_state(meas);

// Get Surface
Expand Down
3 changes: 2 additions & 1 deletion device/cuda/src/finding/finding_algorithm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ finding_algorithm<stepper_t, navigator_t>::operator()(
upper_bounds.begin(), measurement_sort_comp());

// Get lower bounds of unique elements
/*
vecmem::data::vector_buffer<unsigned int> lower_bounds_buffer{n_modules,
m_mr.main};
vecmem::device_vector<unsigned int> lower_bounds(lower_bounds_buffer);
Expand All @@ -275,7 +276,7 @@ finding_algorithm<stepper_t, navigator_t>::operator()(
measurements_device.begin(), measurements_device.end(),
uniques.begin(), uniques.begin() + n_modules,
lower_bounds.begin(), measurement_sort_comp());

*/
// Get the number of measurements of each module
vecmem::data::vector_buffer<unsigned int> sizes_buffer{n_modules,
m_mr.main};
Expand Down

0 comments on commit 3e8c16c

Please sign in to comment.