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

ninja: build stopped: subcommand failed. #69

Open
MehmetcanTozlu opened this issue Jun 26, 2024 · 0 comments
Open

ninja: build stopped: subcommand failed. #69

MehmetcanTozlu opened this issue Jun 26, 2024 · 0 comments

Comments

@MehmetcanTozlu
Copy link

Traceback (most recent call last):
File "/home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2107, in _run_ninja_build
subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 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 "/home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/main.py", line 13, in
from models.Embedding import Embedding
File "/home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/Embedding.py", line 3, in
from models.Net import Net
File "/home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/Net.py", line 3, in
from models.stylegan2.model import Generator
File "/home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/stylegan2/model.py", line 11, in
from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "/home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/stylegan2/op/init.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/stylegan2/op/fused_act.py", line 10, in
fused = load(
File "/home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1309, in load
return jit_compile(
File "/home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1719, in jit_compile
write_ninja_file_and_build_library(
File "/home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1832, in write_ninja_file_and_build_library
run_ninja_build(
File "/home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2123, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': [1/2] /usr/bin/nvcc --generate-dependencies-with-compile --dependency-output fused_bias_act_kernel.cuda.o.d -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include/TH -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include/THC -isystem /usr/include/python3.10 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++17 -c /home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/stylegan2/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
/usr/bin/nvcc --generate-dependencies-with-compile --dependency-output fused_bias_act_kernel.cuda.o.d -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include/TH -isystem /home/wrusr/miniconda3/workspace/barbershop_env/lib/python3.10/site-packages/torch/include/THC -isystem /usr/include/python3.10 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++17 -c /home/wrusr/miniconda3/workspace/barbershop_env/workspace/Barbershop/models/stylegan2/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.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.

what is the cause of this 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