diff --git a/examples/alien_reco.cpp b/examples/alien_reco.cpp index 4d76f64..77893ee 100644 --- a/examples/alien_reco.cpp +++ b/examples/alien_reco.cpp @@ -124,12 +124,12 @@ subtool::Task> seeding(DeviceBuffer clusters, log(self) << "Found " << nSeeds << " seeds" << std::endl; - // Allocate clusters of appropiate size on device + // Allocate seeds of appropiate size on device int* d_seeds = nullptr; ERROR_CHECK_CUDA(cudaMallocAsync(reinterpret_cast(&d_seeds), nSeeds * sizeof(int), stream)); - // Write some dummy data to the clusters buffer to simulate work + // Write some dummy data to the seeds buffer to simulate work ERROR_CHECK_CUDA(cudaMemsetAsync(d_seeds, 0, nSeeds * sizeof(int), stream)); ERROR_CHECK_CUDA( cudaMemsetAsync(d_seeds, 1, nSeeds / 2 * sizeof(int), stream)); @@ -182,7 +182,7 @@ int main() { log() << "main Starting" << std::endl; - tbb::task_arena task_arena{2}; + tbb::task_arena task_arena{2, 0}; auto scheduler = [&task_arena](std::coroutine_handle<> handle) { task_arena.enqueue([handle]() { handle.resume(); }); diff --git a/examples/capy_reco.cpp b/examples/capy_reco.cpp index 9146fa8..1ef00e1 100644 --- a/examples/capy_reco.cpp +++ b/examples/capy_reco.cpp @@ -101,12 +101,12 @@ boost::capy::task> seeding(DeviceBuffer clusters, log(self) << "Found " << nSeeds << " seeds" << std::endl; - // Allocate clusters of appropiate size on device + // Allocate seeds of appropiate size on device int* d_seeds = nullptr; ERROR_CHECK_CUDA(cudaMallocAsync(reinterpret_cast(&d_seeds), nSeeds * sizeof(int), stream)); - // Write some dummy data to the clusters buffer to simulate work + // Write some dummy data to the seeds buffer to simulate work ERROR_CHECK_CUDA(cudaMemsetAsync(d_seeds, 0, nSeeds * sizeof(int), stream)); ERROR_CHECK_CUDA( cudaMemsetAsync(d_seeds, 1, nSeeds / 2 * sizeof(int), stream)); @@ -159,7 +159,7 @@ int main() { log() << "main Starting" << std::endl; - auto task_arena = tbb::task_arena{2}; + auto task_arena = tbb::task_arena{2, 0}; auto context = TaskArenaContext(task_arena); auto executor = TaskArenaExecutor(context); diff --git a/examples/exec_reco.cpp b/examples/exec_reco.cpp index e1847eb..bd4eb9a 100644 --- a/examples/exec_reco.cpp +++ b/examples/exec_reco.cpp @@ -100,12 +100,12 @@ exec::task> seeding(DeviceBuffer clusters, log(self) << "Found " << nSeeds << " seeds" << std::endl; - // Allocate clusters of appropiate size on device + // Allocate seeds of appropiate size on device int* d_seeds = nullptr; ERROR_CHECK_CUDA(cudaMallocAsync(reinterpret_cast(&d_seeds), nSeeds * sizeof(int), stream)); - // Write some dummy data to the clusters buffer to simulate work + // Write some dummy data to the seeds buffer to simulate work ERROR_CHECK_CUDA(cudaMemsetAsync(d_seeds, 0, nSeeds * sizeof(int), stream)); ERROR_CHECK_CUDA( cudaMemsetAsync(d_seeds, 1, nSeeds / 2 * sizeof(int), stream)); @@ -158,7 +158,7 @@ int main() { log() << "main Starting" << std::endl; - tbb::task_arena task_arena{2}; + tbb::task_arena task_arena{2, 0}; execution::scheduler auto scheduler = get_scheduler(task_arena, false); {