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

Trouble installing tiny-cuda-nn #110

Closed
Askejm opened this issue Jun 5, 2022 · 8 comments
Closed

Trouble installing tiny-cuda-nn #110

Askejm opened this issue Jun 5, 2022 · 8 comments

Comments

@Askejm
Copy link

Askejm commented Jun 5, 2022

I'm trying to set up tinycudann for nvdiffrec
Whenever I try running this command in the readme: pip install --global-option="--no-networks" git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch it spits out ERROR: Command errored out with exit status 1
image
I tried building it manually this way
image
but it just fails to build it then spits out the same error.
Tried the command below and get RuntimeError: Error compiling objects for extension
fully_fused_mlp.cu.txt
I also tried to cmake it, no luck
image

Cuda: 11.3
Python 3.9
Windows 10
CMake 3.23.2
Visual Studio 2019 community
Git 2.36.1
image
image

@avinashc27
Copy link

@Askejm , I'm stuck at the same place.. I have installed Visual studio 16.9.4 with Cuda 11.3 as many suggested to resolve the installation issue but it didn't help. Just wanted to check if you got any luck.

@Innolab63
Copy link

Innolab63 commented Jun 16, 2022

I'm exactly in same situation. If anyone has a solution, please don't hesitate to share it.

image

@mexicantexan
Copy link

Sames...

@mexicantexan
Copy link

Okay, I was able to solve it by doing these steps, idk if it will work for you, but oh well

Assumptions:

  • Windows 10
  • Python 3.9

Steps:

  1. Install CUDA Toolkit 11.7 link
  2. Check your environment variables and ensure that the following environment variables are set:
    image
  3. Restart your computer
  4. Install Vulkan SDK (someone mentioned to do this in a linux post) NOTE! Make sure that the Vulkan SDK is in your PATH environment variables: Vulkan SDK Install Instructions
  5. Restart your computer
  6. Now follow the nvdifferec setup instructions

@Askejm
Copy link
Author

Askejm commented Jun 18, 2022

YOOOOO it works!
Thank you so much man, I've wanted to try this AI out so badly

@epicgzs1112
Copy link

ubuntu 22.04 cuda 11.3 failed to install tinycudann extension for torch .
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../dependencies/fmt/src/format.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../dependencies/fmt/src/os.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/common.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/common_device.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/cpp_api.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/cutlass_mlp.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/encoding.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/fully_fused_mlp.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/network.o: No such file or directory
g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/tinycudann/bindings.o: No such file or directory
error: command '/usr/bin/g++' failed with exit code 1

@gnwekge78707
Copy link

ubuntu 22.04 cuda 11.3 failed to install tinycudann extension for torch . g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../dependencies/fmt/src/format.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../dependencies/fmt/src/os.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/common.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/common_device.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/cpp_api.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/cutlass_mlp.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/encoding.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/fully_fused_mlp.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/network.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/tinycudann/bindings.o: No such file or directory error: command '/usr/bin/g++' failed with exit code 1

Same here. Any clues? thanks

@derickdressel
Copy link

ubuntu 22.04 cuda 11.3 failed to install tinycudann extension for torch . g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../dependencies/fmt/src/format.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../dependencies/fmt/src/os.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/common.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/common_device.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/cpp_api.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/cutlass_mlp.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/encoding.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/fully_fused_mlp.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/../../src/network.o: No such file or directory g++: error: /home/lch/Downloads/nvdiffrec-main/tiny-cuda-nn/bindings/torch/build/temp.linux-x86_64-cpython-38/tinycudann/bindings.o: No such file or directory error: command '/usr/bin/g++' failed with exit code 1

Same. I prevented the installer's cleanup process and digging through the temp files it looks like whatever's supposed to build the files isn't executing, but I dunno why.

Install succeeds for me outside of a conda environment, but I need conda for this. :(

Any ideas why conda would prevent .o files from being built?

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

7 participants