Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA build fix #9482

Merged
merged 1 commit into from
Jul 25, 2021
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
1 change: 1 addition & 0 deletions src/cuda/rscuda_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <stdexcept>
#include <memory>
#include <cassert>

// CUDA headers
#include <cuda_runtime.h>
Expand Down
4 changes: 2 additions & 2 deletions src/proc/cuda/cuda-pointcloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ namespace librealsense
const float3 * pointcloud_cuda::depth_to_points(
rs2::points output,
const rs2_intrinsics &depth_intrinsics,
const rs2::depth_frame& depth_frame,
float depth_scale)
const rs2::depth_frame& depth_frame)
{
auto image = output.get_vertices();
auto depth_data = (uint16_t*)depth_frame.get_data();
auto depth_scale = depth_frame.get_units();
#ifdef RS2_USE_CUDA
rscuda::deproject_depth_cuda((float*)image, depth_intrinsics, depth_data, depth_scale);
#endif
Expand Down
3 changes: 1 addition & 2 deletions src/proc/cuda/cuda-pointcloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace librealsense
const float3 * depth_to_points(
rs2::points output,
const rs2_intrinsics &depth_intrinsics,
const rs2::depth_frame& depth_frame,
float depth_scale) override;
const rs2::depth_frame& depth_frame) override;
};
}