Skip to content

Commit

Permalink
Fix ListInteractions SYCL kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
lumurillo committed Oct 25, 2024
1 parent 487596f commit 975e7f0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cpp/open3d/t/geometry/RaycastingScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,15 +703,11 @@ struct RaycastingScene::SYCLImpl : public RaycastingScene::Impl {
}

// Copy the initialized data to the device
queue_.memcpy(host_previous_geom_prim_ID_tfar.get(),
previous_geom_prim_ID_tfar,
queue_.memcpy(previous_geom_prim_ID_tfar,
host_previous_geom_prim_ID_tfar.get(),
num_rays * sizeof(callbacks::GeomPrimID))
.wait();

// cumsum
int* cumsum_ = sycl::malloc_device<int>(num_rays, queue_);
queue_.memcpy(cumsum, cumsum_, num_rays * sizeof(int)).wait();

auto scene = this->scene_;
queue_.submit([=](sycl::handler& cgh) {
cgh.parallel_for(
Expand All @@ -726,7 +722,7 @@ struct RaycastingScene::SYCLImpl : public RaycastingScene::Impl {
context.primitive_ids = primitive_ids;
context.primitive_uvs = primitive_uvs;
context.t_hit = t_hit;
context.cumsum = cumsum_;
context.cumsum = cumsum;
context.track_intersections = track_intersections;

RTCIntersectArguments args;
Expand Down Expand Up @@ -759,7 +755,6 @@ struct RaycastingScene::SYCLImpl : public RaycastingScene::Impl {

// Free the allocated memory
sycl::free(previous_geom_prim_ID_tfar, queue_);
sycl::free(cumsum_, queue_);
}

void ComputeClosestPoints(const float* const query_points,
Expand Down

0 comments on commit 975e7f0

Please sign in to comment.