diff --git a/device/cuda/CMakeLists.txt b/device/cuda/CMakeLists.txt index a8f29762c6..d29e2e9c3d 100644 --- a/device/cuda/CMakeLists.txt +++ b/device/cuda/CMakeLists.txt @@ -43,12 +43,12 @@ traccc_add_library( traccc_cuda cuda TYPE SHARED "src/cca/component_connection.cu" # Clusterization "include/traccc/cuda/clusterization/experimental/clusterization_algorithm.hpp" - "src/clusterization/experimental/clusterization_algorithm.cu" + "src/clusterization/experimental/clusterization_algorithm_exp.cu" "include/traccc/cuda/clusterization/clusterization_algorithm.hpp" "src/clusterization/clusterization_algorithm.cu" # Finding "include/traccc/cuda/finding/finding_algorithm.hpp" - "src/finding/finding_algorithm.cu" + "src/finding/finding_algorithm.cu" # Fitting "include/traccc/cuda/fitting/fitting_algorithm.hpp" "src/fitting/fitting_algorithm.cu") diff --git a/device/cuda/src/clusterization/clusterization_algorithm.cu b/device/cuda/src/clusterization/clusterization_algorithm.cu index fe0c01d8e9..eec6ec8c22 100644 --- a/device/cuda/src/clusterization/clusterization_algorithm.cu +++ b/device/cuda/src/clusterization/clusterization_algorithm.cu @@ -1,6 +1,6 @@ /** TRACCC library, part of the ACTS project (R&D line) * - * (c) 2022 CERN for the benefit of the ACTS project + * (c) 2022-2023 CERN for the benefit of the ACTS project * * Mozilla Public License Version 2.0 */ @@ -23,17 +23,19 @@ // System include(s). #include -namespace traccc::cuda { - namespace { + /// These indices in clusterization will only range from 0 to /// max_cells_per_partition, so we only need a short. using index_t = unsigned short; static constexpr int TARGET_CELLS_PER_THREAD = 8; static constexpr int MAX_CELLS_PER_THREAD = 12; + } // namespace +namespace traccc::cuda { + namespace kernels { /// CUDA kernel for running @c traccc::device::ccl_kernel @@ -162,4 +164,4 @@ clusterization_algorithm::output_type clusterization_algorithm::operator()( return {std::move(spacepoints_buffer), std::move(cell_links)}; } -} // namespace traccc::cuda \ No newline at end of file +} // namespace traccc::cuda diff --git a/device/cuda/src/clusterization/experimental/clusterization_algorithm.cu b/device/cuda/src/clusterization/experimental/clusterization_algorithm_exp.cu similarity index 99% rename from device/cuda/src/clusterization/experimental/clusterization_algorithm.cu rename to device/cuda/src/clusterization/experimental/clusterization_algorithm_exp.cu index ce1e635f56..7d5583ff11 100644 --- a/device/cuda/src/clusterization/experimental/clusterization_algorithm.cu +++ b/device/cuda/src/clusterization/experimental/clusterization_algorithm_exp.cu @@ -23,17 +23,19 @@ #include #include -namespace traccc::cuda::experimental { - namespace { + /// These indices in clusterization will only range from 0 to /// max_cells_per_partition, so we only need a short. using index_t = unsigned short; static constexpr int TARGET_CELLS_PER_THREAD = 8; static constexpr int MAX_CELLS_PER_THREAD = 12; + } // namespace +namespace traccc::cuda::experimental { + namespace kernels { /// CUDA kernel for running @c traccc::device::ccl_kernel diff --git a/tests/cuda/test_clusterization.cpp b/tests/cuda/test_clusterization.cpp index cf4425acb8..4ce7117eff 100644 --- a/tests/cuda/test_clusterization.cpp +++ b/tests/cuda/test_clusterization.cpp @@ -48,8 +48,8 @@ TEST(clusterization, cuda) { modules.push_back({}); // Run Clusterization - cuda::experimental::clusterization_algorithm ca_cuda(mr, copy, stream, - 1024); + traccc::cuda::experimental::clusterization_algorithm ca_cuda(mr, copy, + stream, 1024); auto measurements_buffer = ca_cuda(vecmem::get_data(cells), vecmem::get_data(modules)); diff --git a/tests/cuda/test_spacepoint_formation.cpp b/tests/cuda/test_spacepoint_formation.cpp index 9248ef6913..bccfbbcca4 100644 --- a/tests/cuda/test_spacepoint_formation.cpp +++ b/tests/cuda/test_spacepoint_formation.cpp @@ -72,8 +72,8 @@ TEST(spacepoint_formation, cuda) { measurements.push_back({{10.f, 15.f}, {0.f, 0.f}, surfaces[8u].barcode()}); // Run spacepoint formation - cuda::experimental::spacepoint_formation sp_formation( - mr, copy, stream); + traccc::cuda::experimental::spacepoint_formation + sp_formation(mr, copy, stream); auto spacepoints_buffer = sp_formation(detray::get_data(det), vecmem::get_data(measurements));