|
30 | 30 | #include <vecmem/memory/cuda/host_memory_resource.hpp>
|
31 | 31 | #include <vecmem/memory/host_memory_resource.hpp>
|
32 | 32 | #include <vecmem/utils/cuda/async_copy.hpp>
|
33 |
| -#include <vecmem/utils/cuda/copy.hpp> |
34 | 33 |
|
35 | 34 | // System include(s).
|
36 | 35 | #include <exception>
|
@@ -72,13 +71,12 @@ int seq_run(const traccc::full_tracking_input_config& i_cfg,
|
72 | 71 |
|
73 | 72 | traccc::cuda::stream stream;
|
74 | 73 |
|
75 |
| - vecmem::cuda::copy copy; |
76 |
| - vecmem::cuda::async_copy async_copy{stream.cudaStream()}; |
| 74 | + vecmem::cuda::async_copy copy{stream.cudaStream()}; |
77 | 75 |
|
78 | 76 | traccc::cuda::clusterization_algorithm ca_cuda(
|
79 |
| - mr, async_copy, stream, common_opts.target_cells_per_partition); |
80 |
| - traccc::cuda::seeding_algorithm sa_cuda(mr, async_copy, stream); |
81 |
| - traccc::cuda::track_params_estimation tp_cuda(mr, async_copy, stream); |
| 77 | + mr, copy, stream, common_opts.target_cells_per_partition); |
| 78 | + traccc::cuda::seeding_algorithm sa_cuda(mr, copy, stream); |
| 79 | + traccc::cuda::track_params_estimation tp_cuda(mr, copy, stream); |
82 | 80 |
|
83 | 81 | // performance writer
|
84 | 82 | traccc::seeding_performance_writer sd_performance_writer(
|
@@ -220,9 +218,9 @@ int seq_run(const traccc::full_tracking_input_config& i_cfg,
|
220 | 218 | traccc::seed_collection_types::host seeds_cuda;
|
221 | 219 | traccc::bound_track_parameters_collection_types::host params_cuda;
|
222 | 220 | if (run_cpu || i_cfg.check_performance) {
|
223 |
| - copy(spacepoints_cuda_buffer, spacepoints_per_event_cuda); |
224 |
| - copy(seeds_cuda_buffer, seeds_cuda); |
225 |
| - copy(params_cuda_buffer, params_cuda); |
| 221 | + copy(spacepoints_cuda_buffer, spacepoints_per_event_cuda)->wait(); |
| 222 | + copy(seeds_cuda_buffer, seeds_cuda)->wait(); |
| 223 | + copy(params_cuda_buffer, params_cuda)->wait(); |
226 | 224 | }
|
227 | 225 |
|
228 | 226 | if (run_cpu) {
|
|
0 commit comments