GithubHelp home page GithubHelp logo

Comments (3)

yangxy avatar yangxy commented on July 19, 2024

Hi, I just want to run the demo to see the effect on my machine and I got the result below.

Traceback (most recent call last):
File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1672, in _run_ninja_build
env=env)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
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 "face_colorization.py", line 12, in
from face_model.face_gan import FaceGAN
File "/home/suoych/GPEN/face_model/face_gan.py", line 13, in
from model import FullGenerator
File "/home/suoych/GPEN/face_model/model.py", line 15, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "/home/suoych/GPEN/face_model/op/init.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/home/suoych/GPEN/face_model/op/fused_act.py", line 14, in
os.path.join(module_path, 'fused_bias_act_kernel.cu'),
File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1092, in load
keep_intermediates=keep_intermediates)
File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1303, in jit_compile is_standalone=is_standalone) File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1408, in write_ninja_file_and_build_library error_prefix=f"Error building extension '{name}'") File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1682, in run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension 'fused': [1/2] :/usr/local/cuda-11.2/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/TH -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/THC -isystem :/usr/local/cuda-11.2/include -isystem /usr/include/python3.6m -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_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -std=c++14 -c /home/suoych/GPEN/face_model/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
:/usr/local/cuda-11.2/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/TH -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/THC -isystem :/usr/local/cuda-11.2/include -isystem /usr/include/python3.6m -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_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -std=c++14 -c /home/suoych/GPEN/face_model/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
/bin/sh: 1: :/usr/local/cuda-11.2/bin/nvcc: not found
ninja: build stopped: subcommand failed.

I got GPU on my machine and my python version is 3.6, torch version 1.9, CUDA version 10.2, GCC version 7.5. I also checked the $PATH and the nvcc path is included.

It would be great if someone could help me with the problem. Thanks so much!

/usr/local/cuda-11.2/bin/nvcc: not found

from gpen.

suoych avatar suoych commented on July 19, 2024

Hi, I just want to run the demo to see the effect on my machine and I got the result below.
Traceback (most recent call last):
File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1672, in run_ninja_build
env=env)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
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 "face_colorization.py", line 12, in
from face_model.face_gan import FaceGAN
File "/home/suoych/GPEN/face_model/face_gan.py", line 13, in
from model import FullGenerator
File "/home/suoych/GPEN/face_model/model.py", line 15, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "/home/suoych/GPEN/face_model/op/init.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/home/suoych/GPEN/face_model/op/fused_act.py", line 14, in
os.path.join(module_path, 'fused_bias_act_kernel.cu'),
File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1092, in load
keep_intermediates=keep_intermediates)
File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1303, in jit_compile is_standalone=is_standalone) File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1408, in write_ninja_file_and_build_library error_prefix=f"Error building extension '{name}'") File "/home/suoych/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1682, in run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension 'fused': [1/2] :/usr/local/cuda-11.2/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/TH -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/THC -isystem :/usr/local/cuda-11.2/include -isystem /usr/include/python3.6m -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_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -std=c++14 -c /home/suoych/GPEN/face_model/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
:/usr/local/cuda-11.2/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/TH -isystem /home/suoych/.local/lib/python3.6/site-packages/torch/include/THC -isystem :/usr/local/cuda-11.2/include -isystem /usr/include/python3.6m -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_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 --compiler-options '-fPIC' -std=c++14 -c /home/suoych/GPEN/face_model/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
/bin/sh: 1: :/usr/local/cuda-11.2/bin/nvcc: not found
ninja: build stopped: subcommand failed.
I got GPU on my machine and my python version is 3.6, torch version 1.9, CUDA version 10.2, GCC version 7.5. I also checked the $PATH and the nvcc path is included.
It would be great if someone could help me with the problem. Thanks so much!

/usr/local/cuda-11.2/bin/nvcc: not found

image
I already had it on the machine.

from gpen.

suoych avatar suoych commented on July 19, 2024

I finally solved the problem by downgrading cuda to 10.2.

from gpen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.