Skip to content

nvcc fatal: Unsupported gpu architecture compute86 #355

@cyberblue1

Description

@cyberblue1

Traceback (most recent call last):
File "/home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1906, in _run_ninja_build
env=env)
File "/home/ls/anaconda3/envs/stylegan2/lib/python3.7/subprocess.py", line 512, 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 "/home/ls/ls_ws/stylegan2-pytorch-master/generate.py", line 5, in
from model import Generator
File "/home/ls/ls_ws/stylegan2-pytorch-master/model.py", line 11, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d, conv2d_gradfix
File "/home/ls/ls_ws/stylegan2-pytorch-master/op/init.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/home/ls/ls_ws/stylegan2-pytorch-master/op/fused_act.py", line 15, in
os.path.join(module_path, "fused_bias_act_kernel.cu"),
File "/home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1296, in load
keep_intermediates=keep_intermediates)
File "/home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1518, in jit_compile
is_standalone=is_standalone)
File "/home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1626, in write_ninja_file_and_build_library
error_prefix=f"Error building extension '{name}'")
File "/home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1916, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': [1/2] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include/TH -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include/THC -isystem /home/ls/anaconda3/envs/stylegan2/include/python3.7m -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++14 -c /home/ls/ls_ws/stylegan2-pytorch-master/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include/TH -isystem /home/ls/anaconda3/envs/stylegan2/lib/python3.7/site-packages/torch/include/THC -isystem /home/ls/anaconda3/envs/stylegan2/include/python3.7m -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++14 -c /home/ls/ls_ws/stylegan2-pytorch-master/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
nvcc fatal : Unsupported gpu architecture 'compute_86'
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions