Skip to content

Commit

Permalink
Merge pull request #1997 from swahtz/omni_fvdb_update
Browse files Browse the repository at this point in the history
fVDB 0.2.1 update
  • Loading branch information
swahtz authored Jan 22, 2025
2 parents 093a638 + 8145597 commit 06f003e
Show file tree
Hide file tree
Showing 226 changed files with 6,443 additions and 3,840 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nanovdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
--cargs=\'
-DUSE_EXPLICIT_INSTANTIATION=OFF
-DNANOVDB_USE_CUDA=ON
-DCMAKE_CUDA_ARCHITECTURES="80"
-DNANOVDB_USE_OPENVDB=ON
-DCMAKE_INSTALL_PREFIX=`pwd`
-DUSE_BLOSC=OFF
Expand Down Expand Up @@ -127,6 +128,7 @@ jobs:
-DMSVC_COMPRESS_PDB=ON
-DUSE_EXPLICIT_INSTANTIATION=OFF
-DNANOVDB_USE_CUDA=ON
-DCMAKE_CUDA_ARCHITECTURES="80"
-DNANOVDB_USE_OPENVDB=ON
-DVCPKG_TARGET_TRIPLET=${VCPKG_DEFAULT_TRIPLET}
-DCMAKE_TOOLCHAIN_FILE=\"${VCPKG_INSTALLATION_ROOT}\\scripts\\buildsystems\\vcpkg.cmake\"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/build/*
**/src/benchmarks/build/*
.DS_Store
2 changes: 2 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -e

Expand Down
2 changes: 2 additions & 0 deletions ci/build_sonar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/download_houdini.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/download_vdb_caches.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

import os
import sys
Expand Down
2 changes: 2 additions & 0 deletions ci/extract_test_examples.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0
#################################################################################
# This script extracts all code blocks from AX documentation which are NOT #
# marked as cpp/sh/unparsed and attempts to parse or compile them through the #
Expand Down
2 changes: 2 additions & 0 deletions ci/install_blosc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/install_cppunit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex
CURL_VERSION="$1"
Expand Down
2 changes: 2 additions & 0 deletions ci/install_doxygen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/install_glfw.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex
GLFW_VERSION="$1"
Expand Down
2 changes: 2 additions & 0 deletions ci/install_gtest.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/install_llvm_windows.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/install_macos.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -x

Expand Down
2 changes: 2 additions & 0 deletions ci/install_nanobind.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
2 changes: 2 additions & 0 deletions ci/install_tbb_macos.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -x

Expand Down
2 changes: 2 additions & 0 deletions ci/test_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0
set -e

# Various tests to test the FindOpenVDB CMake modules and
Expand Down
2 changes: 2 additions & 0 deletions ci/test_sonar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright Contributors to the OpenVDB Project
# SPDX-License-Identifier: Apache-2.0

set -ex

Expand Down
20 changes: 15 additions & 5 deletions fvdb/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,23 @@ BreakConstructorInitializersBeforeComma: false
BreakInheritanceList: BeforeColon
BreakStringLiterals: false
Cpp11BracedListStyle: false
IncludeBlocks: Preserve
IncludeBlocks: Regroup
IncludeIsMainRegex: "$"
IncludeCategories:
- Regex: '^<.*\.(h|cuh)>'
Priority: 1
- Regex: ".*"
Priority: 2
- Regex: '^"' # quoted includes
Priority: 1
- Regex: '^<(detail/|Types.h|JaggedTensor.h|GridBatch.h|SparseConvPackInfo.h|Config.h|FVDB.h|GaussianSplatting.h)' # fvdb includes
Priority: 1
- Regex: '^<nanovdb/' # nanovdb includes
Priority: 2
- Regex: '^<(torch|c10|THC|ATen)/' # torch includes
Priority: 3
- Regex: '^<(cooperative_groups|cuco|cuda.h|cuda_|device_types|math_constants|nvtx3|cute)' # CUDA includes
Priority: 4
- Regex: '^<.*\..*' # other system includes (e.g. with a '.')
Priority: 5
- Regex: '^<[^.]+' # STL includes (no '.')
Priority: 6
IncludeIsMainSourceRegex: "$"
IndentPPDirectives: None
IndentWrappedFunctionNames: false
Expand Down
6 changes: 3 additions & 3 deletions fvdb/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ permissions:
deployments: write

jobs:

fvdb-build:
if: ${{ !startsWith(github.event.pull_request.title, 'Draft:') }}
name: fVDB Build
runs-on:
- self-hosted
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Buid fvdb
run: |
TORCH_CUDA_ARCH_LIST="8.0;8.6;8.9+PTX" MAX_JOBS=$(($(nproc) < $(free -g | awk '/^Mem:/{jobs=int($7/2.5); if(jobs<1) jobs=1; print jobs}') ? $(nproc) : $(free -g | awk '/^Mem:/{jobs=int($7/2.5); if(jobs<1) jobs=1; print jobs}'))) conda run --no-capture-output -n fvdb_build python setup.py bdist_wheel --dist-dir=dist
TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6+PTX" MAX_JOBS=$(($(nproc) < $(free -g | awk '/^Mem:/{jobs=int($4/2.5); if(jobs<1) jobs=1; print jobs}') ? $(nproc) : $(free -g | awk '/^Mem:/{jobs=int($4/2.5); if(jobs<1) jobs=1; print jobs}'))) conda run --no-capture-output -n fvdb_build python setup.py bdist_wheel --dist-dir=dist
- name: Upload package
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -218,4 +218,4 @@ jobs:
run: |
echo "Cleaning up /__w/_temp directory"
sudo rm -rf /__w/_temp/*
echo "Cleanup completed"
echo "Cleanup completed"
2 changes: 2 additions & 0 deletions fvdb/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/build/*
/src/benchmarks/build/*
/src/tests/build/*
*.creator
*.includes
*.files
Expand Down
2 changes: 1 addition & 1 deletion fvdb/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"${env:CONDA_PREFIX}/envs/fvdb/include",
"${env:CONDA_PREFIX}/envs/fvdb/include/cuda",
"${workspaceFolder}/src",
"${workspaceFolder}/external/openvdb/nanovdb",
"${workspaceFolder}/../nanovdb",
"${workspaceFolder}/external/glm",
"${workspaceFolder}/external/cudnn_fe/include",
"${workspaceFolder}/external/cutlass/include",
Expand Down
3 changes: 2 additions & 1 deletion fvdb/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,5 @@
"json.format.keepLines": true,
"C_Cpp.formatting": "clangFormat",
"C_Cpp.clang_format_path": "${env:CONDA_PREFIX}/envs/fvdb/bin/clang-format-18",
}
"files.insertFinalNewline": true,
}
4 changes: 2 additions & 2 deletions fvdb/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# -- Project information -----------------------------------------------------

project = "fVDB"
copyright = "2023, NVIDIA Corporation"
author = "NVIDIA Corporation"
copyright = "Contributors to the OpenVDB Project"
author = "Contributors to the OpenVDB Project"


# -- General configuration ---------------------------------------------------
Expand Down
20 changes: 8 additions & 12 deletions fvdb/env/build_environment.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
name: fvdb_build
channels:
- pytorch
- nvidia
- conda-forge
- nodefaults
dependencies:
- python=3.10
- pytorch::pytorch=2.4.0
- pytorch::pytorch-cuda=12.1
- pytorch::pytorch-mutex=*=cuda
- python=3.11
- pytorch-gpu=2.4.1[build=cuda120*]
- git
- gitpython
- ca-certificates
- certifi
- openssl
- cuda-toolkit=12.1
- cuda-compiler=12.1
- cuda-nvcc=12.1
- cuda-cccl=12.1
- cuda-libraries-static=12.1
- cuda-cudart-static=12.1
- cuda-version=12.0
- cuda-command-line-tools
- cuda-compiler
- libcusparse-dev
- libcublas-dev
- libcusolver-dev
- gcc_linux-64=11
- gxx_linux-64=11
- cxx-compiler
Expand Down
35 changes: 16 additions & 19 deletions fvdb/env/dev_environment.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
name: fvdb
channels:
- pytorch
- nvidia
- conda-forge
- nodefaults
dependencies:
- python=3.10
- python=3.11
- pytorch-gpu=2.4.1[build=cuda120*]
- jupyterlab
- pytorch::pytorch=2.4.0
- pytorch::pytorch-cuda=12.1
- pytorch::pytorch-mutex=*=cuda
- pytorch::torchvision
- torchvision=0.19
- tensorboard
- pip
- git
- gitpython
- ca-certificates
- certifi
- openssl
- cuda-toolkit=12.1
- cuda-compiler=12.1
- cuda-nvcc=12.1
- cuda-cccl=12.1
- cuda-libraries-static=12.1
- cuda-cudart-static=12.1
- cuda-version=12.0
- cuda-command-line-tools
- cuda-compiler
- libcusparse-dev
- libcublas-dev
- libcusolver-dev
- libcurand-dev
- gcc_linux-64=11
- gxx_linux-64=11
Expand All @@ -40,27 +36,28 @@ dependencies:
- numpy<2
- tqdm
- sparsehash
- pyg::pytorch-scatter=2.1.2
- pandas
- pytest-benchmark
- polyscope
- pyrender
- rich
- parameterized
- ipython
- py-openimageio
- matplotlib
## 3dgs
- imageio
- torchmetrics
- py-opencv
- fastai::opencv-python-headless
- tyro
- pillow
- pyyaml
- scikit-learn
- pip:
- point-cloud-utils
- https://nksr.s3.ap-northeast-1.amazonaws.com/dev-whls/pt24cu121/torchsparse_20-2.0.0b0-cp310-cp310-linux_x86_64.whl
- https://nksr.s3.ap-northeast-1.amazonaws.com/dev-whls/pt24cu121/torchsparse-2.1.0-cp310-cp310-linux_x86_64.whl
- https://nksr.s3.ap-northeast-1.amazonaws.com/dev-whls/pt24cu120/torchsparse-2.1.0-cp311-cp311-linux_x86_64.whl
- https://nksr.s3.ap-northeast-1.amazonaws.com/dev-whls/pt24cu120/torchsparse_20-2.0.0b0-cp311-cp311-linux_x86_64.whl
- https://nksr.s3.ap-northeast-1.amazonaws.com/dev-whls/pt24cu120/torch_scatter-2.1.2-cp311-cp311-linux_x86_64.whl
## 3dgs
- viser
- viser
## 3dgs tests
- oiio-static-python
17 changes: 7 additions & 10 deletions fvdb/env/learn_environment.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: fvdb_learn
channels:
- pytorch
- nvidia
- conda-forge
- nodefaults
dependencies:
- python=3.10
- python=3.11
- pytorch-gpu=2.4.1[build=cuda120*]
- cuda-version=12.0
- jupyterlab
- pytorch::pytorch=2.4.0
- pytorch::pytorch-cuda=12.1
- pytorch::pytorch-mutex=*=cuda
- pytorch::torchvision
- torchvision
- tensorboard
- pip
- git
Expand All @@ -23,7 +20,6 @@ dependencies:
- matplotlib
- tqdm
- sparsehash
- pyg::pytorch-scatter=2.1.2
- pandas
- pytest-benchmark
- polyscope
Expand All @@ -33,12 +29,13 @@ dependencies:
## 3dgs
- imageio
- torchmetrics
- py-opencv
- fastai::opencv-python-headless
- tyro
- pillow
- pyyaml
- scikit-learn
- pip:
- point-cloud-utils
## 3dgs
- viser
- viser
- https://nksr.s3.ap-northeast-1.amazonaws.com/dev-whls/pt24cu120/torch_scatter-2.1.2-cp311-cp311-linux_x86_64.whl
Loading

0 comments on commit 06f003e

Please sign in to comment.