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

Unable to run app.py showing ninja error #61

Open
sumanttyagi opened this issue May 3, 2024 · 1 comment
Open

Unable to run app.py showing ninja error #61

sumanttyagi opened this issue May 3, 2024 · 1 comment

Comments

@sumanttyagi
Copy link

Please check the following error comes when try to run through command line in linux system

python run.py                                      configs/instant-mesh-large.yaml examples/hatsune_miku.png --save_video                                               Seed set to 42
Loading diffusion model ...
Downloading model_index.json: 100%|████████| 2.63k/2.63k [00:00<00:00, 15.5MB/s]
Downloading (…)rocessor_config.json: 100%|█████| 466/466 [00:00<00:00, 4.02MB/s]
Downloading (…)rocessor_config.json: 100%|█████| 369/369 [00:00<00:00, 3.26MB/s]
Downloading (…)_encoder/config.json: 100%|█████| 708/708 [00:00<00:00, 8.03MB/s]
Downloading (…)cial_tokens_map.json: 100%|█████| 460/460 [00:00<00:00, 3.95MB/s]
Downloading (…)cheduler_config.json: 100%|█████| 391/391 [00:00<00:00, 3.72MB/s]
Downloading (…)okenizer_config.json: 100%|█████| 855/855 [00:00<00:00, 9.72MB/s]
Downloading unet/config.json: 100%|████████| 1.96k/1.96k [00:00<00:00, 23.5MB/s]
Downloading tokenizer/merges.txt: 100%|███████| 525k/525k [00:00<00:00, 580kB/s]
Downloading (…)_encoder/config.json: 100%|█████| 672/672 [00:00<00:00, 7.52MB/s]
Downloading vae/config.json: 100%|█████████████| 745/745 [00:00<00:00, 6.62MB/s]
Downloading tokenizer/vocab.json: 100%|█████| 1.06M/1.06M [00:01<00:00, 928kB/s]
Downloading (…)ch_model.safetensors: 100%|███| 167M/167M [00:44<00:00, 3.75MB/s]
Downloading model.safetensors: 100%|█████████| 681M/681M [02:04<00:00, 5.47MB/s]
Downloading model.safetensors: 100%|███████| 1.26G/1.26G [03:05<00:00, 6.82MB/s]
Downloading (…)ch_model.safetensors: 100%|█| 3.46G/3.46G [05:00<00:00, 11.5MB/s]
Fetching 16 files: 100%|████████████████████████| 16/16 [05:03<00:00, 18.98s/it]
Loading pipeline components...:  38%|████▉        | 3/8 [00:00<00:00,  9.91it/s]                                     The config attributes {'dropout': 0.0, 'reverse_transformer_layers_per_block': N                                     one} were passed to UNet2DConditionModel, but are not expected and will be ignor                                     ed. Please verify your config.json configuration file.
Loading pipeline components...: 100%|█████████████| 8/8 [00:01<00:00,  7.36it/s]
Loading custom white-background unet ...
Downloading (…)on_pytorch_model.bin: 100%|█| 1.73G/1.73G [02:37<00:00, 11.0MB/s]
Loading reconstruction model ...
Downloading config.json: 100%|█████████████████| 454/454 [00:00<00:00, 2.21MB/s]
Downloading pytorch_model.bin: 100%|█████████| 343M/343M [00:58<00:00, 5.82MB/s]
Some weights of ViTModel were not initialized from the model checkpoint at faceb                                     ook/dino-vitb16 and are newly initialized: ['encoder.layer.7.adaLN_modulation.1.                                     weight', 'encoder.layer.5.adaLN_modulation.1.bias', 'encoder.layer.4.adaLN_modul                                     ation.1.bias', 'encoder.layer.0.adaLN_modulation.1.bias', 'encoder.layer.9.adaLN                                     _modulation.1.weight', 'encoder.layer.9.adaLN_modulation.1.bias', 'encoder.layer                                     .6.adaLN_modulation.1.bias', 'encoder.layer.2.adaLN_modulation.1.weight', 'encod                                     er.layer.1.adaLN_modulation.1.bias', 'encoder.layer.10.adaLN_modulation.1.weight                                     ', 'encoder.layer.1.adaLN_modulation.1.weight', 'encoder.layer.3.adaLN_modulatio                                     n.1.weight', 'encoder.layer.3.adaLN_modulation.1.bias', 'encoder.layer.0.adaLN_m                                     odulation.1.weight', 'encoder.layer.6.adaLN_modulation.1.weight', 'encoder.layer                                     .8.adaLN_modulation.1.bias', 'encoder.layer.10.adaLN_modulation.1.bias', 'encode                                     r.layer.8.adaLN_modulation.1.weight', 'encoder.layer.2.adaLN_modulation.1.bias',                                      'encoder.layer.5.adaLN_modulation.1.weight', 'encoder.layer.11.adaLN_modulation                                     .1.bias', 'encoder.layer.7.adaLN_modulation.1.bias', 'encoder.layer.11.adaLN_mod                                     ulation.1.weight', 'encoder.layer.4.adaLN_modulation.1.weight']
You should probably TRAIN this model on a down-stream task to be able to use it                                      for predictions and inference.
Downloading (…)rocessor_config.json: 100%|█████| 244/244 [00:00<00:00, 1.88MB/s]
Downloading (…)tant_mesh_large.ckpt: 100%|█| 1.51G/1.51G [02:21<00:00, 10.7MB/s]
Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/tor                                     ch/utils/cpp_extension.py", line 2100, in _run_ninja_build
    subprocess.run(
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/subprocess.py", l                                     ine 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit                                      status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/mnt/sdb1/sumant/instantMesh/run.py", line 132, in <module>
    model.init_flexicubes_geometry(device, fovy=30.0)
  File "/mnt/sdb1/sumant/instantMesh/src/models/lrm_mesh.py", line 79, in init_f                                     lexicubes_geometry
    renderer = NeuralRender(device, camera_model=camera)
  File "/mnt/sdb1/sumant/instantMesh/src/models/geometry/render/neural_render.py                                     ", line 73, in __init__
    self.ctx = dr.RasterizeCudaContext(device=device)
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvd                                     iffrast/torch/ops.py", line 177, in __init__
    self.cpp_wrapper = _get_plugin().RasterizeCRStateWrapper(cuda_device_idx)
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvd                                     iffrast/torch/ops.py", line 118, in _get_plugin
    torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra                                     _cflags=opts, extra_cuda_cflags=opts+['-lineinfo'], extra_ldflags=ldflags, with_                                     cuda=True, verbose=False)
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/tor                                     ch/utils/cpp_extension.py", line 1308, in load
    return _jit_compile(
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/tor                                     ch/utils/cpp_extension.py", line 1710, in _jit_compile
    _write_ninja_file_and_build_library(
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/tor                                     ch/utils/cpp_extension.py", line 1823, in _write_ninja_file_and_build_library
    _run_ninja_build(
  File "/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/tor                                     ch/utils/cpp_extension.py", line 2116, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error building extension 'nvdiffrast_plugin': [1/16] /usr/local/cu                                     da-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_E                                     XTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -D                                     PYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/envs/instantm                                     esh/lib/python3.10/site-packages/torch/include -isystem /home/ubuntu/anaconda3/e                                     nvs/instantmesh/lib/python3.10/site-packages/torch/include/torch/csrc/api/includ                                     e -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/                                     torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10                                     /site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/include -isystem                                      /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBCXX_USE_CXX11_                                     ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BF                                     LOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gen                                     code=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 --compi                                     ler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/                                     RasterImpl.cu -o RasterImpl.cuda.o
FAILED: RasterImpl.cuda.o
/usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -                                     D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-c                                     onstexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=                                     sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/cud                                     araster/impl/RasterImpl.cu -o RasterImpl.cuda.o
/bin/sh: 1: /usr/local/cuda-11.7/bin/nvcc: not found
[2/16] /usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -                                     DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDL                                     IB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/ana                                     conda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /hom                                     e/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/t                                     orch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pytho                                     n3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instan                                     tmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11                                     .7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -                                     D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSI                                     ONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-re                                     laxed-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_7                                     0,code=sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /ho                                     me/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/com                                     mon/rasterize.cu -o rasterize.cuda.o
FAILED: rasterize.cuda.o
/usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -                                     D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-c                                     onstexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=                                     sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/ras                                     terize.cu -o rasterize.cuda.o
/bin/sh: 1: /usr/local/cuda-11.7/bin/nvcc: not found
[3/16] /usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -                                     DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDL                                     IB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/ana                                     conda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /hom                                     e/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/t                                     orch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pytho                                     n3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instan                                     tmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11                                     .7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -                                     D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSI                                     ONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-re                                     laxed-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_7                                     0,code=sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /ho                                     me/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/com                                     mon/interpolate.cu -o interpolate.cuda.o
FAILED: interpolate.cuda.o
/usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -                                     D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-c                                     onstexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=                                     sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/int                                     erpolate.cu -o interpolate.cuda.o
/bin/sh: 1: /usr/local/cuda-11.7/bin/nvcc: not found
[4/16] /usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -                                     DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDL                                     IB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/ana                                     conda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /hom                                     e/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/t                                     orch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pytho                                     n3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instan                                     tmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11                                     .7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -                                     D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSI                                     ONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-re                                     laxed-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_7                                     0,code=sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /ho                                     me/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/com                                     mon/texture.cu -o texture.cuda.o
FAILED: texture.cuda.o
/usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -                                     D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-c                                     onstexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=                                     sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/tex                                     ture.cu -o texture.cuda.o
/bin/sh: 1: /usr/local/cuda-11.7/bin/nvcc: not found
[5/16] /usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -                                     DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDL                                     IB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/ana                                     conda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /hom                                     e/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/t                                     orch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pytho                                     n3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instan                                     tmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11                                     .7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -                                     D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSI                                     ONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-re                                     laxed-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_7                                     0,code=sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /ho                                     me/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/com                                     mon/antialias.cu -o antialias.cuda.o
FAILED: antialias.cuda.o
/usr/local/cuda-11.7/bin/nvcc  -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -                                     D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-c                                     onstexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=                                     sm_70 --compiler-options '-fPIC' -DNVDR_TORCH -lineinfo -std=c++17 -c /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/ant                                     ialias.cu -o antialias.cuda.o
/bin/sh: 1: /usr/local/cuda-11.7/bin/nvcc: not found
[6/16] c++ -MMD -MF CudaRaster.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTO                                     RCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=                                     \"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anacon                                     da3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/u                                     buntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torc                                     h/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.                                     10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantme                                     sh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/                                     include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_G                                     LIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/e                                     nvs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/C                                     udaRaster.cpp -o CudaRaster.o
FAILED: CudaRaster.o
c++ -MMD -MF CudaRaster.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API                                     _INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libs                                     tdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/env                                     s/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubuntu/a                                     naconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/csrc/                                     api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site                                     -packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/                                     python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/include                                      -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBCXX_                                     USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/ins                                     tantmesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/CudaRast                                     er.cpp -o CudaRaster.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/cudaraster/impl/CudaRaster.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/                                     common/cudaraster/impl/Defs.hpp:10:10: fatal error: cuda_runtime.h: No such file                                      or directory
   10 | #include <cuda_runtime.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
[7/16] c++ -MMD -MF common.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/                                     instantmesh/lib/python3.10/site-packages/nvdiffrast/common/common.cpp -o common.                                     o
FAILED: common.o
c++ -MMD -MF common.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INC                                     LUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcp                                     p\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/envs/in                                     stantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubuntu/anaco                                     nda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/csrc/api/                                     include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-pac                                     kages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pyth                                     on3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/include -is                                     ystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBCXX_USE_                                     CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/instant                                     mesh/lib/python3.10/site-packages/nvdiffrast/common/common.cpp -o common.o
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/                                     common/common.cpp:9:10: fatal error: cuda_runtime.h: No such file or directory
    9 | #include <cuda_runtime.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
[8/16] c++ -MMD -MF torch_rasterize.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin                                      -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_ST                                     DLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/a                                     naconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /h                                     ome/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include                                     /torch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pyt                                     hon3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/inst                                     antmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-                                     11.7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10                                      -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anacon                                     da3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_rasteri                                     ze.cpp -o torch_rasterize.o
FAILED: torch_rasterize.o
c++ -MMD -MF torch_rasterize.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORC                                     H_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"                                     _libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda                                     3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubu                                     ntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/                                     csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10                                     /site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh                                     /lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/in                                     clude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLI                                     BCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/env                                     s/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_rasterize.cpp                                      -o torch_rasterize.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/../common/framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_common.inl:10,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_rasterize.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[9/16] c++ -MMD -MF torch_interpolate.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plug                                     in -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_                                     STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu                                     /anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem                                      /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/torch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/p                                     ython3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/in                                     stantmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cud                                     a-11.7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.                                     10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anac                                     onda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_inter                                     polate.cpp -o torch_interpolate.o
FAILED: torch_interpolate.o
c++ -MMD -MF torch_interpolate.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTO                                     RCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=                                     \"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anacon                                     da3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/u                                     buntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torc                                     h/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.                                     10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantme                                     sh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/                                     include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_G                                     LIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/e                                     nvs/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_interpolate.                                     cpp -o torch_interpolate.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/../common/framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_common.inl:10,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_interpolate.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[10/16] c++ -MMD -MF Buffer.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH                                     _API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_                                     libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3                                     /envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/c                                     src/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/                                     site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/                                     lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/inc                                     lude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIB                                     CXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs                                     /instantmesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/Buff                                     er.cpp -o Buffer.o
FAILED: Buffer.o
c++ -MMD -MF Buffer.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INC                                     LUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcp                                     p\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/envs/in                                     stantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubuntu/anaco                                     nda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/csrc/api/                                     include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-pac                                     kages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pyth                                     on3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/include -is                                     ystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBCXX_USE_                                     CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/instant                                     mesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/Buffer.cpp -                                     o Buffer.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/cudaraster/impl/../../framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/cudaraster/impl/Buffer.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[11/16] c++ -MMD -MF torch_antialias.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugi                                     n -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_S                                     TDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/                                     anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /                                     home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/includ                                     e/torch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/py                                     thon3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/ins                                     tantmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda                                     -11.7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.1                                     0 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaco                                     nda3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_antial                                     ias.cpp -o torch_antialias.o
FAILED: torch_antialias.o
c++ -MMD -MF torch_antialias.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORC                                     H_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"                                     _libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda                                     3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubu                                     ntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/                                     csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10                                     /site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh                                     /lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/in                                     clude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLI                                     BCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/env                                     s/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_antialias.cpp                                      -o torch_antialias.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/../common/framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_common.inl:10,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_antialias.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[12/16] c++ -MMD -MF RasterImpl.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DT                                     ORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB                                     =\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaco                                     nda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/                                     ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/tor                                     ch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3                                     .10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantm                                     esh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7                                     /include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_                                     GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/                                     RasterImpl.cpp -o RasterImpl.o
FAILED: RasterImpl.o
c++ -MMD -MF RasterImpl.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API                                     _INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libs                                     tdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/env                                     s/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubuntu/a                                     naconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/csrc/                                     api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site                                     -packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/                                     python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/include                                      -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBCXX_                                     USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/ins                                     tantmesh/lib/python3.10/site-packages/nvdiffrast/common/cudaraster/impl/RasterIm                                     pl.cpp -o RasterImpl.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/cudaraster/impl/../../framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/cudaraster/impl/RasterImpl.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[13/16] c++ -MMD -MF torch_bindings.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin                                      -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_ST                                     DLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/a                                     naconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /h                                     ome/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include                                     /torch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pyt                                     hon3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/inst                                     antmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-                                     11.7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10                                      -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anacon                                     da3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_binding                                     s.cpp -o torch_bindings.o
FAILED: torch_bindings.o
c++ -MMD -MF torch_bindings.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH                                     _API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_                                     libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3                                     /envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubun                                     tu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/c                                     src/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/                                     site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/                                     lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/inc                                     lude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIB                                     CXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs                                     /instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_bindings.cpp -o                                      torch_bindings.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/../common/framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_common.inl:10,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_bindings.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[14/16] c++ -MMD -MF texture.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORC                                     H_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"                                     _libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda                                     3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubu                                     ntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/                                     csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10                                     /site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh                                     /lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/in                                     clude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLI                                     BCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/env                                     s/instantmesh/lib/python3.10/site-packages/nvdiffrast/common/texture.cpp -o text                                     ure.o
FAILED: texture.o
c++ -MMD -MF texture.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_IN                                     CLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdc                                     pp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/envs/i                                     nstantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubuntu/anac                                     onda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/csrc/api                                     /include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-pa                                     ckages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pyt                                     hon3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/include -i                                     system /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBCXX_USE                                     _CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/instan                                     tmesh/lib/python3.10/site-packages/nvdiffrast/common/texture.cpp -o texture.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/common/texture.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[15/16] c++ -MMD -MF torch_texture.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin                                      -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STD                                     LIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/an                                     aconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /ho                                     me/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/                                     torch/csrc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/pyth                                     on3.10/site-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/insta                                     ntmesh/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-1                                     1.7/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10                                      -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anacond                                     a3/envs/instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_texture.                                     cpp -o torch_texture.o
FAILED: torch_texture.o
c++ -MMD -MF torch_texture.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_                                     API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_l                                     ibstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/ubuntu/anaconda3/                                     envs/instantmesh/lib/python3.10/site-packages/torch/include -isystem /home/ubunt                                     u/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/include/torch/cs                                     rc/api/include -isystem /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/s                                     ite-packages/torch/include/TH -isystem /home/ubuntu/anaconda3/envs/instantmesh/l                                     ib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda-11.7/incl                                     ude -isystem /home/ubuntu/anaconda3/envs/instantmesh/include/python3.10 -D_GLIBC                                     XX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/ubuntu/anaconda3/envs/                                     instantmesh/lib/python3.10/site-packages/nvdiffrast/torch/torch_texture.cpp -o t                                     orch_texture.o
In file included from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/../common/framework.h:37,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_common.inl:10,
                 from /home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/sit                                     e-packages/nvdiffrast/torch/torch_texture.cpp:9:
/home/ubuntu/anaconda3/envs/instantmesh/lib/python3.10/site-packages/torch/inclu                                     de/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file o                                     r directory
    5 | #include <cuda_runtime_api.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.


@gtangg12
Copy link

gtangg12 commented Sep 1, 2024

you forgot to set cuda home (you dont need cuda 12 if you don't install xformers)

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

2 participants