Skip to content

Build speedups, added trace and optional pip forced install#443

Merged
blackencino merged 6 commits into
openvdb:mainfrom
blackencino:feature/build-script-path-changes
Feb 4, 2026
Merged

Build speedups, added trace and optional pip forced install#443
blackencino merged 6 commits into
openvdb:mainfrom
blackencino:feature/build-script-path-changes

Conversation

@blackencino

@blackencino blackencino commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR modifies the build script to improve rebuild times and address reviewer feedback.

Path sanitization for virtualized environments:

  • Filters slow host filesystem mounts from PATH during CMake configuration to prevent 1-2 minute stalls
  • Detects and handles multiple virtualization platforms:
    • WSL/WSL2 (/mnt/* paths via 9P protocol)
    • VirtualBox (/media/sf_* paths via vboxsf)
    • VMware (/mnt/hgfs/* paths via vmhgfs-fuse)
  • Uses generic "virtualized environment" terminology rather than platform-specific references, since these platforms are not formally supported

Build behavior improvements:

  • Always use --force-reinstall for the install target to ensure freshly built packages are installed even when the version number matches. The --no-deps flag ensures this only affects fvdb-core itself, not dependencies like torch.
  • Removed the clean flag (now redundant since --force-reinstall is always used)
  • Only set CUDA_HOME automatically in Conda environments; in venv environments, leave it unset to avoid version mismatches with PyTorch's rpathed CUDA libraries

New option:

  • Added a trace option for CMake debugging (very verbose). Can be combined with other options:
    ./build.sh install trace verbose gtests

…ssors

Signed-off-by: Christopher Horvath <chorvath@nvidia.com>
@blackencino blackencino self-assigned this Feb 4, 2026
@blackencino blackencino requested a review from a team as a code owner February 4, 2026 19:50
Signed-off-by: Christopher Horvath <chorvath@nvidia.com>
Comment thread build.sh Outdated
Comment thread build.sh Outdated
Signed-off-by: Christopher Horvath <chorvath@nvidia.com>
@harrism harrism requested review from Copilot and removed request for fwilliams and harrism February 4, 2026 20:21
Signed-off-by: Christopher Horvath <chorvath@nvidia.com>
Signed-off-by: Christopher Horvath <chorvath@nvidia.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the build.sh script to reduce rebuild stalls in WSL-like environments and to add additional build-script modifiers for debugging and reinstall behavior.

Changes:

  • Add optional PATH sanitization (filtering /mnt/*) when a WSL-like environment is detected, and run pip/cmake via a wrapper.
  • Add a trace modifier to enable verbose CMake trace output.
  • Add a clean modifier that toggles whether pip install uses --force-reinstall, and add CUDA discovery hints via CUDA_HOME/CMake defines.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build.sh
Comment thread build.sh Outdated
Comment thread build.sh
Comment thread build.sh
Comment thread build.sh
Signed-off-by: Christopher Horvath <chorvath@nvidia.com>
@blackencino

Copy link
Copy Markdown
Contributor Author

I addressed all of @matthewdcong , @harrism , and Copilot's change requests. All fixed.

@blackencino blackencino enabled auto-merge (squash) February 4, 2026 21:24
@blackencino blackencino merged commit 71eb07f into openvdb:main Feb 4, 2026
32 checks passed
@blackencino blackencino deleted the feature/build-script-path-changes branch February 4, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants