Skip to content

Commit c9906f4

Browse files
sifakisclaude
andcommitted
ex_voxelBlockManager_host_cuda: add host/CUDA VBM example
Adds the ex_voxelBlockManager_host_cuda example demonstrating the CPU and CUDA VoxelBlockManager implementations, along with design documentation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Efty Sifakis <esifakis@nvidia.com>
1 parent 816901a commit c9906f4

6 files changed

Lines changed: 2378 additions & 0 deletions

File tree

nanovdb/nanovdb/examples/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ nanovdb_example(NAME "ex_merge_nanovdb_cuda" OPENVDB)
114114
nanovdb_example(NAME "ex_refine_nanovdb_cuda" OPENVDB)
115115
nanovdb_example(NAME "ex_coarsen_nanovdb_cuda" OPENVDB)
116116

117+
nanovdb_example(NAME "ex_voxelBlockManager_host_cuda")
118+
if(TARGET ex_voxelBlockManager_host_cuda)
119+
target_compile_options(ex_voxelBlockManager_host_cuda PRIVATE
120+
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-mavx2,-fopenmp-simd>
121+
$<$<COMPILE_LANGUAGE:CXX>:-mavx2 -fopenmp-simd>)
122+
endif()
123+
117124
if(CUDAToolkit_FOUND)
118125
nanovdb_example(NAME "ex_make_mgpu_nanovdb") # requires cuRAND
119126
target_link_libraries(ex_make_mgpu_nanovdb PRIVATE CUDA::curand)

0 commit comments

Comments
 (0)