Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/alien_reco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ subtool::Task<DeviceBuffer<int>> seeding(DeviceBuffer<int> 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<void**>(&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));
Expand Down Expand Up @@ -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(); });
Expand Down
6 changes: 3 additions & 3 deletions examples/capy_reco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ boost::capy::task<DeviceBuffer<int>> seeding(DeviceBuffer<int> 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<void**>(&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));
Expand Down Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions examples/exec_reco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ exec::task<DeviceBuffer<int>> seeding(DeviceBuffer<int> 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<void**>(&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));
Expand Down Expand Up @@ -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);

{
Expand Down