Skip to content

Commit

Permalink
Fix FLT_MAX is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusBraun committed Jan 8, 2025
1 parent 6ba6703 commit f4164e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeModules/max_cuda_gcc_version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
function(max_cuda_gcc_version _CUDA_VERSION _MAX_GCC_VERSION)

if(${_CUDA_VERSION} VERSION_GREATER_EQUAL 12.4.0)
set(${_MAX_GCC_VERSION} 13.2 PARENT_SCOPE)
set(${_MAX_GCC_VERSION} 13 PARENT_SCOPE)
elseif(${_CUDA_VERSION} VERSION_GREATER_EQUAL 12.1.0)
set(${_MAX_GCC_VERSION} 12.2 PARENT_SCOPE)
set(${_MAX_GCC_VERSION} 12 PARENT_SCOPE)
elseif(${_CUDA_VERSION} VERSION_GREATER_EQUAL 12.0.0)
set(${_MAX_GCC_VERSION} 12.1 PARENT_SCOPE)
set(${_MAX_GCC_VERSION} 12 PARENT_SCOPE)
elseif(${_CUDA_VERSION} VERSION_GREATER_EQUAL 11.4.1) # 11.4.1+, 11.5 -> 11
set(${_MAX_GCC_VERSION} 11 PARENT_SCOPE)
elseif(${_CUDA_VERSION} VERSION_GREATER_EQUAL 11.1) # 11.1, 11.2, 11.3, 11.4.0 -> 10
Expand All @@ -56,4 +56,4 @@ elseif(${_CUDA_VERSION} VERSION_GREATER 3) # 4.0 -> 4.4
set(${_MAX_GCC_VERSION} 4.4 PARENT_SCOPE)
endif()

endfunction()
endfunction()
1 change: 1 addition & 0 deletions src/liblvr2/reconstruction/cuda/LBVHIndex.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <nvrtc.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <float.h>

#include "lvr2/reconstruction/cuda/lbvh/GPUErrorCheck.h"

Expand Down

0 comments on commit f4164e3

Please sign in to comment.