From 205aac927651c870030939889a3370d12bb0d7f4 Mon Sep 17 00:00:00 2001 From: Lucas Colas <51634013+LucasColas@users.noreply.github.com> Date: Fri, 24 Oct 2025 11:30:34 -0400 Subject: [PATCH 1/2] Add cfloat include for floating-point constants --- include/cudaKDTree/cukd/spatial-kdtree.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cudaKDTree/cukd/spatial-kdtree.h b/include/cudaKDTree/cukd/spatial-kdtree.h index 03d56e2d..06e53cc3 100644 --- a/include/cudaKDTree/cukd/spatial-kdtree.h +++ b/include/cudaKDTree/cukd/spatial-kdtree.h @@ -20,6 +20,7 @@ #include #include #include +#include namespace cukd { From 5f75b624dca8df2f25771ef7821f977e6b1539d8 Mon Sep 17 00:00:00 2001 From: Lucas Colas <51634013+LucasColas@users.noreply.github.com> Date: Fri, 24 Oct 2025 11:31:32 -0400 Subject: [PATCH 2/2] include thrust to avoid missing functions --- src/TurboDWG.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TurboDWG.cu b/src/TurboDWG.cu index 640a3fe3..d92b0962 100644 --- a/src/TurboDWG.cu +++ b/src/TurboDWG.cu @@ -1,5 +1,5 @@ # include "TurboDWG.h" - +#include #define gpuErrchk(ans) { gpuAssert((ans), #ans, __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char* command, const char* file, int line, bool abort = true) { @@ -1006,4 +1006,4 @@ void TurboDWG::OutlierFilter(float* As, float threshold, int point_num) AsFiltertoZero << < blocksPerGrid, threadsPerBlock >> > (As, raw_indices, threshold_max_index); cudaDeviceSynchronize(); -} \ No newline at end of file +}