Skip to content
New issue

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

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

Already on GitHub? # to your account

ninja: build stopped: subcommand failed. #359

Open
Yhc-777 opened this issue May 10, 2024 · 4 comments
Open

ninja: build stopped: subcommand failed. #359

Yhc-777 opened this issue May 10, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Yhc-777
Copy link

Yhc-777 commented May 10, 2024

RuntimeError:
Error building extension 'grid_encoder': [1/2] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=grid_encoder -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include/TH -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include/THC -isystem /home/u/miniconda3/envs/sdf/include/python3.8 -D_GLIBCXX_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-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 --compiler-options '-fPIC' -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -c /home/u/haochen/stable-dreamfusion/gridencoder/src/gridencoder.cu -o gridencoder.cuda.o
FAILED: gridencoder.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=grid_encoder -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include/TH -isystem /home/u/miniconda3/envs/sdf/lib/python3.8/site-packages/torch/include/THC -isystem /home/u/miniconda3/envs/sdf/include/python3.8 -D_GLIBCXX_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-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 --compiler-options '-fPIC' -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -c /home/u/haochen/stable-dreamfusion/gridencoder/src/gridencoder.cu -o gridencoder.cuda.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
ninja: build stopped: subcommand failed.

When I run "python main.py -O --image ./df_ep0100_0008_rgb_rgba.png --workspace trial_image --iters 500", I met this problem, how can I solve it? Thx!!!

@Yhc-777 Yhc-777 added the enhancement New feature or request label May 10, 2024
@csyhping
Copy link

csyhping commented May 13, 2024

same problem, did you solve it @Yhc-777

@Yhc-777
Copy link
Author

Yhc-777 commented May 13, 2024

same problem, did you solve it @Yhc-777

Not yet, still dubegging...

@ywtseng0226
Copy link

hi, same problem, did anyone solve it...?
@Yhc-777 , @csyhping

@HaFred
Copy link

HaFred commented Jun 4, 2024

Check which version of cuda you are using, if it's cu>=121, try to downgrade it into cu11. I met the same issue and a downgrading worked for my case.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants