Skip to content

Commit

Permalink
CUDA updates for the common track finding changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
krasznaa committed Jan 7, 2025
1 parent 63dd4e5 commit febca64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions device/cuda/src/finding/finding_algorithm.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** TRACCC library, part of the ACTS project (R&D line)
*
* (c) 2023-2024 CERN for the benefit of the ACTS project
* (c) 2023-2025 CERN for the benefit of the ACTS project
*
* Mozilla Public License Version 2.0
*/
Expand Down Expand Up @@ -189,8 +189,8 @@ finding_algorithm<stepper_t, navigator_t>::operator()(

kernels::apply_interaction<std::decay_t<detector_type>>
<<<nBlocks, nThreads, 0, stream>>>(
m_cfg, {det_view, static_cast<int>(n_in_params),
in_params_buffer, param_liveness_buffer});
m_cfg, {det_view, n_in_params, in_params_buffer,
param_liveness_buffer});
TRACCC_CUDA_ERROR_CHECK(cudaGetLastError());
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** TRACCC library, part of the ACTS project (R&D line)
*
* (c) 2023-2024 CERN for the benefit of the ACTS project
* (c) 2023-2025 CERN for the benefit of the ACTS project
*
* Mozilla Public License Version 2.0
*/
Expand Down Expand Up @@ -29,8 +29,7 @@ __global__ void find_tracks(const finding_config cfg,
cuda::barrier barrier;
cuda::thread_id1 thread_id;

device::find_tracks<cuda::thread_id1, cuda::barrier, detector_t,
finding_config>(
device::find_tracks<detector_t>(
thread_id, barrier, cfg, payload,
{shared_num_candidates, shared_candidates, shared_candidates_size});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** TRACCC library, part of the ACTS project (R&D line)
*
* (c) 2023-2024 CERN for the benefit of the ACTS project
* (c) 2023-2025 CERN for the benefit of the ACTS project
*
* Mozilla Public License Version 2.0
*/
Expand All @@ -18,10 +18,8 @@ __global__ void propagate_to_next_surface(
const finding_config cfg,
device::propagate_to_next_surface_payload<propagator_t, bfield_t> payload) {

int gid = threadIdx.x + blockIdx.x * blockDim.x;

device::propagate_to_next_surface<propagator_t, bfield_t, finding_config>(
gid, cfg, payload);
device::propagate_to_next_surface<propagator_t, bfield_t>(
threadIdx.x + blockIdx.x * blockDim.x, cfg, payload);
}

} // namespace traccc::cuda::kernels

0 comments on commit febca64

Please sign in to comment.