Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD] Fail to install fVDB into ubuntu 22.04 with anaconda environment #1949

Open
stratonlive opened this issue Oct 27, 2024 · 0 comments
Open

Comments

@stratonlive
Copy link

Environment

Operating System: Ubuntu 22.04
Version / Commit SHA: feature/fVDB
CMake Version: 3.22.1
Compiler: gcc 11.4.0

Describe the problem

When I try to run python setup.py develop or pip install . to install fvdb it always return error in cpp_extension.py which is used in setup.py line 299

To Reproduce

Steps to reproduce the behavior:

  1. Checkout repo https://github.com/AcademySoftwareFoundation/openvdb/blob/feature/fvdb/fvdb/README.md#setting-up-a-conda-environment
  2. See error

Traceback (most recent call last):
File "/home/ubuntu/Downloads/openvdb-feature-fvdb/fvdb/setup.py", line 299, in
lib_ext = cpp_extension.CUDAExtension(
File "/opt/conda/envs/fvdb_learn/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1076, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/opt/conda/envs/fvdb_learn/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1207, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/opt/conda/envs/fvdb_learn/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2416, in _join_cuda_home
raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

  1. However I already make CUDA_HOME environment into /usr/local/cuda-12.1 as shown in Screen shot.

Additional context

Screen shot of error is below

fvdb build error

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

No branches or pull requests

1 participant